DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

TS83C51RD2-ECKB View Datasheet(PDF) - Atmel Corporation

Part Name
Description
Manufacturer
TS83C51RD2-ECKB
Atmel
Atmel Corporation 
TS83C51RD2-ECKB Datasheet PDF : 74 Pages
First Prev 31 32 33 34 35 36 37 38 39 40 Next Last
TS80C51RA2/RD2
TS83C51RB2/RC2/RD2
TS87C51RB2/RC2/RD2
6.5.2. 16-bit Software Timer / Compare Mode
The PCA modules can be used as software timers by setting both the ECOM and MAT bits in the modules
CCAPMn register. The PCA timer will be compared to the module's capture registers and when a match
occurs an interrupt will occur if the CCFn (CCON SFR) and the ECCFn (CCAPMn SFR) bits for the module
are both set (See Figure 10).
Write to
CCAPnL Reset
Write to
CCAPnH
1
0
Enable
CF CR
CCON
CCF4 CCF3 CCF2 CCF1 CCF0 0xD8
CCAPnH
CCAPnL
16 bit comparator
Match
PCA IT
CH
CL
PCA counter/timer
RESET *
CCAPMn, n = 0 to 4
ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn
0xDA to 0xDE
CIDL WDTE
CPS1 CPS0 ECF CMOD
0xD9
* Only for Module 4
Figure 10. PCA Compare Mode and PCA Watchdog Timer
Before enabling ECOM bit, CCAPnL and CCAPnH should be set with a non zero value, otherwise an unwanted
match could happen. Writing to CCAPnH will set the ECOM bit.
Once ECOM set, writing CCAPnL will clear ECOM so that an unwanted match doesn’t occur while modifying
the compare value. Writing to CCAPnH will set ECOM. For this reason, user software should write CCAPnL first,
and then CCAPnH. Of course, the ECOM bit can still be controlled by accessing to CCAPMn register.
Rev. C - 06 March, 2001
31

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]