TS80C54X2 Amtel Semiconductor
TS80C54X2 Amtel Semiconductor
TS87C54X2/C58X2
8-bit CMOS Microcontroller 16/32 Kbytes ROM/OTP
1. Description
TS80C54/58X2 is high performance CMOS ROM, OTP The fully static design of the TS80C54/58X2 allows to
and EPROM versions of the 80C51 CMOS single chip reduce system power consumption by bringing the clock
8-bit microcontroller. frequency down to any value, even DC, without loss of
data.
The TS80C54/58X2 retains all features of the Atmel
Wireless & Microcontrollers 80C51 with extended The TS80C54/58X2 has 2 software-selectable modes of
reduced activity for further reduction in power
ROM/EPROM capacity (16/32 Kbytes), 256 bytes of
consumption. In the idle mode the CPU is frozen while
internal RAM, a 6-source , 4-level interrupt system, an the timers, the serial port and the interrupt system are still
on-chip oscilator and three timer/counters. operating. In the power-down mode the RAM is saved
In addition, the TS80C54/58X2 has a Hardware and all other functions are inoperative.
Watchdog Timer, a more versatile serial channel that
facilitates multiprocessor communication (EUART) and
a X2 speed improvement mechanism.
2. Features
● 80C52 Compatible ● Interrupt Structure with
• 8051 pin and instruction compatible • 6 Interrupt sources
• Four 8-bit I/O ports • 4 level priority interrupt system
• Three 16-bit timer/counters ● Full duplex Enhanced UART
• 256 bytes scratchpad RAM • Framing error detection
● High-Speed Architecture • Automatic address recognition
• 40 MHz @ 5V, 30MHz @ 3V ● Low EMI (inhibit ALE)
• X2 Speed Improvement capability (6 clocks/ ● Power Control modes
machine cycle) • Idle mode
30 MHz @ 5V, 20 MHz @ 3V (Equivalent to • Power-down mode
60 MHz @ 5V, 40 MHz @ 3V)
• Power-off Flag
● Dual Data Pointer
● Once mode (On-chip Emulation)
● On-chip ROM/EPROM (16K-bytes, 32K-bytes)
● Power supply: 4.5-5.5V, 2.7-5.5V
● Programmable Clock Out and Up/Down Timer/
Counter 2 ● Temperature ranges: Commercial (0 to 70oC) and
Industrial (-40 to 85oC)
● Hardware Watchdog Timer (One-time enabled with
Reset-Out) ● Packages: PDIL40, PLCC44, VQFP44 1.4, PQFP44
F1, CQPJ44 (window), CDIL40 (window)
● Asynchronous port reset
PDIL40
PLCC44
ROM (bytes) EPROM (bytes)
PQFP44 F1
VQFP44 1.4
TS80C54X2 16k 0
TS80C58X2 32k 0
TS87C54X2 0 16k
TS87C58X2 0 32k
3. Block Diagram
T2EX
RxD
TxD
Vcc
Vss
T2
(2) (2) (1) (1)
XTAL1
RAM ROM
XTAL2 EUART /EPROM Timer2
256x8 16/32Kx8
EA/VPP
P2
P3
RESET
T0
T1
INT0
INT1
P0
F8h FFh
B
F0h F7h
0000 0000
E8h EFh
ACC
E0h E7h
0000 0000
D8h DFh
PSW
D0h D7h
0000 0000
T2CON T2MOD RCAP2L RCAP2H TL2 TH2
C8h CFh
0000 0000 XXXX XX00 0000 0000 0000 0000 0000 0000 0000 0000
C0h C7h
IP SADEN
B8h BFh
XX00 0000 0000 0000
P3 IPH
B0h B7h
1111 1111 XX00 0000
IE SADDR
A8h AFh
0X00 0000 0000 0000
P2 AUXR1 WDTRST WDTPRG
A0h A7h
1111 1111 XXXX 0XX0 XXXX XXXX XXXX X000
SCON SBUF
98h 9Fh
0000 0000 XXXX XXXX
P1
90h 97h
1111 1111
TCON TMOD TL0 TL1 TH0 TH1 AUXR CKCON
88h 8Fh
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 XXXX XX00 XXXX XXX0
P0 SP DPL DPH PCON
80h 87h
1111 1111 0000 0111 0000 0000 0000 0000 00X1 0000
reserved
P1.0 / T2 1 40 VCC
P1.1 / T2EX 2 39 P0.0 / A0
P1.2 3 38 P0.1 / A1
VSS1/NIC*
P1.1/T2EX
P0.3/AD3
P0.0/AD0
P0.1/AD1
P0.2/AD2
P1.3 4 37 P0.2 / A2
P1.0/T2
P1.4 P0.3 / A3
VCC
5 36
P1.4
P1.3
P1.2
P1.5 6 35 P0.4 / A4
P1.6 7 34 P0.5 / A5
6 5 4 3 2 1 44 43 42 41 40
P1.7 8 33 P0.6 / A6 P1.5 7 39 P0.4/AD4
RST 9 32 P0.7 / A7 P1.6 38
8 P0.5/AD5
P3.0/RxD 10 31 EA/VPP P1.7 9 37
PDIL/ P0.6/AD6
P3.1/TxD 11 30 ALE/PROG RST 10 36 P0.7/AD7
P3.2/INT0 12 CDIL40 29 PSEN P3.0/RxD 11 35 EA/VPP
P3.3/INT1 13 28 P2.7 / A15 NIC*
P2.6 / A14
12 PLCC/CQPJ 44 34 NIC*
P3.4/T0 14 27 P3.1/TxD 13 33
P2.5 / A13 ALE/PROG
P3.5/T1 15 26 P3.2/INT0 14 32 PSEN
P3.6/WR 16 25 P2.4 / A12
P3.3/INT1 15 31 P2.7/A15
P2.3 / A11
P3.7/RD 17 24 P3.4/T0 16 30 P2.6/A14
XTAL2 18 23 P2.2 / A10 P3.5/T1 17 29 P2.5/A13
XTAL1 19 22 P2.1 / A9
18 19 20 21 22 23 24 25 26 27 28
VSS 20 21 P2.0 / A8
NIC*
XTAL2
XTAL1
P3.6/WR
P2.2/A10
P2.3/A11
P2.4/A12
P2.0/A8
P2.1/A9
P3.7/RD
VSS
VSS1/NIC*
P1.1/T2EX
P0.0/AD0
P0.1/AD1
P0.2/AD2
P0.3/AD3
P1.0/T2
VCC
P1.4
P1.3
P1.2
44 43 42 41 40 39 38 37 36 35 34
P1.5 1 33 P0.4/AD4
P1.6 2 32 P0.5/AD5
P1.7 3 31 P0.6/AD6
RST 4 30 P0.7/AD7
P3.0/RxD 5 29 EA/VPP
NIC* 6 28 NIC*
P3.1/TxD 7 PQFP44 F1 27 ALE/PROG
P3.2/INT0 8 VQFP44 1.4 26 PSEN
P3.3/INT1 9 25 P2.7/A15
P3.4/T0 10 24 P2.6/A14
P3.5/T1 11 23 P2.5/A13
12 13 14 15 16 17 18 19 20 21 22
XTAL1
NIC*
XTAL2
P2.3/A11
P2.0/A8
P2.1/A9
VSS
P2.2/A10
P2.4/A12
P3.7/RD
P3.6/WR
6.1 X2 Feature
The TS80C54/58X2 core needs only 6 clock periods per machine cycle. This feature called ”X2” provides the
following advantages:
● Divide frequency crystals by 2 (cheaper crystals) while keeping same CPU power.
● Save power consumption while keeping same CPU power (oscillator power saving).
● Save power consumption by dividing dynamically operating frequency by 2 in operating and idle modes.
● Increase CPU power by 2 while keeping same crystal frequency.
In order to keep the original C51 compatibility, a divider by 2 is inserted between the XTAL1 signal and the main
clock input of the core (phase generator). This divider may be disabled by software.
6.1.1 Description
The clock for the whole circuit and peripheral is first divided by two before being used by the CPU core and
peripherals. This allows any cyclic ratio to be accepted on XTAL1 input. In X2 mode, as this divider is bypassed,
the signals on XTAL1 must have a cyclic ratio between 40 to 60%. Figure 1. shows the clock generation block
diagram. X2 bit is validated on XTAL1÷2 rising edge to avoid glitches when switching from X2 to STD mode.
Figure 2. shows the mode switching waveforms.
XTAL1:2
XTAL1 2 0 state machine: 6 clock cycles.
FXTAL CPU control
1
FOSC
X2
CKCON reg
XTAL1
XTAL1:2
X2 bit
CPU clock
Bit Bit
Description
Number Mnemonic
Reserved
7 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
6 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
5 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
4 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
3 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
2 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
1 -
The value read from this bit is indeterminate. Do not set this bit.
For further details on the X2 feature, please refer to ANM072 available on the web (http://www.atmel -wm.com)
7 0
DPS
DPTR1
DPTR0
AUXR1(A2H)
DPH(83H) DPL(82H)
7 6 5 4 3 2 1 0
- - - - GF3 0 - DPS
Bit Bit
Description
Number Mnemonic
Reserved
7 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
6 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
5 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
4 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
2 0
Always stuck at 0.
Reserved
1 -
The value read from this bit is indeterminate. Do not set this bit.
Application
Software can take advantage of the additional data pointers to both increase speed and reduce code size, for
example, block operations (copy, compare, search ...) are well served by using one data pointer as a ’source’
pointer and the other one as a "destination" pointer.
INC is a short (2 bytes) and fast (12 clocks) way to manipulate the DPS bit in the AUXR1 SFR. However,
note that the INC instruction does not directly force the DPS bit to a particular state, but simply toggles it.
In simple routines, such as the block move example, only the fact that DPS is toggled in the proper sequence
matters, not its actual value. In other words, the block move routine works the same whether DPS is '0' or '1'
on entry. Observe that without the last instruction (INC AUXR1), the routine will exit with DPS in the
opposite state.
(:6 in X2 mode)
XTAL1 :12 0
FXTAL FOSC 1
T2
C/T2 TR2
T2CONreg T2CONreg
TOGGLE T2CONreg
EXF2
RCAP2L RCAP2H
(8-bit) (8-bit)
(UP COUNTING RELOAD VALUE)
F
osc
Clock – OutFrequency = --------------------------------------------------------------------------------------
4 × ( 65536 – RCAP2H ⁄ RCAP2L )
XTAL1 :2
(:1 in X2 mode)
TR2
T2CON reg TL2 TH2
(8-bit) (8-bit)
OVERFLOW
RCAP2L RCAP2H
(8-bit) (8-bit)
Toggle
T2
Q D
T2OE
T2MOD reg
TIMER 2
T2EX EXF2 INTERRUPT
T2CON reg
EXEN2
T2CON reg
Bit Bit
Description
Number Mnemonic
Timer 2 overflow Flag
7 TF2 Must be cleared by software.
Set by hardware on timer 2 overflow, if RCLK = 0 and TCLK = 0.
Bit Bit
Description
Number Mnemonic
Reserved
7 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
6 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
5 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
4 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
3 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
2 -
The value read from this bit is indeterminate. Do not set this bit.
RXD D0 D1 D2 D3 D4 D5 D6 D7
FE
SMOD0=1
RXD D0 D1 D2 D3 D4 D5 D6 D7 D8
RI
SMOD0=1
FE
SMOD0=1
NOTE: The multiprocessor communication and automatic address recognition features cannot be enabled in mode 0 (i.e. setting SM2 bit in SCON
register in mode 0 has no effect).
The following is an example of how to use given addresses to address different slaves:
Slave A: SADDR 1111 0001b
SADEN 1111 1010b
Given 1111 0X0Xb
The SADEN byte is selected so that each slave may be addressed separately.
For slave A, bit 0 (the LSB) is a don’t-care bit; for slaves B and C, bit 0 is a 1. To communicate with slave A
only, the master must send an address where bit 0 is clear (e.g. 1111 0000b).
For slave A, bit 1 is a 1; for slaves B and C, bit 1 is a don’t care bit. To communicate with slaves B and C, but
not slave A, the master must send an address with bits 0 and 1 both set (e.g. 1111 0011b).
To communicate with slaves A, B and C, the master must send an address with bit 0 set, bit 1 clear, and bit 2
clear (e.g. 1111 0001b).
The use of don’t-care bits provides flexibility in defining the broadcast address, however in most applications, a
broadcast address is FFh. The following is an example of using broadcast addresses:
Slave A: SADDR 1111 0001b
SADEN 1111 1010b
Broadcast 1111 1X11b,
For slaves A and B, bit 2 is a don’t care bit; for slave C, bit 2 is set. To communicate with all of the slaves, the
master must send an address FFh. To communicate with slaves A and B, but not slave C, the master can send
and address FBh.
Bit Bit
Description
Number Mnemonic
Framing Error bit (SMOD0=1)
Clear to reset the error state, not cleared by a valid stop bit.
7 FE Set by hardware when an invalid stop bit is detected.
SMOD0 must be set to enable access to the FE bit
Bit Bit
Description
Number Mnemonic
Serial port Mode bit 1
7 SMOD1
Set to select double baud rate in mode 1, 2 or 3.
Reserved
5 -
The value read from this bit is indeterminate. Do not set this bit.
Power-Off Flag
4 POF Clear to recognize next reset type.
Set by hardware when VCC rises from 0 to its nominal voltage. Can also be set by software.
High priority
IPH, IP interrupt
3
INT0 IE0
0
3
TF0
0
3 Interrupt
INT1 IE1 polling
0
sequence, decreasing
3 from high to low priority
TF1
0
RI 3
TI 0
TF2 3
EXF2 0
A low-priority interrupt can be interrupted by a high priority interrupt, but not by another low-priority interrupt.
A high-priority interrupt can’t be interrupted by any other interrupt source.
If two interrupt requests of different priority levels are received simultaneously, the request of higher priority level
is serviced. If interrupt requests of the same priority level are received simultaneously, an internal polling sequence
determines which request is serviced. Thus within each priority level there is a second priority structure determined
by the polling sequence.
Table 11. IE Register
IE - Interrupt Enable Register (A8h)
7 6 5 4 3 2 1 0
EA - ET2 ES ET1 EX1 ET0 EX0
Bit Bit
Description
Number Mnemonic
Enable All interrupt bit
Clear to disable all interrupts.
7 EA Set to enable all interrupts.
If EA=1, each interrupt source is individually enabled or disabled by setting or clearing its own interrupt
enable bit.
Reserved
6 - Reserved
The value read from this bit is indeterminate. Do not set this bit.
Bit Bit
Description
Number Mnemonic
Reserved
7 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
6 -
The value read from this bit is indeterminate. Do not set this bit.
Bit Bit
Description
Number Mnemonic
Reserved
7 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
6 -
The value read from this bit is indeterminate. Do not set this bit.
INT0
INT1
XTAL1
Program
Mode ALE PSEN PORT0 PORT1 PORT2 PORT3
Memory
Idle Internal 1 1 Port Data* Port Data Port Data Port Data
Idle External 1 1 Floating Port Data Address Port Data
Power Down Internal 0 0 Port Data* Port Data Port Data Port Data
Power Down External 0 0 Floating Port Data Port Data Port Data
* Port 0 can force a "zero" level. A "one" Level will leave port floating.
7 6 5 4 3 2 1
Reset value X X X X X X X
Write only, this SFR is used to reset/enable the WDT by writing 01EH then 0E1H in sequence.
Bit Bit
Description
Number Mnemonic
7 T4
6 T3
Reserved
5 T2
Do not try to set or clear this bit.
4 T1
3 T0
S2 S1 S0 Selected Time-out
0 0 0 (214 - 1) machine cycles, 16.3 ms @ 12 MHz
0 0 1 (215 - 1) machine cycles, 32.7 ms @ 12 MHz
0 1 0 (216 - 1) machine cycles, 65.5 ms @ 12 MHz
0 1 1 (217 - 1) machine cycles, 131 ms @ 12 MHz
1 0 0 (218 - 1) machine cycles, 262 ms @ 12 MHz
1 0 1 (219 - 1) machine cycles, 542 ms @ 12 MHz
1 1 0 (220 - 1) machine cycles, 1.05 s @ 12 MHz
1 1 1 (221 - 1) machine cycles, 2.09 s @ 12 MHz
Bit Bit
Description
Number Mnemonic
Serial port Mode bit 1
7 SMOD1
Set to select double baud rate in mode 1, 2 or 3.
Reserved
5 -
The value read from this bit is indeterminate. Do not set this bit.
Power-Off Flag
4 POF Clear to recognize next reset type.
Set by hardware when VCC rises from 0 to its nominal voltage. Can also be set by software.
Bit Bit
Description
Number Mnemonic
Reserved
7 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
6 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
5 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
4 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
3 -
The value read from this bit is indeterminate. Do not set this bit.
Reserved
2 -
The value read from this bit is indeterminate. Do not set this bit.
U: unprogrammed
P: programmed
U: unprogrammed,
P: programmed
WARNING: Security level 2 and 3 should only be programmed after EPROM and Core verification.
+5V
P0.0-P0.7 D0-D7
RST
PSEN P1.0-P1.7 A0-A7
P2.6
CONTROL
P2.7
SIGNALS* P2.0-P2.5, A8-A14
P3.3
P3.4
P3.6
P3.7
A0-A12
100µs
ALE/PROG
12.75V
EA/VPP 5V
0V
Control sig-
nals
NOTES
1. Stresses at or above those listed under “ Absolute Maximum Ratings” may cause permanent damage to the device. This is a stress rating only
and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not
implied. Exposure to absolute maximum rating conditions may affect device reliability.
2. This value is based on the maximum allowable die temperature and the thermal resistance of the package.
VIH Input High Voltage except XTAL1, RST 0.2 VCC + 0.9 VCC + 0.5 V
VIH1 Input High Voltage, XTAL1, RST 0.7 VCC VCC + 0.5 V
VOL Output Low Voltage, ports 1, 2, 3 (6) 0.3 V IOL = 100 µA(4)
0.45 V
IOL = 1.6 mA(4)
1.0 V
IOL = 3.5 mA(4)
VOL1 Output Low Voltage, port 0 (6) 0.3 V IOL = 200 µA(4)
0.45 V
IOL = 3.2 mA(4)
1.0 V
IOL = 7.0 mA(4)
VOL2 Output Low Voltage, ALE, PSEN 0.3 V IOL = 100 µA(4)
0.45 V
IOL = 1.6 mA(4)
1.0 V
IOL = 3.5 mA(4)
ILI Input Leakage Current ±10 µA 0.45 V < Vin < VCC
IPD Power Down Current 20 (5) 50 µA 2.0 V < VCC < 5.5 V(3)
VIH Input High Voltage except XTAL1, RST 0.2 VCC + 0.9 VCC + 0.5 V
VIH1 Input High Voltage, XTAL1, RST 0.7 VCC VCC + 0.5 V
VOL Output Low Voltage, ports 1, 2, 3 (6) 0.45 V IOL = 0.8 mA(4)
VOL1 Output Low Voltage, port 0, ALE, PSEN (6) 0.45 V IOL = 1.6 mA(4)
VOH1 Output High Voltage, port 0, ALE, PSEN 0.9 VCC V IOH = -40 µA
ILI Input Leakage Current ±10 µA 0.45 V < Vin < VCC
NOTES
1. ICC under reset is measured with all output pins disconnected; XTAL1 driven with TCLCH, TCHCL = 5 ns (see Figure 17.), VIL = VSS + 0.5 V,
VIH = VCC - 0.5V; XTAL2 N.C.; EA = RST = Port 0 = VCC. ICC would be slightly higher if a crystal oscillator used..
2. Idle ICC is measured with all output pins disconnected; XTAL1 driven with TCLCH, TCHCL = 5 ns, VIL = VSS + 0.5 V, VIH = VCC - 0.5 V; XTAL2
N.C; Port 0 = VCC; EA = RST = VSS (see Figure 15.).
3. Power Down ICC is measured with all output pins disconnected; EA = VSS, PORT 0 = VCC; XTAL2 NC.; RST = VSS (see Figure 16.).
4. Capacitance loading on Ports 0 and 2 may cause spurious noise pulses to be superimposed on the VOLs of ALE and Ports 1 and 3. The noise is
due to external bus capacitance discharging into the Port 0 and Port 2 pins when these pins make 1 to 0 transitions during bus operation. In the worst
cases (capacitive loading 100pF), the noise pulse on the ALE line may exceed 0.45V with maxi VOL peak 0.6V. A Schmitt Trigger use is not necessary.
5. Typicals are based on a limited number of samples and are not guaranteed. The values listed are at room temperature and 5V.
6. Under steady state (non-transient) conditions, IOL must be externally limited as follows:
Maximum IOL per port pin: 10 mA
Maximum IOL per 8-bit port:
Port 0: 26 mA
Ports 1, 2 and 3: 15 mA
Maximum total IOL for all output pins: 71 mA
If IOL exceeds the test condition, VOL may exceed the related specification. Pins are not guaranteed to sink current greater than the listed test conditions.
7. For other values, please contact your sales office.
8. Operating ICC is measured with all output pins disconnected; XTAL1 driven with TCLCH, TCHCL = 5 ns (see Figure 17.), VIL = VSS + 0.5 V,
VIH = VCC - 0.5V; XTAL2 N.C.; EA = Port 0 = VCC; RST = VSS. The internal ROM runs the code 80 FE (label: SJMP label). ICC would be slightly
higher if a crystal oscillator is used. Measurements are made with OTP products when possible, which is the worst case.
VCC
ICC
VCC VCC
P0
VCC
RST EA
(NC) XTAL2
CLOCK XTAL1
SIGNAL
VSS
VCC
ICC
VCC VCC
(NC) XTAL2
CLOCK XTAL1
SIGNAL All other pins are disconnected.
VSS
VCC
ICC
VCC VCC
(NC) XTAL2
CLOCK XTAL1
SIGNAL All other pins are disconnected.
VSS
VCC
ICC
VCC VCC
P0
Reset = Vss after a high pulse
during at least 24 clock cycles
RST EA
(NC) XTAL2
XTAL1
VSS All other pins are disconnected.
VCC-0.5V 0.7VCC
0.45V 0.2VCC-0.1
TCHCL TCLCH
TCLCH = TCHCL = 5ns.
Figure 17. Clock Signal Waveform for ICC Tests in Active and Idle Modes
Table 26. gives the maximum applicable load capacitance for Port 0, Port 1, 2 and 3, and ALE and PSEN signals.
Timings will be guaranteed if these capacitances are respected. Higher capacitance values can be used, but timings
will then be degraded.
Table 28., Table 31. and Table 34. give the description of each AC symbols.
Table 29., Table 32. and Table 35. give for each range the AC parameter.
Table 30., Table 33. and Table 36. give the frequency derating formula of the AC parameter. To calculate each
AC symbols, take the x value corresponding to the speed grade you need (-M, -V or -L) and replace this value
in the formula. Values of the frequency must be limited to the corresponding speed grade:
Table 27. Max frequency for derating formula regarding the speed grade
-M X1 mode -M X2 mode -V X1 mode -V X2 mode -L X1 mode -L X2 mode
Freq (MHz) 40 20 40 30 30 20
T (ns) 25 50 25 33.3 33.3 50
Example:
TLLIV in X2 mode for a -V part at 20 MHz (T = 1/20E6 = 50 ns):
x= 22 (Table 30.)
T= 50ns
TLLIV= 2T - x = 2 x 50 - 22 = 78ns
Speed -M -V -V -L -L Units
40 MHz X2 mode standard mode X2 mode standard mode
30 MHz 40 MHz 20 MHz 30 MHz
60 MHz equiv. 40 MHz equiv.
Symbol Min Max Min Max Min Max Min Max Min Max
T 25 33 25 50 33 ns
TLHLL 40 25 42 35 52 ns
TAVLL 10 4 12 5 13 ns
TLLAX 10 4 12 5 13 ns
TLLIV 70 45 78 65 98 ns
TLLPL 15 9 17 10 18 ns
TPLPH 55 35 60 50 75 ns
TPLIV 35 25 50 30 55 ns
TPXIX 0 0 0 0 0 ns
TPXIZ 18 12 20 10 18 ns
TAVIV 85 53 95 80 122 ns
TPLAZ 10 10 10 10 10 ns
TPXIX Min x x 0 0 0 ns
TPLAZ Max x x 10 10 10 ns
12 TCLCL
TLHLL TLLIV
ALE TLLPL
TPLPH
PSEN TPXAV
TLLAX TPXIZ
TPLIV
TAVLL TPLAZ TPXIX
PORT 0 INSTR IN A0-A7 INSTR IN A0-A7 INSTR IN
TAVIV
PORT 2 ADDRESS
OR SFR-P2 ADDRESS A8-A15 ADDRESS A8-A15
TLLWL ALE to WR or RD
TAVWL Address to WR or RD
Speed -M -V -V -L -L Units
40 MHz X2 mode standard mode X2 mode standard mode
30 MHz 40 MHz 20 MHz 30 MHz
60 MHz equiv. 40 MHz equiv.
Symbol Min Max Min Max Min Max Min Max Min Max
TRHDX 0 0 0 0 0 ns
TRHDZ 30 18 35 25 42 ns
TAVWL 75 47 80 70 103 ns
TQVWX 10 7 15 5 13 ns
TWHQX 15 9 17 10 18 ns
TRLAZ 0 0 0 0 0 ns
TWHLH 10 40 7 27 15 35 5 45 13 53 ns
TRHDX Min x x 0 0 0 ns
TRLAZ Max x x 0 0 0 ns
TWHLH
ALE
PSEN
TLLWL TWLWH
WR
TQVWX
TLLAX TQVWH TWHQX
PORT 0 A0-A7 DATA OUT
TAVWL
PORT 2 ADDRESS
OR SFR-P2 ADDRESS A8-A15 OR SFR P2
TWHLH
ALE TLLDV
PSEN
TLLWL TRLRH
TRLDV
RD TRHDZ
TAVDV
TLLAX TRHDX
PORT 0 A0-A7 DATA IN
TRLAZ
TAVWL
PORT 2 ADDRESS
OR SFR-P2 ADDRESS A8-A15 OR SFR P2
Speed -M -V -V -L -L Units
40 MHz X2 mode standard mode X2 mode standard mode
30 MHz 40 MHz 20 MHz 30 MHz
60 MHz equiv. 40 MHz equiv.
Symbol Min Max Min Max Min Max Min Max Min Max
TXHQX 30 13 30 30 47 ns
TXHDX 0 0 0 0 0 ns
TXLXL Min 12 T 6T ns
TXHDX Min x x 0 0 0 ns
INSTRUCTION 0 1 2 3 4 5 6 7 8
ALE
TXLXL
CLOCK
TXHQX
TQVXH
OUTPUT DATA 0 1 2 3 4 5 6 7
TXHDX SET TI
WRITE to SBUF TXHDV
INPUT DATA VALID VALID VALID VALID VALID VALID VALID VALID
SET RI
CLEAR RI
PROGRAMMING VERIFICATION
P1.0-P1.7
ADDRESS ADDRESS
P2.0-P2.5
P3.4-P3.5* TAVQV
VCC-0.5 V
0.7VCC
0.45 V 0.2VCC-0.1 V TCHCX
TCHCL TCLCX TCLCH
TCLCL
VCC-0.5 V
0.2VCC+0.9
INPUT/OUTPUT 0.2VCC-0.1
0.45 V
FLOAT
VOH-0.1 V VLOAD VLOAD+0.1 V
VOL+0.1 V VLOAD-0.1 V
XTAL2
ALE
THESE SIGNALS ARE NOT ACTIVATED DURING THE
EXTERNAL PROGRAM MEMORY FETCH EXECUTION OF A MOVX INSTRUCTION
PSEN
READ CYCLE
RD
PCL OUT (IF PROGRAM
MEMORY IS EXTERNAL)
P0 DPL OR Rt OUT
FLOAT
P2 INDICATES DPH OR P2 SFR TO PCH TRANSITION
WRITE CYCLE
WR PCL OUT (EVEN IF PROGRAM
MEMORY IS INTERNAL)
P0 DPL OR Rt OUT
PORT OPERATION
This diagram indicates when signals are clocked internally. The time it takes the signals to propagate to the pins,
however, ranges from 25 to 125 ns. This propagation delay is dependent on variables such as temperature and pin
loading. Propagation also varies from output to output and component. Typically though (TA=25°C fully loaded)
RD and WR propagation delays are approximately 50ns. The other signals are typically 85 ns. Propagation delays
are incorporated in the AC specifications.
TS 87C58X2 -M C B R
Part Number
TS80C54X2yyy: 16k ROM, yyy is the customer code
TS80C58X2yyy: 32k ROM, yyy is the customer code
TS87C54X2: 16k OTP EPROM
TS87C58X2: 32k OTP EPROM
Conditioning
R: Tape & Reel
D: Dry Pack
B: Tape & Reel and
Temperature Range Dry Pack
C: Commercial 0 to 70oC
I: Industrial -40 to 85oC
(*) Check with Atmel Wireless & Microcontrollers Sales Office for availability. Ceramic packages (J, K) are available for proto-
typing, not for volume production. Ceramic packages are available for OTP only (TS87C54/58X2).
Code -M -V -L Unit
Standard Mode, oscillator frequency 40 40 30
MHz
Standard Mode, internal frequency 40 40 30
X2 Mode, oscillator frequency 20 30 20
MHz
X2 Mode, internal equivalent frequency 40 60 40