8-bit Low Pin Count Microcontrollers



Part  Number T87C5101
Manufacturer ATMEL Corporation
Semiconductor DataSheet

DataSheet View

Features • 80C51 Code Compatible – 8051 Instruction Compatible – 16 I/O + 2 Outputs in 24 Pin Packages 16 I/O + 6 Outputs in 28 Pin Packages – Three 16-bit Timer/Counters – 256 Bytes Scratchpad RAM Program Memory – 8 KB ROM T83C5102 – 16 KB ROM T83C5101 – 16 KB EPROM/OTP T87C5101 High-speed Architecture 40 MHz from 2.7 to 5.5V, Commercial or Industrial Temperature Range: – 40 MHz with a 40 MHz Crystal In Std. Mode – 40 MHz with a 20 MHz Crystal In X2 Mode 66 MHz from 4.5 to 5.5V, Commercial Temperature Range – 40 MHz with a 40 MHz Crystal in Std. Mode – 66 MHz with a 33 MHz Crystal in X2 Mode Dual Data Pointer On-chip eXpanded RAM (XRAM) (256 bytes) Programmable Clock Out and Up/Down Timer/Counter 2 Asynchronous Port Reset Interrupt Structure with – 6 Interrupt Sources, – 4-Level Priority Interrupt System Full-duplex Enhanced UART – Framing Error Detection – Automatic Address Recognition Low EMI (no ALE) www.DataSheet4U.com Power Control Modes – Idle Mode – Power-down Mode Packages: SO24, DIL24, SSOP24, SO28 • • • • • • • • • • • • • 8-bit Low Pin Count Microcontrollers T83C5101 T87C5101 T83C5102 Description The T8xC5101/02 family is a high performance CMOS ROM, OTP, EPROM derivative of the 80C51 CMOS single chip 8-bit microcontroller. The T8xC5101/02 family is a low pin count device where only Port 1, port 3 and 2/6 bits of a new port 4 are outputted. This prevents any external access, like external program memory access (fetch, MOVC) or external data memory (MOVX). The T8xC5101/02 family retains all features of the 80C51 with extended capacity 8 KB ROM (5102), 16 KB ROM (5101)/16 KB EPROM/OTP (5101), 256 bytes of internal RAM, a 6-source, 4-level interrupt system, an on-chip oscillator and three timer/counters. In addition, the T8xC5101/02 family has an XRAM of 256 bytes, the X2 feature, a more versatile serial channel that facilitates multiprocessor communication (EUART), a dual data pointer and an improved timer 2. The fully static design of the T8xC5101/02 family allows to reduce system power consumption by bringing the clock frequency down to any value, even DC, without loss of data. The T8xC5101/02 family has 2 software-selectable modes of reduced activity for further reduction in power consumption. In idle mode the CPU is frozen while the timers, the serial port and the interrupt system are still operating. In power-down mode the RAM is saved and all other functions are inoperative. Rev. 4233G–8051–03/03 1 Block Diagram T2EX (1) XRAM 256x8 RxD TxD Vcc Vss (2) (2) XTAL1 XTAL2 PROG TEST (3) (3) CPU VPP Timer 0 Timer 1 INT Ctrl Parallel I/O Ports Port 1 Port 4 Port 3 C51 CORE (1) EUART RAM 256x8 ROM /EPROM 16Kx8 Timer2 IB-bus (2) (2) T0 RESET T1 (2) (2) P1 P4 INT0 INT1 P3 (1): Alternate function of Port 1 (2): Alternate function of Port 3 (3): Multiplexed function of Port 4. 2 T8xC5101/02 4233G–8051–03/03 T2 T8xC5101/02 SFR Mapping The Special Function Registers (SFRs) of the T8xC5101/02 fall into the following categories: • • • • • • • C51 core registers: ACC, B, DPH, DPL, PSW, SP, AUXR1 I/O port registers: P1, P3, P4 Timer registers: T2CON, T2MOD, TCON, TH0, TH1, TH2, TMOD, TL0, TL1, TL2, RCAP2L, RCAP2H Serial I/O port registers: SADDR, SADEN, SBUF, SCON Power and clock control registers: PCON Interrupt system registers: IE, IP, IPH Others: AUXR, CKCON No write must be made to reserved areas. Reading a reserved area will give indeterminate results. 3 4233G–8051–03/03 Table 1. All SFRs With Their Address and Rest Values Bit addressable 0/8 1/9 2/A 3/B Non Bit addressable 4/C 5/D 6/E 7/F F8h F0h B 0000 0000 FFh F7h E8h E0h ACC 0000 0000 EFh E7h D8h D0h PSW 0000 0000 T2CON 0000 0000 P4 XX11 1111 B8h IP XX00 000 B0h P3 1111 1111 A8h IE 0X00 0000 A0h SADDR 0000 0000 AUXR1 XXXX0XX0 98h SCON 0000 0000 90h P1 1111 1111 88h TCON 0000 0000 80h TMOD 0000 0000 SP 0000 0111 0/8 1/9 DFh D7h C8h T2MOD XXXX XX00 RCAP2L 0000 0000 RCAP2H 0000 0000 TL2 0000 0000 TH2 0000 0000 CFh C0h C7h SADEN 0000 0000 IPH XX00 0000 BFh B7h AFh A7h SBUF XXXX XXXX 9Fh 97h TL0 0000 0000 DPL 0000 0000 2/A TL1 0000 0000 DPH 0000 0000 3/B TH0 0000 0000 TH1 0000 0000 AUXR XXXXXX00 CKCON XXXX XXX0 PCON 00X1 0000 8Fh 87h 4/C 5/D 6/E 7/F Reserved 4 T8xC5101/02 4233G–8051–03/03 T8xC5101/02 T8xC5101/02 Pin Configuration P3.4/T0 P3.3/INT1 P3.2/INT0 P3.1 P3.0 1 2 3 4 5 6 7 8 9 10 11 12 24 23 22 21 Vcc P3.5/T1 P3.6 P3.7 P1.7 P1.6 P1.5 P1.4 P1.3 P1.2 P1.1/T2EX P1.0/T2 P3.4/T0 P3.3/INT1 P3.2/INT0 P3.1 P3.0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 28 27 26 25 24 23 Vcc P4.2 P3.5/T1 P3.6 P3.7 P1.7 P1.6 P4.5 P1.5 P1.4 P1.3 P1.2 P1.1/T2EX P1.0/T2 VPP P4.0/Prog P4.1/Test RST XTAL2 XTAL1 Vss DIL24 SO24 SSOP24* 20 19 18 17 16 15 14 13 VPP P4.3 P4.0/Prog P4.1/Test RST XTAL2 XTAL1 P4.4 Vss SO28* 22 21 20 19 18 17 16 15 * Check for availability * Check for availability Pin Number 28 pins 14 28 15-20 22-23 Mnemonic VSS VCC P1.0-P1.7 24 pins 12 24 13-20 Type I I I/O Name and Function Ground: 0V reference Power Supply: This is the power supply voltage for normal, idle and power-down operation Port 1: Port 1 is an 8-bit bidirectional I/O port with internal pull-ups. Port 1 pins that have 1s written to them are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 1 pins that are externally pulled low will source current because of the internal pull-ups. Port 1 also receives the low-order address byte during memory programming and verification. Alternate functions for Port 1 include: I/O I P4.0 (Prog)-P4.1 (Test) 7 8 8 9 O (I) O (I) T2 (P1.0): Timer/Counter 2 external count input/Clockout T2EX (P1.1): Timer/Counter 2 Reload/Capture/Direction Control Port 4 bits 0 & 1: Except during programming and verifying, these two bits are output port driving 30 micro Amps at high level and sinking 10 mA at low level (Vol < 1V). If they have 1s written to them, they output a high level and if they have 0 written to them, they output a low level. These 2 pins cannot be used as inputs. Users should take care to never externally drive these pins low, especially during reset. These two pins are primarily designed to drive LEDs. During programming and verifying, these two pins are used as input, as explained in the corresponding chapter. A Read or a Read/Modify/Write instruction to these bits will read the status of the output: 1 if the output is 1, 0 if the output is 0. P4.2-P4.5 NA 27 7 13 21 5-1 26-24 I/O Port 4 bits 2 to 5: bidirectional I/O port with internal pull-ups. Port 4.2 to 4.5 pins that have 1s written to them are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 4.2 to 4.5 pins that are externally pulled low will source current because of the internal pull-ups. Port 3: Port 3 is an 8-bit bidirectional I/O port with internal pull-ups. Port 3 pins that have 1s written to them are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 3 pins that are externally pulled low will source current because of the internal pull-ups. Port 3 also serves the special features of the 80C51 family, as listed below. RxD (P3.0): Serial input port TxD (P3.1): Serial output port INT0 (P3.2): External interrupt 0 INT1 (P3.3): External interrupt 1 P3.0-P3.7 5-1 23-21 I/O 5 4 3 2 5 4 3 2 I O I I 5 4233G–8051–03/03 Pin Number 28 pins 1 26 25 24 10 Mnemonic 24 pins 1 23 22 21 Type I I I/O I/O I Name and Function T0 (P3.4): Timer 0 external input T1 (P3.5): Timer 1 external input No alternate function on this pin No alternate function on this pin Reset: A high on this pin for two machine cycles while the oscillator is running, resets the device. An internal diffused resistor to VSS permits a power-on reset using only an external capacitor to VCC. Programming Supply Voltage: This pin receives the 12.75V programming supply voltage (VPP) during EPROM programming. During normal operation, VPP pin must be tied to Vcc. Crystal 1: Input to the inverting oscillator amplifier and input to the internal clock generator circuits. Crystal 2: Output from the inverting oscillator amplifier Reset 9 VPP 6 6 I XTAL1 11 12 I XTAL2 10 11 O 6 T8xC5101/02 4233G–8051–03/03 T8xC5101/02 Low Pin Count Specificities The T8xC5101/02 family is not able to perform any external memory access, such as a code fetch, a look-up table access (using MOVC) or a data access (using MOVX) because traditional Port ×0 and Port 2 are not implemented. It should be noted that 2 bits of a new port 4 are available, but they are pure user outputs. On the 28 pin package, there is also a set of 4 extra I/Os, which cannot be used for external access. This inability to perform external memory accesses has the following consequences: • • • • • Port 0 SFR doesn’t exist Port 2 SFR doesn’t exist Port 4 has six bits defined among which two are pure outputs for LED driving. Security level 4 is no longer applicable Code memory addresses is limited to 4000h. Accessing to any address above 3FFFh will return indeterminate value. Jumps, subroutine Calls, MOVC instructions should be limited to a maximum address range of 3FFFh to avoid any error. External data memory addresses is limited to 100h. Writing to any address above FFh will have no effect. Reading any address above FFh will return indeterminate value. To avoid any mistake, MOVX address should be limited to a maximum address range of FFh. In Rx devices, the user could disable the XRAM (for example, if he had shared resource at the corresponding address range). As no external access is possible with the T83/87C510x, it makes no sense to be able to disable accesses to XRAM. Nevertheless, access to AUXR bit 1 will cause no error and any write to this bit will have no effect. As there is no external access, EA, ALE, PSEN, RD and WR signals are not implemented. So, the corresponding pins or alternate function




English     |     日本語     |     漢語     |     한국어     |     Netherlands     |     La France     |     L'Italia     |     Deutschland     |     Россия
This is a individually operated, non profit site.
If this site is good enough to show, please introduce this site to others...

It welcomes all helping each other.     Tool Bar     |    Contact us     |     Link Exchange     |     Buy Components ?     |     Parts Cross Reference