AT83C5134 Atmel Corporation, AT83C5134 Datasheet - Page 45

no-image

AT83C5134

Manufacturer Part Number
AT83C5134
Description
Manufacturer
Atmel Corporation
Datasheet

Specifications of AT83C5134

Max. Operating Frequency
32 MHz
Cpu
8051-12C
Max I/o Pins
34
Usb Transceiver
1
Usb Speed
Full Speed
Usb Interface
Device
Spi
1
Twi (i2c)
1
Uart
1
Sram (kbytes)
1.25
Eeprom (bytes)
512
Operating Voltage (vcc)
2.7 to 3.6
Timers
4
Mask Rom (kbytes)
8
Watchdog
Yes
13.1
Figure 13-3. PCA Capture Mode
13.2
7683C–USB–11/07
PCA Capture Mode
16-bit Software Timer/Compare Mode
Cex.n
Table 13-8.
CL - PCA Counter Register Low (0E9h)
Reset Value = 0000 0000b
Not bit addressable
To use one of the PCA modules in the 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 registers (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 (see Figure 13-3).
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 regis-
ters 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 13-4).
CF
Number
7 - 0
Bit
7
-
ECOMn
CR
CAPPn
Mnemonic
CL Register
Bit
6
-
-
CAPNn MATn TOGn PWMn ECCFn
CCF4 CCF3 CCF2 CCF1 CCF0
Description
PCA Counter
CL Value
5
-
Capture
4
-
CCAPMn, n = 0 to 4
0xDA to 0xDE
CCON
0xD8
3
-
CCAPnH
PCA Counter/Timer
CH
AT83C5134/35/36
2
-
CCAPnL
CL
1
-
PCA IT
0
-
45

Related parts for AT83C5134