ChipFind - Datasheet

Part Number AT89C5131

Download:  PDF   ZIP

Document Outline

Rev. 4136B­USB­09/03
Features
·
80C52X2 Core (6 Clocks per Instruction)
­ Maximum Core Frequency 48 MHz in X1 Mode, 24MHz in X2 Mode
­ Dual Data Pointer
­ Full-duplex Enhanced UART (EUART)
­ Three 16-bit Timer/Counters: T0, T1 and T2
­ 256 Bytes of Scratchpad RAM
·
32-Kbyte On-chip Flash In-System Programming through USB or UART
·
4-Kbyte EEPROM for Boot (3-Kbyte) and Data (1-Kbyte)
·
On-chip Expanded RAM (ERAM): 1024 Bytes
·
USB 1.1 and 2.0 Full Speed Compliant Module with Interrupt on Transfer Completion
­ Endpoint 0 for Control Transfers: 32-byte FIFO
­ 6 Programmable Endpoints with In or Out Directions and with Bulk, Interrupt or
Isochronous Transfers
· Endpoint 1, 2, 3: 32-byte FIFO
· Endpoint 4, 5: 2 x 64-byte FIFO with Double Buffering (Ping-pong Mode)
· Endpoint 6: 2 x 512-byte FIFO with Double Buffering (Ping-pong Mode)
­ Suspend/Resume Interrupts
­ Power-on Reset and USB Bus Reset
­ 48 MHz DPLL for Full-speed Bus Operation
­ USB Bus Disconnection on Microcontroller Request
·
5 Channels Programmable Counter Array (PCA) with 16-bit Counter, High-speed
Output, Compare/Capture, PWM and Watchdog Timer Capabilities
·
Programmable Hardware Watchdog Timer (One-time Enabled with Reset-out): 50 ms to
6s at 4 MHz
·
Keyboard Interrupt Interface on Port P1 (8 Bits)
·
TWI (Two Wire Interface) 400Kbit/s
·
SPI Interface (Master/Slave Mode)
·
34 I/O Pins
·
4 Direct-drive LED Outputs with Programmable Current Sources: 2-6-10 mA Typical
·
4-level Priority Interrupt System (11 sources)
·
Idle and Power-down Modes
·
0 to 32 MHz On-chip Oscillator with Analog PLL for 48 MHz Synthesis
·
Low Power Voltage Range
­ 3.0V to 3.6V
­ 30 mA Max Operating Current (at 40 MHz)
­ 100 µA Max Power-down Current
·
Industrial Temperature Range
·
Packages: PLCC52, VQFP64, MLF48, SO28
8-bit Flash
Microcontroller
with Full Speed
USB Device
AT89C5131
2
AT89C5131
4136B­USB­09/03
Description
AT89C5131 is a high-performance Flash version of the 80C51 single-chip 8-bit micro-
controllers with full speed USB functions.
AT89C5131 features a full-speed USB module compatible with the USB specifications
Version 1.1 and 2.0. This module integrates the USB transceivers with a 3.3V voltage
regulator and the Serial Interface Engine (SIE) with Digital Phase Locked Loop and
48 MHz clock recovery. USB Event detection logic (Reset and Suspend/Resume) and
FIFO buffers supporting the mandatory control Endpoint (EP0) and up to 6 versatile
Endpoints (EP1/EP2/EP3/EP4/EP5/EP6) with minimum software overhead are also part
of the USB module.
AT89C5131 retains the features of the Atmel 80C52 with extended Flash capacity (32-
Kbyte), 256 bytes of internal RAM, a 4-level interrupt system, two 16-bit timer/counters
(T0/T1), a full duplex enhanced UART (EUART) and an on-chip oscillator.
In addition, AT89C5131 has an on-chip expanded RAM of 1024 bytes (ERAM), a dual-
data pointer, a 16-bit up/down Timer (T2), a Programmable Counter Array (PCA), up to
4 programmable LED current sources, a programmable hardware watchdog and a
power-on reset.
AT89C5131 has two software-selectable modes of reduced activity for further reduction
in power consumption. In the idle mode the CPU is frozen while the timers, the serial
ports and the interrupt system are still operating. In the power-down mode the RAM is
saved, the peripheral clock is frozen, but the device has full wake-up capability through
USB events or external interrupts.
3
AT89C5131
4136B­USB­09/03
Block Diagram
Notes:
1. Alternate function of Port 1
2. Alternate function of Port 3
3. Alternate function of Port 4
Timer 0
INT
RAM
256x8
T0
T1
Rx
D
Tx
D
WR
RD
EA
PSEN
ALE
XTAL2
XTAL1
EUART
CPU
Timer 1
INT
1
Ctrl
INT
0
(2)
(2)
C51
CORE
(2) (2)
(2) (2)
Port 0
P0
Port 1 Port 2 Port 3
Parallel I/O Ports & Ext. Bus
P1
P2
P3
ERAM
1Kx8
PCA
RST
Watch
Dog
CEX
ECI
VS
S
VDD
(2)
(2)
(1)
(1)
Timer2
T2
EX
T2
(1) (1)
Port 4
P4
32Kx8 Flash
+
BRG
USB
D -
D +
VREF
Regu-
Key
Board
KIN
lator
AVSS
EEPROM
4Kx8
SPI
MI
S
O
MOS
I
SC
K
(1) (1) (1)
SS
(1)
AVDD
TWI
SCL
SDA
4
AT89C5131
4136B­USB­09/03
Pinout Description
Pinout
Figure 1. AT89C5131 52-pin PLCC Pinout
21 22
26
25
24
23
29
28
27
30 31
5 4 3 2 1
6
52 51 50 49 48
8
9
10
11
12
13
14
15
16
17
18
46
45
44
43
42
41
40
39
38
37
36
PLCC52
7
47
19
20
32 33
34
35
P1
.
1
/
T
2
EX/
KI
N1
/
S
S
P
1
.0/T
2/
K
I
N0
P0.6/AD6
ALE
P0.7/AD7
EA
PSEN
P
1
.7/C
E
X
4
/
K
I
N7/M
OS
I
P
1
.3/CE
X
0
/K
IN3
P
1
.5/CE
X
2
/K
IN5/M
I
S
O
P
1
.6
/CE
X
3
/K
IN6
/
S
C
K
PLLF
P3.0/RxD
AVSS
P2.6/A14
XTAL1
P2.5/A13
P0.3/AD3
P0.5/AD5
P0.4/AD4
VREF
P0.2/AD2
P
0
.0
/A
D0
P0.1/AD1
AVDD
NC
P3
.
2
/
I
NT
0
P3.6/WR/LED2
XTAL2
RST
P3
.
1
/
T
x
D
P
3
.
3
/INT
1
/L
E
D
0
P3.7/RD/LED3
D-
P
2
.0
/A
8
P
2
.1
/A
9
P
2
.2
/A
10
P2.3/A11
VSS
P2.4/A12
P4.1/SDA
D+
P
4
.0/S
CL
P
1
.2/E
CI/
K
IN2
P
1
.4/CE
X
1
/K
IN4
P
3
.4
/T
0
P3
.
5
/
T
1
/
L
E
D1
NC
NC
VDD
NC
P2.7/A15
5
AT89C5131
4136B­USB­09/03
Figure 2. AT89C5131 64-pin VQFP Pinout
17 18
22
21
20
19
25
24
23
26 27
62 61 60 59 58
63
57 56 55 54 53
1
2
3
4
5
6
7
8
9
10
11
48
47
46
45
44
43
42
41
40
39
38
VQFP64
64
52
12
13
28 29
36
37
51 50 49
35
33
34
14
15
16
30
31 32
P1
.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