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

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
PCA Interrupt
Figure 33. PCA Interrupt System
PCA Capture Mode
Figure 34. PCA Capture Mode
74
AT89C5115
CEXn
n = 0, 1
PCA Timer/Counter
Module 0
Module 1
CMOD.0
ECF
To use one of the PCA modules in capture mode either one or both of the CCAPM bits
CAPN and CAPP for that module must be set. The external CEX input for the module
(on port 1) is sampled for a transition. When a valid transition occurs the PCA hardware
loads the value of the PCA counter registers (CH and CL) into the module’s capture reg-
isters (CCAPnL and CCAPnH). If the CCFn bit for the module in the CCON SFR and the
ECCFn bit in the CCAPMn SFR are set then an interrupt will be generated.
7
-
CF
0CAPPnCAPNn000ECCFn
CCAPMn.0
ECCFn
CCAPMn Register (n = 0, 1)
CR
IEN0.6
CCON Reg
EC
CCFn
IEN0.7
EA
CCF1 CCF0
CCAPnH CCAPnL
(8-bits)
PCA Counter
CH
0
(8-bits)
CCON
0xD8
To Interrupt
CL
PCA
Interrupt
Request
4128G–8051–02/08

Related parts for T89C5115_08