Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

SYNPWM Datasheet(PDF) 32 Page - Feeling Technology Corp.

Part # SYNPWM
Description  EPROM-Based 8-Bit Microcontroller with 10 bit ADC
PDF  57 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FEELING [Feeling Technology Corp.]
Direct Link  http://www.feeling-tech.com.tw/
Logo FEELING - Feeling Technology Corp.

SYNPWM Datasheet(HTML) 32 Page - Feeling Technology Corp.

Back Button SYNPWM Datasheet HTML 28Page - Feeling Technology Corp. SYNPWM Datasheet HTML 29Page - Feeling Technology Corp. SYNPWM Datasheet HTML 30Page - Feeling Technology Corp. SYNPWM Datasheet HTML 31Page - Feeling Technology Corp. SYNPWM Datasheet HTML 32Page - Feeling Technology Corp. SYNPWM Datasheet HTML 33Page - Feeling Technology Corp. SYNPWM Datasheet HTML 34Page - Feeling Technology Corp. SYNPWM Datasheet HTML 35Page - Feeling Technology Corp. SYNPWM Datasheet HTML 36Page - Feeling Technology Corp. Next Button
Zoom Inzoom in Zoom Outzoom out
 32 / 57 page
background image
FM8P73B
Web site: http://www.feeling-tech.com.tw
Rev1.0 Nov 20, 2013
P.32/FM8P73B
FEELING
TECHNOLOGY
Example 2.7: External IOB0 pin change wakeup interrupt
Address
Code
NA
#include
<8P73B.ASH>
…
n
MOVIA
0xFF
n+1
MOVAR
IOSTB
;Set Port B as input
n+2
MOVIA
0xA0
n+3
MOVAR
INTEN
;Enable global & Port B interrupt
n+4
MOVIA
0xDF
n+5
MOVAR
INTFALG
;Clear PBIF flag(Note1)
n+6
MOVR
PORTB,R
;Update Port B pin status
n+7
MOVIA
0x01
n+8
MOVAR
INTPB
;Set IOB0 pin change wakeup
n+9
SLEEP
n+10
NOP
…
N/A
ISR:
;In this example, ISR define at 0x200
200
…
;User Port B pin change wakeup ISR code
200+n
MOVIA
0xDF
200+n+1
MOVAR
INTFLAG
;Clear PBIF flag(Note1)
200+n+2
RETFIE
3FE
GOTO
ISR
3FF
GOTO
START
Note : 1. BCR instruction is not recommended for Clear interrupt flag (INTFLAG register).
2. Interrupt save status code is not shown in this example.
2.7.2
Timer1~3 Interrupt Function
2.7.2.1
Timer1 (PWM1) interrupt
At Timer mode, an underflow (00h  FFh) in the TMR1 counter will set the flag bit T1P1IF (INTFLAG<0>). This
interrupt can be disabled by clearing T1P1IE bit (INTEN<0>).
At PWM mode, the end of each PWM period cycle to generate an interrupt. The interrupt rate can be adjusted by
PIR13:10 (PWM1CON <3:0>).
Figure 2.9: PWM Interrupt Waveform (Normal PWM or Sync PWM mode)
PWM1 Output
T1P1IF (PIR1<3:0>=1:4)
T1P1IF (PIR1<3:0>=1:5)
2.7.2.2
Timer2 interrupt
At Timer mode, an underflow (00h  FFh) in the TMR2 counter will set the flag bit T2IF (INTFLAG<1>). This
interrupt can be disabled by clearing T2IE bit (INTEN<1>).
At PWM mode, TMR2 is PWM1 duty cycle counter. Not generate an interrupt.
2.7.2.3
Timer3 interrupt
An underflow (00h  FFh) in the TMR3 counter will set the flag bit T3IF (INTFLAG<2>). This interrupt can be
disabled by clearing T3IE bit (INTEN<2>).
1. IOB0 pin change
2. Return from ISR



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com