AT89C5131A-M Atmel Corporation, AT89C5131A-M Datasheet - Page 65

no-image

AT89C5131A-M

Manufacturer Part Number
AT89C5131A-M
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of AT89C5131A-M

Flash (kbytes)
32 Kbytes
Max. Operating Frequency
48 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)
1024
Self Program Memory
API
Operating Voltage (vcc)
2.7 to 5.5
Timers
4
Isp
UART/USB
Watchdog
Yes
14.1
Figure 14-3. PCA Capture Mode
14.2
4337K–USB–04/08
PCA Capture Mode
16-bit Software Timer/Compare Mode
Cex.n
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 14-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 14-4).
CF
ECOMn
CR
CAPPn
CAPNn MATn TOGn PWMn ECCFn
CCF4 CCF3 CCF2 CCF1 CCF0
Capture
CCAPMn, n = 0 to 4
0xDA to 0xDE
CCON
0xD8
CCAPnH
AT89C5130A/31A-M
PCA Counter/Timer
CH
CCAPnL
CL
PCA IT
65

Related parts for AT89C5131A-M