T89C5115 ATMEL Corporation, T89C5115 Datasheet - Page 70

no-image

T89C5115

Manufacturer Part Number
T89C5115
Description
Low Pin Count 8-bit MCU with A/D Converter and 16-Kbytes of Flash Memory
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
T89C5115-RATIM
Manufacturer:
TI
Quantity:
1 474
Part Number:
T89C5115-RATIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
T89C5115-SISIM
Manufacturer:
Atmel
Quantity:
10 000
16-bit Software Timer
Mode
Figure 33. PCA 16-bit Software Timer and High Speed Output Mode
70
Write to
CCAPnL
Write to CCAPnH
Reset
T89C5115
“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
ECOMn0 0 MATn TOGn0 ECCFn
(8 bits)
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
4128A–8051–04/02

Related parts for T89C5115