80C152JA
8XC152JA/JB/JC/JD UNIVERSAL COMMUNICATION CONTROLLER
8-BIT MICROCONTROLLER
|
X 8K Factory Mask Programmable ROM Available |
||
Y Superset of 80C51 Architecture |
Y |
64KB Data Memory Addressing |
|
Y |
Multi-Protocol Serial Communication |
Y |
256 Bytes On-Chip RAM |
|
I/O Port (2.048 Mbps/2.4 Mbps Max) |
Y |
Dual On-Chip DMA Channels |
|
Ð SDLC/HDLC Only |
||
|
|
Hold/Hold Acknowledge |
|
|
Ð CSMA/CD and SDLC/HDLC |
Y |
|
|
Ð User Definable Protocols |
Y |
Two General Purpose Timer/Counters |
Y |
Full Duplex/Half Duplex |
Y |
5 or 7 I/O Ports |
Y |
MCSÉ-51 Compatible UART |
Y |
56 Special Function Registers |
Y |
16.5 MHz Maximum Clock Frequency |
Y |
11 Interrupt Sources |
Y Multiple Power Conservation Modes |
Y |
Available in 48 Pin Dual-in-Line Package |
|
Y |
64KB Program Memory Addressing |
|
and 68 Pin Surface Mount PLCC |
|
|
|
Package |
(See Packaging Spec. Order Ý231369)
The 80C152, which is based on the MCSÉ-51 CPU, is a highly integrated single-chip 8-bit microcontroller designed for cost-sensitive, high-speed, serial communications. It is well suited for implementing Integrated Services Digital Networks (ISDN), emerging Local Area Networks, and user defined serial backplane applications. In addition to the multi-protocol communication capability, the 80C152 offers traditional microcontroller features for peripheral I/O interface and control.
Silicon implementations are much more cost effective than multi-wire cables found in board level parallel-to- serial and serial-to-parallel converters. The 83C152 contains, in silicon, all the features needed for the serial- to-parallel conversion. Other 83C152 benefits include: 1) better noise immunity through differential signaling or fiber optic connections, 2) data integrity utilizing the standard, designed in CRC checks, and 3) better modularity of hardware and software designs. All of theseÐcost, network parameter and real estate improvementsÐ apply to 83C152 serial links between boards or systems and 83C152 serial links on a single board.
*Other brands and names are the property of their respective owners.
Information in this document is provided in connection with Intel products. Intel assumes no liability whatsoever, including infringement of any patent or copyright, for sale and use of Intel products except as provided in Intel's Terms and Conditions of Sale for such products. Intel retains the right to make changes to these specifications at any time, without notice. Microcomputer Products may have minor variations to this specification known as errata.
COPYRIGHT © INTEL CORPORATION, 1995 |
October 1989 |
Order Number: 270431-003 |
8XC152JA/JB/JC/JD
270431 ± 2
270431 ± 1
270431 ± 3
Figure 1. Connection Diagrams
2
8XC152JA/JB/JC/JD
*On 80C152JB/JD Only |
270431 ± 18 |
Figure 2. Block Diagram
3
8XC152JA/JB/JC/JD
80C152JB/JD General Description
The 80C152JB/JD is a ROMless extension of the 80C152 Universal Communication controller. The 80C152JB has the same five 8-bit I/O ports of the 80C152, plus an additional two 8-bit I/O ports, Port 5 and Port 6. The 80C152JB/JD also has two addi- tional control pins, EBEN (EPROM Bus ENable), and EPSEN (EPROM bus Program Store ENable).
EBEN selects the functionality of Port 5 and Port 6. When EBEN is low, these ports are strictly I/O, similar to Port 4. The SFR location for Port 5 is 91H and Port 6 is 0A1H. This means Port 5 and Port 6 are not bit addressable. With EBEN low, all program memory fetches take place via Port 0 and Port 2. (The 80C152 is a ROMless only product). When EBEN is high, Port 5 and Port 6 form an address/data bus called the E-Bus (EPROM-Bus) for program memory operations.
EPSEN is used in conjunction with Port 5 and Port 6 program memory operations. EPSEN functions like PSEN during program memory operation, but supports Port 5 and Port 6. EPSEN is the read strobe to external program memory for Port 5 and Port 6. EPSEN is activated twice during each machine cycle unless an external data memory operation occurs on Port(s) 0 and Port 2. When external data memory is accessed the second activation of EPSEN is skipped, which is the same as when using PSEN. Note that data memory fetches cannot be made through Ports 5 and 6.
When EBEN is high and EA is low, all program memory operations take place via Ports 5 and 6. The high byte of the address goes out on Port 6, and the low byte is output on Port 5. ALE is still used to latch the address on Port 5. Next, the op code is read on Port 5. The timing is the same as when using Ports 0 and 2 for external program memory operations.
Table 1. Program Memory Fetches
|
|
|
|
Program |
|
|
|
|
|
|
|
|
EBEN |
|
EA |
PSEN |
EPSEN |
Comments |
|||||||
|
Fetch via |
|||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
0 |
|
0 |
|
P0, P2 |
Active |
Inactive |
Addresses 0 |
± 0FFFFH |
||||
|
|
|
|
|
|
|
|
|
|
|||
0 |
|
1 |
|
N/A |
|
N/A |
|
N/A |
Invalid Combination |
|||
|
|
|
|
|
|
|
|
|
|
|||
1 |
|
0 |
|
P5, P6 |
Inactive |
|
Active |
Addresses 0 |
± 0FFFFH |
|||
|
|
|
|
|
|
|
|
|
|
|||
1 |
|
1 |
|
P5, P6 |
Inactive |
|
Active |
Addresses 0 |
± 1FFFH |
|||
|
|
|
|
P0, P2 |
Active |
Inactive |
Addresses t 2000H |
Table 2. 8XC152 Product Differences
ROMless |
CSMA/CD |
HDLC/SDLC |
ROM |
PLCC |
PLCC |
5 I/O |
7 I/0 |
|
and |
Version |
and |
||||||
Version |
Only |
Only |
Ports |
Ports |
||||
HDLC/SDLC |
Available |
DIP |
||||||
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
80C152JA |
* |
|
*(83C152JA) |
* |
|
* |
|
|
80C152JB |
* |
|
|
|
* |
|
* |
|
|
|
|
|
|
||||
80C152JC |
|
* |
*(83C152JC) |
* |
|
* |
|
|
80C152JD |
|
* |
|
|
* |
|
* |
|
|
|
|
|
|
NOTES:
* e options available
0 standard frequency range 3.5 MHz to 12 MHz 0 ``b1'' frequency range 3.5 MHz to 16.5 MHz
4
|
|
|
|
|
|
|
8XC152JA/JB/JC/JD |
|
|
|
|
|
|
|
|
Pin Ý |
|
|
|
|
Pin Description |
||
DIP |
PLCC(1) |
|
|
|
|
|
|
48 |
2 |
VCCÐSupply voltage. |
|
|
|||
24 |
3,33(2) |
VSSÐCircuit ground. |
|
|
|||
18-21, |
27-30, |
Port 0ÐPort 0 is an 8-bit open drain bidirectional I/O port. As an output port each pin |
|||||
25-28 |
34-37 |
can sink 8 LS TTL inputs. Port 0 pins that have 1s written to them float, and in that |
|||||
|
|
state can be used as high-impedance inputs. |
|||||
|
|
Port 0 is also the multiplexed low-order address and data bus during accesses to |
|||||
|
|
external program memory if EBEN is pulled low. During accesses to external Data |
|||||
|
|
Memory, Port 0 always emits the low-order address byte and serves as the multiplexed |
|||||
|
|
data bus. In these applications it uses strong internal pullups when emitting 1s. |
|||||
|
|
Port 0 also outputs the code bytes during program verification. External pullups are |
|||||
|
|
required during program verification. |
|||||
1-8 |
4-11 |
Port 1ÐPort 1 is an 8-bit bidirectional I/O port with internal pullups. Port 1 pins that |
|||||
|
|
have 1s written to them are pulled high by the internal pullups, and in that state can be |
|||||
|
|
used as inputs. As inputs, Port 1 pins that are externally being pulled low will source |
|||||
|
|
current (IIL, on the data sheet) because of the internal pullups. |
|||||
|
|
Port 1 also serves the functions of various special features of the 8XC152, as listed |
|||||
|
|
below: |
|
|
|
|
|
|
|
Pin |
|
Name |
|
Alternate Function |
|
|
|
P1.0 |
|
GRXD |
|
GSC data input pin |
|
|
|
P1.1 |
|
GTXD |
|
GSC data output pin |
|
|
|
P1.2 |
|
DEN |
|
GSC enable signal for an external driver |
|
|
|
P1.3 |
|
TXC |
|
GSC input pin for external transmit clock |
|
|
|
P1.4 |
|
RXC |
|
GSC input pin for external receive clock |
|
|
|
P1.5 |
|
HLD |
|
|
DMA hold input/output |
|
|
P1.6 |
|
HLDA |
|
DMA hold acknowledge input/output |
|
29-36 |
41-48 |
Port 2ÐPort 2 is an 8-bit bidirectional I/O port with internal pullups. Port 2 pins that |
|||||
|
|
have 1s written to them are pulled high by the internal pullups, and in that state can be |
|||||
|
|
used as inputs. As inputs, Port 2 pins that are externally being pulled low will source |
|||||
|
|
current (IIL, on the data sheet) because of the internal pullups. |
|||||
|
|
Port 2 emits the high-order address byte during fetches from external Program |
|||||
|
|
Memory if EBEN is pulled low. During accesses to external Data Memory that use 16- |
|||||
|
|
bit addresses (MOVX @ DPTR and DMA operations), Port 2 emits the high-order |
|||||
|
|
address byte. In these applications it uses strong internal pullups when emitting 1s. |
|||||
|
|
During accesses to external Data Memory that use 8-bit addresses (MOVX @ Ri), |
|||||
|
|
Port 2 emits the contents of the P2 Special Function Register. |
|||||
|
|
Port 2 also receives the high-order address bits during program verification. |
|||||
1017 |
14-16, |
Port 3ÐPort 3 is an 8-bit bidirectional I/O port with internal pullups. Port 3 pins that |
|||||
|
18, 19, |
have 1s written to them are pulled high by the internal pullups, and in that state can be |
|||||
|
23-25 |
used as inputs. As inputs, Port 3 pins that are externally being pulled low will source |
|||||
|
|
current (IIL, on the data sheet) because of the pullups. |
|||||
|
|
Port 3 also serves the functions of various special features of the MCS-51 Family, as |
|||||
|
|
listed below: |
|
|
|
|
|
|
|
Pin |
|
Name |
|
Alternate Function |
|
|
|
P3.0 |
|
RXD |
|
Serial input line |
|
|
|
P3.1 |
|
TXD |
|
Serial output line |
|
|
|
P3.2 |
|
INT0 |
|
External Interrupt 0 |
|
|
|
P3.3 |
|
INT1 |
|
External Interrupt 1 |
|
|
|
P3.4 |
|
T0 |
|
Timer 0 external input |
|
|
|
P3.5 |
|
T1 |
|
Timer 1 external input |
|
|
|
P3.6 |
|
WR |
|
External Data Memory Write strobe |
|
|
|
P3.7 |
|
RD |
|
External Data Memory Read strobe |
5
8XC152JA/JB/JC/JD
|
|
|
|
|
|
|
Pin Description (Continued) |
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Pin Ý |
|
|
|
|
|
|
|
Pin Description |
|||||
47-40 |
65-58 |
Port 4ÐPort 4 is an 8-bit bidirectional I/O port with internal pullups. Port 4 pins that |
|||||||||||
|
|
have 1s written to them are pulled high by the internal pullups, and in that state can |
|||||||||||
|
|
be used as inputs. As inputs, Port 4 pins that are externally being pulled low will |
|||||||||||
|
|
source current (IIL, on the data sheet) because of the internal pullups. In addition, |
|||||||||||
|
|
|
Port 4 also receives the low-order address bytes during program verification. |
||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
13 |
RSTÐReset input. A logic low on this pin for three machine cycles while the |
|||||||||||
|
|
|
oscillator is running resets the device. An internal pullup resistor permits a power-on |
||||||||||
|
|
|
reset to be generated using only an external capacitor to VSS. Although the GSC |
||||||||||
|
|
|
recognizes the reset after three machine cycles, data may continue to be |
||||||||||
|
|
|
transmitted for up to 4 machine cycles after Reset is first applied. |
||||||||||
38 |
55 |
ALEÐAddress Latch Enable output signal for latching the low byte of the address |
|||||||||||
|
|
during accesses to external memory. |
|||||||||||
|
|
|
In normal operation ALE is emitted at a constant rate of (/6 the oscillator |
||||||||||
|
|
|
frequency, and may be used for external timing or clocking purposes. Note, |
||||||||||
|
|
|
however, that one ALE pulse is skipped during each access to external Data |
||||||||||
|
|
|
Memory. While in Reset, ALE remains at a constant high level. |
||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
54 |
PSENÐProgram Store Enable is the Read strobe to External Program Memory. |
|||||||||||
|
|
|
When the 8XC152 is executing from external program memory, PSEN is active |
||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
(low). When the device is executing code from External Program Memory, PSEN is |
||||||||||
|
|
|
activated twice each machine cycle, except that two PSEN activations are skipped |
||||||||||
|
|
|
during each access to External Data Memory. While in Reset, PSEN remains at a |
||||||||||
|
|
|
constant high level. |
||||||||||
|
|
|
|
|
|
|
|
|
|
||||
39 |
56 |
EAÐExternal Access enable. EA must be externally pulled low in order to enable |
|||||||||||
|
|
|
the 8XC152 to fetch code from External Program Memory locations 0000H to |
||||||||||
|
|
|
0FFFH. |
||||||||||
|
|
|
EA must be connected to VCC for internal program execution. |
||||||||||
23 |
32 |
XTAL1ÐInput to the inverting oscillator amplifier and input to the internal clock |
|||||||||||
|
|
generating circuits. |
|||||||||||
22 |
31 |
XTAL2ÐOutput from the inverting oscillator amplifier. |
|||||||||||
N/A |
17, 20 |
Port 5ÐPort 5 is an 8-bit bidirectional I/O port with internal pullups. Port 5 pins that |
|||||||||||
|
21, 22 |
have 1s written to them are pulled high by the internal pullups, and in that state can |
|||||||||||
|
38, 39 |
be used as inputs. As inputs, Port 5 pins that are externally being pulled low will |
|||||||||||
|
40, 49 |
source current (IIL, on the data sheet) because of the internal pullups. |
|||||||||||
|
|
|
Port 5 is also the multiplexed low-order address and data bus during accesses to |
||||||||||
|
|
|
external program memory if EBEN is pulled high. In this application it uses strong |
||||||||||
|
|
|
pullups when emitting 1s. |
||||||||||
N/A |
67, 66 |
Port 6ÐPort 6 is an 8-bit bidirectional I/O port with internal pullups. Port 6 pins that |
|||||||||||
|
52, 57 |
have 1s written to them are pulled high by the internal pullups, and in that state can |
|||||||||||
|
50, 68 |
be used as inputs. As inputs, Port 6 pins that are externally pulled low will source |
|||||||||||
|
1, 51 |
current (IIL, on the data sheet) because of the internal pullups. |
|||||||||||
|
|
|
Port 6 emits the high-order address byte during fetches from external Program |
||||||||||
|
|
Memory if EBEN is pulled high. In this application it uses strong pullups when |
|||||||||||
|
|
emitting 1s. |
|||||||||||
N/A |
12 |
EBENÐE-Bus Enable input that designates whether program memory fetches take |
|||||||||||
|
|
|
place via Ports 0 and 2 or Ports 5 and 6. Table 1 shows how the ports are used in |
||||||||||
|
|
|
conjunction with EBEN. |
||||||||||
|
|
|
|
|
|
|
|||||||
N/A |
53 |
EPSENÐE-bus Program Store Enable is the Read strobe to external program |
|||||||||||
|
|
|
|
|
|
||||||||
|
|
|
memory when EBEN is high. Table 2 shows when EPSEN is used relative to PSEN |
||||||||||
|
|
|
depending on the status of EBEN and EA. |
6