at89c51ac3-s3sim ATMEL Corporation, at89c51ac3-s3sim Datasheet - Page 97

no-image

at89c51ac3-s3sim

Manufacturer Part Number
at89c51ac3-s3sim
Description
At89c51ac3 Enhanced 8-bit Microcontroller With 64kb Flash Memory
Manufacturer
ATMEL Corporation
Datasheet
Figure 55. PCA Capture Mode
16-bit Software Timer
Mode
Figure 56. PCA 16-bit Software Timer and High Speed Output Mode
4383D–8051–02/08
Write to
CCAPnL
Write to CCAPnH
Reset
CEXn
n = 0, 4
“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
7
-
Enable
7
0CAPPn CAPNn
-
Compare/Capture Module
CCAPnH
ECOMn0 0 MATn TOGn0 ECCFn
(8 bits)
16-Bit Comparator
0
CCAPMn Register (n = 0, 4)
CCAPnL
(8 bits)
000
For software Timer mode, set ECOMn and MATn.
For high speed output mode, set ECOMn, MATn and TOGn.
CCAPMn Register
Match
ECCFn
(n = 0, 4)
CCON
CCFn
CCFn
CCON reg
CCAPnH CCAPnL
Toggle
(8bits)
PCA Counter
CH
0
(8bits)
CL
PCA
Interrupt
Request
CEXn
PCA
Interrupt
Request
97

Related parts for at89c51ac3-s3sim