T89C5115_08 ATMEL [ATMEL Corporation], T89C5115_08 Datasheet - Page 75

no-image

T89C5115_08

Manufacturer Part Number
T89C5115_08
Description
Low Pin Count 8-bit Microcontroller with A/D Converter and 16 KBytes Flash Memory
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
16-bit Software Timer
Mode
Figure 35. PCA 16-bit Software Timer and High Speed Output Mode
4128G–8051–02/08
Write to
CCAPnL
Write to CCAPnH
Reset
“0”
“1”
PCA Counter
(8 bits)
CH
(8 bits)
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.
CL
Enable
7
-
Compare/Capture Module
CCAPnH
(8 bits)
ECOMn0 0 MATn TOGn0 ECCFn
16-bit Comparator
0
CCAPnL
(8 bits)
For software Timer mode, set ECOMn and MATn.
For high speed output mode, set ECOMn, MATn and TOGn.
CCAPMn Register
Match
(n = 0, 1)
CCFn
CCON reg
Toggle
CEXn
PCA
Interrupt
Request
75

Related parts for T89C5115_08