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

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
4337K–USB–04/08
Reset Value = X000 0000b
Not bit addressable
Table 14-4.
There are two additional registers associated with each of the PCA modules. They are CCAPnH
and CCAPnL and these are the registers that store the 16-bit count when a capture occurs or a
compare should occur. When a module is used in the PWM mode these registers are used to
control the duty cycle of the output (see Table 14-5 and Table 14-6)
Table 14-5.
CCAP0H - PCA Module 0 Compare/Capture Control Register High (0FAh)
CCAP1H - PCA Module 1 Compare/Capture Control Register High (0FBh)
CCAP2H - PCA Module 2 Compare/Capture Control Register High (0FCh)
CCAP3H - PCA Module 3 Compare/Capture Control Register High (0FDh)
CCAP4H - PCA Module 4 Compare/Capture Control Register High (0FEh)
ECOMn
Number
Number
7 - 0
X
X
X
Bit
0
1
1
1
1
Bit
1
0
7
-
CAPPn
Mnemonic
Mnemonic
PCA Module Modes (CCAPMn Registers)
CCAPnH Registers (n = 0-4)
ECCFn
0
1
0
1
0
0
0
0
PWMn
Bit
Bit
6
-
-
CAPNn
Description
Pulse Width Modulation Mode
Cleared to disable the CEXn pin to be used as a pulse width modulated output.
Set to enable the CEXn pin to be used as a pulse width modulated output.
Enable CCF Interrupt
Cleared to disable compare/capture flag CCFn in the CCON register to generate an
interrupt.
Set to enable compare/capture flag CCFn in the CCON register to generate an
interrupt.
Description
PCA Module n Compare/Capture Control
CCAPnH Value
0
0
1
1
0
0
0
0
5
-
MATn
0
0
0
0
1
1
0
1
4
-
TOGn
0
0
0
0
0
1
0
X
PWMm ECCFn Module Function
3
-
0
0
0
0
0
0
1
0
AT89C5130A/31A-M
0
X
X
X
X
X
0
X
2
-
16-bit capture by a positive-edge
trigger on CEXn
16-bit capture by a negative trigger
on CEXn
16-bit capture by a transition on
CEXn
16-bit Software Timer/Compare
mode.
16-bit High Speed Output
8-bit PWM
Watchdog Timer (module 4 only)
No Operation
1
-
0
-
63

Related parts for AT89C5131A-M