80C51 8-bit microcontroller family
16K/64K/512 FLASH
Preliminary specification
Supersedes data of 1997 Dec 02
IC20 Data Handbook
1998 Apr 24
Page 2
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
DESCRIPTION
The 89C536/89C538 are Single-Chip 8-Bit Microcontrollers
manufactured in advanced CMOS process and are derivatives of
the 80C51 microcontroller family. All the devices have the same
instruction set as the 80C51.
The devices also have four 8-bit I/O ports, three 16-bit timer/event
counters, a multi-source, two-priority-level, nested interrupt
structure, UART and on-chip oscillator and timing circuits. For
systems that require extra data memory capability up to 64k bytes,
each can be expanded using standard TTL-compatible memories
and logic.
The 89C536/89C538 contain a non-volatile FLASH program
memory (16k bytes in the 89C536, and 64k bytes in the 89C538).
The devices have 512 bytes of RAM data memory.
ORDERING INFORMATION
PART NUMBERMEMORY SIZETEMPERATURE RANGE (°C) AND PACKAGE
P89C536NBA A16k bytes0 to +70, 44-pin Plastic Leaded Chip Carrier33SOT187-2
P89C536NBB B16k bytes0 to +70, 44-pin Plastic Quad Flat Package33SOT307-2
P89C538NBA A64k bytes0 to +70, 44-pin Plastic Leaded Chip Carrier33SOT187-2
P89C538NBB B64k bytes0 to +70, 44-pin Plastic Quad Flat Package33SOT307-2
FEATURES
•80C51 Central Processing Unit
•16k × 8 (89C536) or 64k × 8 (89C538), FLASH EPROM Program
Memory
•512 × 8 RAM, externally expandable to 64k × 8 Data Memory
•Three 16-bit counter/timers
•Up to 3 external interrupt request inputs
•6 interrupt sources with 2 priority levels
•Four 8-bit I/O ports
•Full-duplex UART
•Power control modes
– Idle mode
– Power down mode, with wakeup from power down using
external interrupt
•44-pin PLCC and QFP packages
89C536/89C538
FREQ.
(MHz)
DRAWING
NUMBER
1998 Apr 24
2
Page 3
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
BLOCK DIAGRAM
V
CC
V
SS
PSEN
ALE/PROG
EAV
RST
RAM ADDR
REGISTER
REGISTER
TIMING
PP
CONTROL
XTAL1XTAL2
B
AND
PD
OSCILLATOR
REGISTER
INSTRUCTION
RAM
ACC
TMP2
PORT 1
PORT 1
DRIVERS
P1.0–P1.7
P0.0–P0.7P2.0–P2.7
PORT 0
DRIVERS
PORT 0
LATCH
TMP1
ALU
PSW
LATCH
PORT 2
DRIVERS
PORT 2
LATCH
SFRs
TIMERS
STACK
POINTER
PORT 3
LATCH
PORT 3
DRIVERS
P3.0–P3.7
ROF/
EPROM
PROGRAM
ADDRESS
REGISTER
BUFFER
PC
INCRE-
MENTER
816
PROGRAM
COUNTER
DPTR’S
MULTIPLE
89C536/89C538
8
LOGIC SYMBOL
RST
/V
EA
PSEN
ALE/PROG
RxD
TxD
INT0
INT1
T0
T1
WR
RD
SECONDARY FUNCTIONS
XTAL1
XTAL2
PP
PORT 3
SU00854
PROGRAMMING INFORMA TION:
V
V
SS
CC
ADDRESS AND
DATA BUS
PORT 0
T2
T2EX
PORT 1PORT 2
ADDRESS BUS
SU00830
Programmers are provided by:
CompanyPhone Number Internet Address
Advin1–800–627–2456
BP Microsystem1–800–225–2102 http://www.bpmicro.com
Data I/O1–206–881–6444 http://www.data–io.com
HiLo
1998 Apr 24
3
Page 4
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
80C51 8-bit microcontroller family
16K/64K/512 FLASH
PIN DESCRIPTIONS
PIN NUMBER
MNEMONIC LCCQFPTYPE NAME AND FUNCTION
V
SS
V
CC
P0.0–0.743–3637–30I/OPort 0: Port 0 is an open-drain, bidirectional I/O port. Port 0 pins that have 1s written to them float
P1.0–P1.72–940–44,
P2.0–P2.724–31 18–25I/OPort 2: Port 2 is an 8-bit bidirectional I/O port with internal pull-ups. Port 2 pins that have 1s written
P3.0–P3.711,
RST104IReset: A high on this pin for two machine cycles while the oscillator is running, resets the device. An
ALE/PROG3327OAddress Latch Enable/Program Pulse: Output pulse for latching the low byte of the address
PSEN3226OProgram Store Enable: The read strobe to external program memory. When the processor is
EA/V
PP
XTAL12115ICrystal 1: Input to the inverting oscillator amplifier and input to the internal clock generator circuits.
XTAL22014OCrystal 2: Output from the inverting oscillator amplifier.
NOTE:
To avoid “latch-up” effect at power-on, the voltage on any pin at any time must not be higher than V
1, 2216, 39IGround: 0V reference.
23, 44 17, 38IPower Supply: This is the power supply voltage for normal, idle, and power-down operation.
and can be used as high-impedance inputs. Port 0 is also the multiplexed low-order address and
data bus during accesses to external program and data memory. In this application, it uses strong
internal pull-ups when emitting 1s. Port 0 also outputs the code bytes during program verification and
received code bytes during EEPROM programming. External pull-ups are required during program
verification.
115IRxD (P3.0): Serial input port
137OTxD (P3.1): Serial output port
148IINT0 (P3.2): External interrupt
159IINT1 (P3.3): External interrupt
1610IT0 (P3.4): Timer 0 external input
1711IT1 (P3.5): Timer 1 external input
1812OWR (P3.6): External data memory write strobe
1913ORD (P3.7): External data memory read strobe
3529IExternal Access Enable/Programming Supply Voltage: EA must be externally held low to enable
I/OPort 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. (See DC Electrical
Characteristics: I
verification.
Alternate functions for Port 1 include:
to them are pulled high by the internal pull-ups and can be used as inputs. As inputs, port 2 pins that
are externally being pulled low will source current because of the internal pull-ups. (See DC
Electrical Characteristics: I
program memory and during accesses to external data memory that use 16-bit addresses (MOVX
@DPTR). In this application, it uses strong internal pull-ups when emitting 1s. Some Port 2 pins
receive the high order address bits during EEPROM programming and verification.
I/OPort 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 being pulled low will source current because of the pull-ups. (See DC Electrical
Characteristics: I
internal diffused resistor to V
during an access to external memory. In normal operation, ALE is emitted at a constant rate of 1/6
the oscillator frequency , and can be used for external timing or clocking. Note that one ALE pulse is
skipped during each access to external data memory. This pin is also the program pulse input
(PROG
) during EEPROM programming.
executing code from the external program memory, PSEN
except that two PSEN
not activated during fetches from internal program memory.
the device to fetch code from external program memory. If EA
internal program memory. This pin also receives the 12V programming supply voltage (V
EPROM programming. EA
). Port 1 also receives the low-order address byte during program memory
IL
). Port 2 emits the high-order address byte during fetches from external
IL
). Port 3 also serves the special features of the 80C51 family, as listed below:
IL
permits a power-on reset using only an external capacitor to VCC.
SS
activations are skipped during each access to external data memory. PSEN is
is internally latched on Reset.
is activated twice each machine cycle,
+ 0.5V or VSS – 0.5V, respectively.
CC
89C536/89C538
is held high, the device executes from
) during
PP
1998 Apr 24
5
Page 6
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
T2CON*Timer 2 ControlC8HTF2EXF2RCLKTCLKEXEN2TR2C/T2CP/RL2 00H
TH0Timer High 08CH00H
TH1Timer High 18DH00H
TH2#Timer High 2CDH00H
TL0Timer Low 08AH00H
TL1Timer Low 18BH00H
TL2#Timer Low 2CCH00H
TMODTimer Mode89HGATEC/TM1M0GATEC/TM1M000H
* SFRs are bit addressable.
# SFRs are modified from or added to the 80C51 SFRs.
– Reserved bits.
#Timer 2 Capture HighCBH00H
#Timer 2 Capture LowCAH00H
EXTRAM
D7D6D5D4D3D2D1D0
9F9E9D9C9B9A9998
8F8E8D8C8B8A8988
CFCECDCCCBCAC9C8
––GF1GF0PDIDL00xx0000B
1998 Apr 24
6
Page 7
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
OSCILLA T OR CHARACTERISTICS
XTAL1 and XTAL2 are the input and output, respectively , of an
inverting amplifier . The pins can be configured for use as an on-chip
oscillator.
To drive the device from an external clock source, XTAL1 should be
driven while XTAL2 is left unconnected. There are no requirements
on the duty cycle of the external clock signal, because the input to
the internal clock circuitry is through a divide-by-two flip-flop.
However, minimum and maximum high and low times specified in
the data sheet must be observed.
RESET
A reset is accomplished by holding the RST pin high for at least two
machine cycles (24 oscillator periods), while the oscillator is running.
To insure a good power-on reset, the RST pin must be high long
enough to allow the oscillator time to start up (normally a few
milliseconds) plus two machine cycles. At power-on, the voltage on
V
and RST must come up at the same time for a proper start-up.
CC
Ports 1, 2, and 3 will asynchronously be driven to their reset
condition when a voltage above V
LOW POWER MODES
Idle Mode
In the idle mode (see Table 2), the CPU puts itself to sleep while all
of the on-chip peripherals stay active. The instruction to invoke the
idle mode is the last instruction executed in the normal operating
mode before the idle mode is activated. The CPU contents, the
on-chip RAM, and all of the special function registers remain intact
during this mode. The idle mode can be terminated either by any
enabled interrupt (at which time the process is picked up at the
(min.) is applied to RESET.
IH1
89C536/89C538
interrupt service routine and continued), or by a hardware reset
which starts the processor in the same manner as a power-on reset.
Power-Down Mode
To save even more power, a Power Down mode (see Table 2) can
be invoked by software. In this mode, the oscillator is stopped and
the instruction that invoked Power Down is the last instruction
executed. The on-chip RAM and Special Function Registers retain
their values down to 2.0V and care must be taken to return V
the minimum specified operating voltages before the Power Down
Mode is terminated.
Either a hardware reset or external interrupt can be used to exit from
Power Down. Reset redefines all the SFRs but does not change the
on-chip RAM. An external interrupt allows both the SFRs and the
on-chip RAM to retain their values.
To properly terminate Power Down the reset or external interrupt
should not be executed before V
operating level and must be held active long enough for the
oscillator to restart and stabilize (normally less than 10ms).
With an external interrupt, INT0 and INT1 must be enabled and
configured as level-sensitive. Holding the pin low restarts the
oscillator but bringing the pin back high completes the exit. Once the
interrupt is serviced, the next instruction to be executed after RETI
will be the one following the instruction that put the device into
Power Down.
is restored to its normal
CC
Design Consideration
•To eliminate the possibility of an unexpected write when Idle is
terminated by reset, the instruction following the one that invokes
Idle should not be one that writes to a port pin or to memory.
CC
to
Table 2. External Pin Status During Idle and Power-Down Mode
80C51 8-bit microcontroller family
16K/64K/512 FLASH
TIMER 2 OPERATION
Timer 2
Timer 2 is a 16-bit Timer/Counter which can operate as either an
event timer or an event counter, as selected by C/T2* in the special
function register T2CON (see Figure 1). Timer 2 has three operating
modes:Capture, Auto-reload, and Baud Rate Generator, which are
selected by bits in the T2CON as shown in Table 3.
Capture Mode
In the capture mode there are two options which are selected by bit
EXEN2 in T2CON. If EXEN2=0, then timer 2 is a 16-bit timer or
counter (as selected by C/T2* in T2CON) which, upon overflowing
sets bit TF2, the timer 2 overflow bit. This bit can be used to
generate an interrupt (by enabling the Timer 2 interrupt bit in the
IE register/SFR table). If EXEN2= 1, Timer 2 operates as described
above, but with the added feature that a 1- to -0 transition at external
input T2EX causes the current value in the Timer 2 registers, TL2
and TH2, to be captured into registers RCAP2L and RCAP2H,
respectively. In addition, the transition at T2EX causes bit EXF2 in
T2CON to be set, and EXF2 like TF2 can generate an interrupt
(which vectors to the same location as Timer 2 overflow interrupt.
The Timer 2 interrupt service routine can interrogate TF2 and EXF2
to determine which event caused the interrupt). The capture mode is
89C536/89C538
illustrated in Figure 2 (There is no reload value for TL2 and TH2 in
this mode. Even when a capture event occurs from T2EX, the
counter keeps on counting T2EX pin transitions or osc/12 pulses.).
Auto-Reload Mode
In the 16-bit auto-reload mode, Timer 2 can be configured as either
a timer or counter (C/T2* in T2CON).
Figure 3 shows the auto–reload mode of Timer 2. In this mode there
are two options selected by bit EXEN2 in T2CON register. If
EXEN2=0, then Timer 2 counts up to 0FFFFH and sets the TF2
(Overflow Flag) bit upon overflow. This causes the Timer 2 registers
to be reloaded with the 16-bit value in RCAP2L and RCAP2H.
The values in RCAP2L and RCAP2H are preset by software. If
EXEN2=1, then a 16-bit reload can be triggered either by an
overflow or by a 1-to-0 transition at input T2EX. This transition also
sets the EXF2 bit. The Timer 2 interrupt, if enabled, can be
generated when either TF2 or EXF2 are 1.
The external flag EXF2 toggles when Timer 2 underflows or
overflows. This EXF2 bit can be used as a 17th bit of resolution if
needed. The EXF2 flag does not generate an interrupt in this mode
of operation.
(MSB)(LSB)
TF2EXF2RCLKTCLKEXEN2TR2C/T2
SymbolPositionName and Significance
TF2T2CON.7Timer 2 overflow flag set by a Timer 2 overflow and must be cleared by software. TF2 will not be set
EXF2T2CON.6Timer 2 external flag set when either a capture or reload is caused by a negative transition on T2EX and
RCLKT2CON.5Receive clock flag. When set, causes the serial port to use Timer 2 overflow pulses for its receive clock
TCLKT2CON.4Transmit clock flag. When set, causes the serial port to use Timer 2 overflow pulses for its transmit clock
EXEN2T2CON.3Timer 2 external enable flag. When set, allows a capture or reload to occur as a result of a negative
TR2T2CON.2Start/stop control for Timer 2. A logic 1 starts the timer.
C/T2
CP/RL2
T2CON.1Timer or counter select. (Timer 2)
T2CON.0Capture/Reload flag. When set, captures will occur on negative transitions at T2EX if EXEN2 = 1. When
when either RCLK or TCLK = 1.
EXEN2 = 1. When Timer 2 interrupt is enabled, EXF2 = 1 will cause the CPU to vector to the Timer 2
interrupt routine. EXF2 must be cleared by software.
in modes 1 and 3. RCLK = 0 causes Timer 1 overflow to be used for the receive clock.
in modes 1 and 3. TCLK = 0 causes Timer 1 overflows to be used for the transmit clock.
transition on T2EX if Timer 2 is not being used to clock the serial port. EXEN2 = 0 causes Timer 2 to
ignore events at T2EX.
cleared, auto-reloads will occur either with Timer 2 overflows or negative transitions at T2EX when
EXEN2 = 1. When either RCLK = 1 or TCLK = 1, this bit is ignored and the timer is forced to auto-reload
on Timer 2 overflow .
Bits TCLK and/or RCLK in T2CON (Table 3) allow the serial port
transmit and receive baud rates to be derived from either Timer 1 or
Timer 2. When TCLK= 0, Timer 1 is used as the serial port transmit
baud rate generator . When TCLK= 1, Timer 2 is used as the serial
port transmit baud rate generator. RCLK has the same effect for the
serial port receive baud rate. With these two bits, the serial port can
have different receive and transmit baud rates – one generated by
Timer 1, the other by Timer 2.
Figure 4 shows the Timer 2 in baud rate generation mode. The baud
rate generation mode is like the auto-reload mode,in that a rollover
in TH2 causes the Timer 2 registers to be reloaded with the 16-bit
value in registers RCAP2H and RCAP2L, which are preset by
software.
SU00068
The baud rates in modes 1 and 3 are determined by Timer 2’s
overflow rate given below:
Modes 1 and 3 Baud Rates
Timer 2 Overflow Rate
16
The timer can be configured for either “timer” or “counter” operation.
In many applications, it is configured for “timer” operation (C/T2*=0).
Timer operation is different for Timer 2 when it is being used as a
baud rate generator.
Usually, as a timer it would increment every machine cycle (i.e., 1/12
the oscillator frequency). As a baud rate generator, it increments
every state time (i.e., 1/2 the oscillator frequency). Thus the baud
rate formula is as follows:
Modes 1 and 3 Baud Rates =
Oscillator Frequency
[32 [65536 (RCAP2H,RCAP2L)]]
Where: (RCAP2H, RCAP2L)= The content of RCAP2H and
RCAP2L taken as a 16-bit unsigned integer.
The Timer 2 as a baud rate generator mode shown in Figure 4, is
valid only if RCLK and/or TCLK = 1 in T2CON register. Note that a
rollover in TH2 does not set TF2, and will not generate an interrupt.
Thus, the Timer 2 interrupt does not have to be disabled when
Timer 2 is in the baud rate generator mode. Also if the EXEN2
(T2 external enable flag) is set, a 1-to-0 transition in T2EX
(Timer/counter 2 trigger input) will set EXF2 (T2 external flag) but
will not cause a reload from (RCAP2H, RCAP2L) to (TH2,TL2).
Therefore when Timer 2 is in use as a baud rate generator, T2EX
can be used as an additional external interrupt, if needed.
1998 Apr 24
10
Page 11
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
When Timer 2 is in the baud rate generator mode, one should not try
to read or write TH2 and TL2. As a baud rate generator, T imer 2 is
incremented every state time (osc/2) or asynchronously from pin T2;
under these conditions, a read or write of TH2 or TL2 may not be
accurate. The RCAP2 registers may be read, but should not be
written to, because a write might overlap a reload and cause write
and/or reload errors. The timer should be turned off (clear TR2)
before accessing the Timer 2 or RCAP2 registers.
Table 4 shows commonly used baud rates and how they can be
obtained from Timer 2.
Summary Of Baud Rate Equations
Timer 2 is in baud rate generating mode. If Timer 2 is being clocked
through pin T2(P1.0) the baud rate is:
Baud Rate +
Timer 2 Overflow Rate
16
Table 5. Timer 2 as a Timer
MODE
16-bit Auto-Reload00H08H
16-bit Capture01H09H
Baud rate generator receive and transmit same baud rate34H36H
Receive only24H26H
Transmit only14H16H
If Timer 2 is being clocked internally , the baud rate is:
Baud Rate +
Where f
OSC
To obtain the reload value for RCAP2H and RCAP2L, the above
equation can be rewritten as:
RCAP2H,RCAP2L + 65536 *
[32 [65536 * (RCAP2H,RCAP2L)]]
= Oscillator Frequency
Timer/Counter 2 Set-up
Except for the baud rate generator mode, the values given for
T2CON do not include the setting of the TR2 bit. Therefore, bit TR2
must be set, separately, to turn the timer on. see Table 5 for set-up
of Timer 2 as a timer. Also see Table 6 for set-up of Timer 2 as a
counter.
T2CON
INTERNAL CONTROL
(Note 1)
89C536/89C538
f
OSC
f
ǒ
32 Baud Rate
EXTERNAL CONTROL
OSC
(Note 2)
Ǔ
Table 6. Timer 2 as a Counter
TMOD
MODE
16-bit02H0AH
Auto-Reload03H0BH
NOTES:
1. Capture/reload occurs only on timer/counter overflow.
2. Capture/reload occurs on timer/counter overflow and a 1-to-0 transition on T2EX (P1.1) pin except when Timer 2 is used in the baud rate
generator mode.
INTERNAL CONTROL
(Note 1)
EXTERNAL CONTROL
(Note 2)
1998 Apr 24
11
Page 12
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
Serial Interface
The 89C538/536 has a standard 80C51 serial port. This serial port
can operate in 4 modes:
Mode 0: Serial data enters and exits through RxD. TxD outputs the
shift clock. 8 bits are transmitted/received (LSB first). The baud rate
is fixed at 1/12 the oscillator frequency.
Mode 1: 10 bits are transmitted (through TxD) or received (through
RxD): a start bit (0), 8 data bits (LSB first), and a stop bit (1). On
receive, the stop bit goes into RB8 in Special Function Register
SCON. The baud rate is variable.
Mode 2: 11 bits are transmitted (through TxD) or received (through
RxD): start bit (0), 8 data bits (LSB first), a programmable 9th data
bit, and a stop bit (1). On Transmit, the 9th data bit (TB8 in SCON)
can be assigned the value of 0 or 1, Or, for example, the parity bit
(P, in the PSW) could be moved into TB8. On receive, the 9th data
bit goes into RB8 in Special Function Register SCON, while the stop
bit is ignored. The baud rate is programmable to either 1/32 or 1/64
the oscillator frequency.
SCON Address = 98H
Bit Addressable
SM0SM1SM2RENTB8RB8TlRl
Bit:76543210
89C536/89C538
Mode 3: 11 bits are transmitted (through TxD) or received (through
jRxD): a start bit (0), 8 data bits (LSB first), a programmable 9th data
bit, and a stop bit (1). In fact, Mode 3 is the same as Mode 2 in all
respects except baud rate. The baud rate in Mode 3 is variable.
In all four modes, transmission is initiated by any instruction that
uses SBUF as a destination register. Reception is initiated in Mode 0
by the condition RI = 0 and REN = 1. Reception is initiated in the
other modes by the incoming start bit if REN = 1.
Serial Port Control Register
The serial port control and status register is the Special Function
Register SCON, shown in Figure 5. This register contains not only
the mode selection bits, but also the 9th data bit for transmit and
receive (TB8 and RB8), and the serial port interrupt bits (TI and RI).
Additional details of serial port operation may be found in the 80C51
Family Hardware Description found in the
8–Bit Microcontroller Data Handbook, IC20
Philips 80C51–Based
.
Reset Value = 0000 0000B
SymbolFunction
SM0Serial Port Mode Bit 0
SM1Serial Port Mode Bit 1
SM2Enables the Automatic Address Recognition feature in Modes 2 or 3. If SM2 = 1 then Rl will not be set unless the
RENEnables serial reception. Set by software to enable reception. Clear by software to disable reception.
TB8The 9th data bit that will be transmitted in Modes 2 and 3. Set or clear by software as desired.
RB8In modes 2 and 3, the 9th data bit that was received. In Mode 1, if SM2 = 0, RB8 is the stop bit that was received.
TlTransmit interrupt flag. Set by hardware at the end of the 8th bit time in Mode 0, or at the beginning of the stop bit in the
Rl Receive interrupt flag. Set by hardware at the end of the 8th bit time in Mode 0, or halfway through the stop bit time in
received 9th data bit (RB8) is 1, indicating an address, and the received byte is a Given or Broadcast Address.
In Mode 1, if SM2 = 1 then Rl will not be activated unless a valid stop bit was received, and the received byte is a
Given or Broadcast Address. In Mode 0, SM2 should be 0.
In Mode 0, RB8 is not used.
other modes, in any serial transmission. Must be cleared by software.
the other modes, in any serial reception (except see SM2). Must be cleared by software.
Figure 5.SCON: Serial Port Control Register
OSC
OSC
/12
/64 or f
OSC
/32
SU00867
1998 Apr 24
12
Page 13
Philips SemiconductorsPreliminary specification
INTERRUPT PRIORITY LEVEL
80C51 8-bit microcontroller family
16K/64K/512 FLASH
Interrupt Priority Structure
The 89C536/538 has a 6-source two-level interrupt structure (see
Table 7). There are 2 SFRs associated with the interrupts on the
89C536/538. They are the IE and IP. (See Figures 6 and 7.)
The function of the IPH SFR is simple and when combined with the
IP SFR determines the priority of each interrupt. The priority of each
interrupt is determined as shown in the following table:
An interrupt will be serviced as long as an interrupt of equal or
higher priority is not already being serviced. If an interrupt of equal
or higher level priority is being serviced, the new interrupt will wait
until it is finished before being serviced. If a lower priority level
interrupt is being serviced, it will be stopped and the new interrupt
serviced. When the new interrupt is finished, the lower priority level
interrupt that was stopped will be completed.
2
03H
01234567
ET0EX1ET1ESET2—EA
Enable Bit = 1 enables the interrupt.
Enable Bit = 0 disables it.
BITSYMBOLFUNCTION
IE.7EAGlobal disable bit. If EA = 0, all interrupts are disabled. If EA = 1, each interrupt can be individually
enabled or disabled by setting or clearing its enable bit.
IE.6—Not implemented.
IE.5ET2T imer 2 interrupt enable bit.
IE.4ESSerial Port interrupt enable bit.
IE.3ET1T imer 1 interrupt enable bit.
IE.2EX1External interrupt 1 enable bit.
IE.1ET0T imer 0 interrupt enable bit.
IE.0EX0External interrupt 0 enable bit.
Figure 6.IE Registers
PT0PX1PT1PSPT2——
Priority Bit = 1 assigns higher priority
Priority Bit = 0 assigns lower priority
80C51 8-bit microcontroller family
16K/64K/512 FLASH
Expanded Data RAM Addressing
The 89C536/538 has internal data memory that is mapped into four
separate segments: the lower 128 bytes of RAM, upper 128 bytes of
RAM, 128 byte s S pecial Func tion Regist er (SFR), and 256 bytes
expanded RAM (ERAM).
The four segments are:
1. The Lower 128 bytes of RAM (addresses 00H to 7FH) are
directly and indirectly addressable.
2. The Upper 128 bytes of RAM (addresses 80H to FFH) are
indirectly addressable only.
3. The Special Function Registers, SFRs, (addresses 80H to FFH)
are directly addressable only.
4. The 256-bytes expanded RAM (ERAM, 00H – FFH) are indirectly
accessed by move external instruction, MOVX.
The Lower 128 bytes can be accessed by either direct or indirect
addressing. The Upper 128 bytes can be accessed by indirect
addressing only . The Upper 128 bytes occupy the same address
space as the SFRs. That means they have the same address, but
are physically separate from SFR space.
When an instruction accesses an internal location above address
7FH, the CPU knows whether the access is to the upper 128 bytes
of data RAM or to SFR space by the addressing mode used in the
instruction. Instructions that use direct addressing access SFR
space. For example:
MOV 0A0H,#data
accesses the SFR at location 0A0H (which is P2). Instructions that
use indirect addressing access the Upper 128 bytes of data RAM.
89C536/89C538
For example:
MOV @R0,#data
where R0 contains 0A0H, accesses the data byte at address 0A0H,
rather than P2 (whose address is 0A0H).
The ERAM can be accessed by indirect addressing and MOVX
instructions. This part of memory is physically located on-chip,
logically occupies the first 256-bytes of external data memory.
The ERAM is indirectly addressed, using the MOVX instruction in
combination with any of the registers R0, R1 of the selected bank or
DPTR. An access to ERAM will not affect ports P0, P3.6 (WR#) and
P3.7 (RD#). P2 SFR is output during external addressing.
For example,
MOVX @R0,#data
where R0 contains 0A0H, accesses the ERAM at address 0A0H
rather than external memory. An access to external data memory
locations higher than FFH (i.e., 0100H to FFFFH) will be performed
with the MOVX DPTR instructions in the same way as in the
standard 80C51, so with P0 and P2 as data/address bus, and P3.6
and P3.7 as write and read timing signals. Refer to Figure 8.
External data memory cannot be accessed using the MOVX with R0
or R1. This will always access the ERAM.
The stack pointer (SP) may be located anywhere in the 256 bytes
RAM (lower and upper RAM) internal data memory. The stack may
not be located in the ERAM.
FF
ERAM
256 BYTES
00
FF
UPPER
128 BYTES
INTERNAL RAM
8080
LOWER
128 BYTES
INTERNAL RAM
00
FF
SPECIAL
FUNCTION
REGISTER
00
FFFF
0100
0000
EXTERNAL
DATA
MEMORY
SU00868
Figure 8.Internal and External Data Memory Address Space
1998 Apr 24
14
Page 15
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
ABSOLUTE MAXIMUM RATINGS
Operating temperature under bias0 to +70°C
Storage temperature range–65 to +150°C
Voltage on EA/VPP pin to V
Voltage on any other pin to V
Maximum IOL per I/O pin15mA
Power dissipation (based on package heat transfer limitations, not device power consumption)1W
NOTES:
1. Stresses 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 conditions other than those described in the AC and DC Electrical Characteristics section
of this specification is not implied.
2. This product includes circuitry specifically designed for the protection of its internal devices from the damaging effects of excessive static
charge. Nonetheless, it is suggested that conventional precautions be taken to avoid applying greater than the rated maxima.
3. Parameters are valid over operating temperature range unless otherwise specified. All voltages are with respect to V
noted.
SS
SS
1, 2, 3
PARAMETER
89C536/89C538
RATINGUNIT
0 to +13.0V
–0.5 to +6.5V
unless otherwise
SS
1998 Apr 24
15
Page 16
Philips SemiconductorsPreliminary specification
SYMBOL
PARAMETER
UNIT
80C51 8-bit microcontroller family
16K/64K/512 FLASH
DC ELECTRICAL CHARACTERISTICS
T
= 0°C to +70°C; 5V ±10%; VSS = 0V
amb
TEST
CONDITIONS
V
IL
V
IH
V
IH1
V
OL
V
OL1
V
OH
V
OH1
I
IL
I
TL
I
LI
I
CC
R
RST
NOTES:
1. Capacitive loading on ports 0 and 2 may cause spurious noise to be superimposed on the V
to external bus capacitance discharging into the port 0 and port 2 pins when these pins make 1-to-0 transitions during bus operations. In the
worst cases (capacitive loading > 100pF), the noise pulse on the ALE pin may exceed 0.8V . In such cases, it may be desirable to qualify
ALE with a Schmitt Trigger, or use an address latch with a Schmitt Trigger STROBE input. I
single output sinks more than 5mA and no more than two outputs exceed the test conditions.
2. Capacitive loading on ports 0 and 2 may cause the V
address bits are stabilizing.
3. Pins of ports 1, 2 and 3 source a transition current when they are being externally driven from 1 to 0. The transition current reaches its
maximum value when V
4. See Figures 17 through 20 for I
5. Load capacitance for port 0, ALE, and PSEN
6. Under steady state (non-transient) conditions, I
If I
test conditions.
7. ALE is tested to V
8. Pin capacitance is characterized but not tested. Pin capacitance is less than 25pF. Pin capacitance of ceramic package is less than 15pF
(except EA
Input low voltage4.5V < VCC < 5.5V–0.50.2VCC–0.1V
Input high voltage (ports 0, 1, 2, 3, EA)0.2VCC+0.9VCC+0.5V
Input high voltage, XTAL1, RST0.7V
Output low voltage, ports 1, 2, 3
Output low voltage, port 0, ALE, PSEN
Output high voltage, ports 1, 2, 3
Output high voltage (port 0 in external bus mode), ALE7,
See note 3
Input leakage current, port 00.45 < VIN < VCC – 0.3±10µA
Power supply current (see Figure 16):See note 4
Active modeVCC = 5.5V60mA
Idle modeFREQ = 24 MHz25mA
Power-down mode or clock stopped
(see Figure 20 for conditions)
T
= 0°C to 70°C100µA
amb
Internal reset pull-down resistor40225kΩ
s of ALE and ports 1 and 3. The noise is due
OL
can exceed these conditions provided that no
OL
on ALE and PSEN to momentarily fall below the VCC–0.7 specification when the
OH
is approximately 2V .
IN
Maximum I
Maximum I
Maximum total I
exceeds the test condition, VOL may exceed the related specification. Pins are not guaranteed to sink current greater than the listed
OL
per port pin:15mA
OL
per 8-bit port:26mA
OL
for all outputs:71mA
OL
, except when ALE is off then VOH is the voltage specification.
OH1
test conditions and Figure 15 for limits..
CC
= 100pF, load capacitance for all other outputs = 80pF.
must be externally limited as follows:
OL
is 25pF).
89C536/89C538
LIMITS
MINMAX
CC
VCC – 0.7V
VCC – 0.7V
VCC+0.5V
0.4V
0.4V
–650µA
1998 Apr 24
16
Page 17
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
AC ELECTRICAL CHARACTERISTICS
T
= 0°C to +70°C, VCC = 5V ±10%, VSS = 0V
amb
SYMBOLFIGUREPARAMETERMINMAXMINMAXUNIT
1/t
CLCL
t
LHLL
t
AVLL
t
LLAX
t
LLIV
t
LLPL
t
PLPH
t
PLIV
t
PXIX
t
PXIZ
t
AVIV
t
PLAZ
Data Memory
t
RLRH
t
WLWH
t
RLDV
t
RHDX
t
RHDZ
t
LLDV
t
AVDV
t
LLWL
t
AVWL
t
QVWX
t
WHQX
t
QVWH
t
RLAZ
t
WHLH
External Clock
t
CHCX
t
CLCX
t
CLCH
t
CHCL
Shift Register
t
XLXL
t
QVXH
t
XHQX
t
XHDX
t
XHDV
NOTES:
1. Parameters are valid over operating temperature range unless otherwise specified.
2. Load capacitance for port 0, ALE, and PSEN = 100pF, load capacitance for all other outputs = 80pF.
3. Interfacing the microcontroller to devices with float times up to 45ns is permitted. This limited bus contention will not cause damage to Port 0
drivers.
9Oscillator frequency
Speed versions : N (33MHz)
9ALE pulse width2t
9Address valid to ALE lowt
9Address hold after ALE lowt
9ALE low to valid instruction in4t
9ALE low to PSEN lowt
9PSEN pulse width3t
9PSEN low to valid instruction in3t
9Input instruction hold after PSEN00ns
9Input instruction float after PSENt
9Address to valid instruction in5t
9PSEN low to address float1010ns
10, 11RD pulse width6t
10, 11WR pulse width6t
10, 11RD low to valid data in5t
10, 11Data hold after RD00ns
10, 11Data float after RD2t
10, 11ALE low to valid data in8t
10, 11Address to valid data in9t
10, 11ALE low to RD or WR low3t
10, 11Address valid to WR low or RD low4t
10, 11Data valid to WR transitiont
10, 11Data hold after WRt
11Data valid to WR high7t
10, 11RD low to address float00ns
10, 11RD or WR high to ALE hight
13High time17t
13Low time17t
13Rise time5ns
13Fall time5ns
12Serial port clock cycle time12t
12Output data setup to clock rising edge10t
12Output data hold after clock rising edge2t
12Input data hold after clock rising edge00ns
12Clock rising edge to input data valid10t
1, 2, 3
VARIABLE CLOCK33MHz CLOCK
3.5333.533
–4021ns
CLCL
–255ns
CLCL
–255ns
CLCL
–255ns
CLCL
–4545ns
CLCL
CLCL
–10082ns
CLCL
–10082ns
CLCL
CLCL
CLCL
–503t
CLCL
–7545ns
CLCL
–300ns
CLCL
–255ns
CLCL
–13080ns
CLCL
–25t
CLCL
CLCL
–133167ns
CLCL
–8050ns
CLCL
CLCL
CLCL–tCLCX
CLCL–tCHCX
89C536/89C538
–6555ns
CLCL
–6030ns
CLCL
–255ns
–8070ns
CLCL
–9060ns
CLCL
–2832ns
CLCL
–15090ns
–165105ns
+5040140ns
CLCL
+25555ns
360ns
–133167ns
CLCL
MHz
ns
ns
1998 Apr 24
17
Page 18
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
EXPLANATION OF THE AC SYMBOLS
Each timing symbol has five characters. The first character is always
‘t’ (= time). The other characters, depending on their positions,
indicate the name of a signal or the logical status of that signal.
The designations are:
A – Address
C – Clock
D – Input data
H – Logic level high
I – Instruction (program memory contents)
L – Logic level low, or ALE
t
ALE
PSEN
PORT 0
LHLL
t
t
AVLL
LLPL
t
LLAX
A0–A7A0–A7
t
LLIV
t
PLIV
t
PLPH
t
PLAZ
P – PSEN
Q – Output data
R–RD
signal
t – Time
V – Valid
W– WR
signal
X – No longer a valid logic level
Z – Float
t
PXIX
INSTR IN
Examples: t
t
PXIZ
AVLL
t
LLPL
89C536/89C538
= Time for address valid to ALE low.
= Time for ALE low to PSEN low.
ALE
PSEN
PORT 0
PORT 2
RD
PORT 2
t
AVLL
t
LLAX
A0–A7
FROM RI OR DPL
t
AVWL
t
AVIV
A0–A15A8–A15
Figure 9.External Program Memory Read Cycle
t
WHLH
t
LLDV
t
LLWL
t
RLAZ
t
AVDV
P2.0–P2.7 OR A8–A15 FROM DPFA0–A15 FROM PCH
t
RLDV
t
RLRH
t
RHDZ
t
RHDX
DATA INA0–A7 FROM PCLINSTR IN
SU00006
1998 Apr 24
SU00025
Figure 10.External Data Memory Read Cycle
18
Page 19
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
ALE
PSEN
t
LLWL
WR
t
LLAX
A0–A7
FROM RI OR DPL
t
AVWL
t
QVWX
P2.0–P2.7 OR A8–A15 FROM DPFA0–A15 FROM PCH
PORT 0
PORT 2
t
AVLL
89C536/89C538
t
WHLH
t
WLWH
t
WHQX
t
QVWH
DATA OUTA0–A7 FROM PCLINSTR IN
INSTRUCTION
ALE
CLOCK
OUTPUT DATA
WRITE TO SBUF
INPUT DATA
CLEAR RI
SU00026
Figure 11.External Data Memory Write Cycle
012345678
t
XLXL
t
t
QVXH
t
XHDV
VALIDVALIDVALIDVALIDVALIDVALIDVALIDVALID
XHQX
12304567
t
XHDX
SET TI
SET RI
SU00027
Figure 12.Shift Register Mode Timing
VCC–0.5
0.45V
0.7V
CC
0.2VCC–0.1
t
CHCL
t
CLCX
t
CLCL
t
CHCX
t
CLCH
SU00009
1998 Apr 24
Figure 13.External Clock Drive
19
Page 20
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
VCC–0.5
0.45V
NOTE:
AC inputs during testing are driven at VCC –0.5 for a logic ‘1’ and 0.45V for a logic ‘0’.
Timing measurements are made at VIH min for a logic ‘1’ and VIL max for a logic ‘0’.
Figure 14.AC Testing Input/Output
0.2V
0.2V
CC
CC
+0.9
–0.1
(mA)
CC
I
90.00
80.00
70.00
60.00
50.00
40.00
30.00
20.00
10.00
0.00
SU00717
481216
0
FREQ AT XTAL1 (MHz)
V
LOAD
NOTE:
For timing purposes, a port is no longer floating when a 100mV change from
load voltage occurs, and begins to float when a 100mV change from the loaded
level occurs. IOH/IOL ≥±20mA.
V
OH/VOL
MAX ACTIVE MODE
TYP ACTIVE MODE
MAX IDLE MODE
TYP IDLE MODE
2024283236
V
+0.1V
LOAD
V
–0.1V
LOAD
Figure 15.Float Waveform
SU00886
89C536/89C538
–0.1V
TIMING
REFERENCE
POINTS
V
OH
V
OL
SU00718
+0.1V
Figure 16.ICC vs. FREQ Valid only within frequency specifications of the device under test
1998 Apr 24
20
Page 21
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
V
CC
I
CC
V
CC
SU00719
V
CC
0.7V
0.2VCC–0.1
t
CHCL
V
CC
RST
(NC)
CLOCK SIGNAL
XTAL2
XTAL1
V
SS
Figure 17.ICC Test Condition, Active Mode
All other pins are disconnected
VCC–0.5
0.45V
P0
EA
CC
t
CLCX
89C536/89C538
RST
(NC)
CLOCK SIGNAL
Figure 18.ICC Test Condition, Idle Mode
All other pins are disconnected
t
CHCX
t
CLCH
t
CLCL
SU00009
XTAL2
XTAL1
V
SS
V
CC
P0
EA
V
I
CC
V
SU00720
CC
CC
Figure 19.Clock Signal Waveform for ICC Tests in Active and Idle Modes
t
(NC)
CLCH
RST
XTAL2
XTAL1
V
SS
= t
CHCL
= 5ns
V
P0
EA
CC
V
I
CC
V
SU00016
CC
CC
Figure 20.ICC Test Condition, Power Down Mode
All other pins are disconnected. V
= 2V to 5.5V
CC
1998 Apr 24
21
Page 22
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
FLASH EPROM PROGRAM MEMORY
FEATURES
•16K (89C536) or 64K (89C538) or electrically erasable internal
program.
•Up to 64 Kilobyte external program memory if the internal program
The 89C536/538 FLASH EPROM memory augments EPROM
functionality with In–circuit electrical erasure and programming. The
89C536/538 uses a command register to manage this functionality.
The FLASH EPROM reliably stores memory contents even after 100
erase and program cycles. The cell is designed to optimize the
erase and programming mechanisms. In addition, the combination
of advanced tunnel oxide processing and low internal electric fields
for erase and programming operations produces reliable cycling.
The 89C536/538 uses a 12.0V 5%V
Program/Erase algorithms.
Automatic Programming
The 89C536/538 is byte programmable using the Automatic
Programming algorithm. The Automatic Programming algorithm
does not require the system to time out or verify the data
programmed. The typical room temperature chip programming time
of the 89C536/538 is less than 5 seconds.
= 0).
supply to perform the Auto
PP
89C536/89C538
Automatic Chip Erase
The device may be erased using the automatic Erase algorithm. The
automatic Erase algorithm automatically programs the entire array
prior to electrical erase. The timing and verification of electrical
erase are controlled internal to the device.
Automatic Programming Algorithm
The 89C536/538 automatic Programming algorithm requires the
user to only write a program set–up command and a program
command (program data and address). The device automatically
times the programming pulse width, provides the program verify, and
counts the number of sequences. A status bit similar to DATA
polling and a status bit toggling between consecutive read cycles,
provide feedback to the user as to the status of the programming
operation.
AUTOMATIC ERASE ALGORITHM
The 89C536/538 Automatic Erase algorithm requires the user to
only write an erase set–up command and erase command. The
device will automatically pre–program and verify the entire array.
Then the device automatically times the erase pulse width, provides
the erase verify, and counts the number of sequences. A status bit
similar to DATA
consecutive read cycles, provide feedback to the user as to the
status of the erase operation.
Commands are written to the command register. Register contents
serve as inputs to an internal state–machine which controls the
erase and programming circuitry. During write cycles, the command
register internally latches address and data needed for the
programming and erase operations. For system design
simplification, the 89C536/538 is designed to support either WE
controlled writes. During a system write cycle, addresses are
CE
latched on the falling edge of WE
is latched on the rising edge of WE
simplify the following discussion, the WE
cycle control pin through the rest of this text. All setup and hold
times are with respect to the WE signal.
polling and a status bit toggling between
or
or CE, whichever occurs last. Data
or CE, whichever occurs first. To
pin is used as the write
1998 Apr 24
A0–A7
CE
4–6 MHz
+5V
VDD
P1
1
RST
P3.3
XTAL2
XTAL1
VSS
89C536/538
P2.6, P3.7, P3.1, P3.0
P0
EA
ALE/WE
PSEN
P2.7
P3.5
P2.0–P2.5
P3.4
PGM COMMAND/DATA
V
PP
LOW PULSE
0
OE
A15
A8–A13
A14
0000b
SU00876
Figure 21.Erase/Programming/V erification
22
Page 23
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
Table 8. Pin Description
PIN NAMESYMBOLFUNCTION
P1.0–P1.7
P2.0–P2.5, P3.4, P3.5
P0.0–P0.7Q0–Q7Data Input/Output
P3.3CEChip Enable Input
P2.7OEOutput Enable Input
ALE/WEWEW rite Enable Pin
EAV
P2.6, P3.7, P3.1, P3.0FTEST3–FTEST0Flash T est Mode Selection
V
CC
GNDGNDGround Pin
Table 9. Command Definitions
COMMANDBUS CYCLES
Setup auto erase/auto erase (chip)2WriteX30HWrite X30H
Setup auto program/program2Write X40HWritePAPD
Reset2WriteXFFHWriteXFFH
NOTES:
PA = Address of memory location to be programmed
PD = Data to be programmed at location
A0–A7
A8–A13, A14–A15
PP
V
CC
Input Low Order Address Bits
Input High Order Address Bits
Program Supply Voltage
Power Supply Voltage (+5V)
FIRST BUS CYCLESECOND BUS CYCLE
OPERATION ADDRESS DATAOPERATION ADDRESS DATA
89C536/89C538
Command Definitions
When low voltage is applied to the VPP pin, the contents of the
command register default to 00H. Placing high voltage on the V
PP
pin enables read/write operations. Device operations are selected
by writing specific data patterns into the command register. Table 9
defines these 89C536/538 register commands. Table 10 defines the
bus operations of 89C536/538.
Table 10.
OPERATIONVPP(1)CEOEWED00–D07
READ/WRITE
Read(2)V
Standby(4)V
WriteV
PPH
PPH
PPH
NOTES:
1. V
2. Read operation with VPP = V
3. With V
4. Refer to Table 38 for valid Data–In during a write operation.
5. X can be V
is the programming voltage specified for the device.
PPH
at high voltage, the standby current equals ICC+IPP (standby).
PP
or VIH.
IL
may access array data (if write command is preceded) or silicon ID codes.
PPH
V
IL
V
IH
V
IL
V
IL
VI
H
DATA OUT(3)
XXTri–State
V
IH
V
IL
Data In(5)
1998 Apr 24
23
Page 24
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
Set-Up Automatic Chip Erase/Erase Commands
The automatic chip erase does not require the device to be entirely
pre–programmed prior to executing the Automatic set–up erase
command and automatic chip erase command. Upon executing the
Automatic chip erase command, the device automatically will
program and verify the entire memory for an all–zero data pattern.
When the device is automatically verified to contain an all–zero
pattern, a self–timed chip erase and verify begins. The erase and
verify operations are complete when the data on DQ7 is”1” at which
time the device returns to the standby mode. The system is not
required to provide any control or timing during these operations.
When using the Automatic Chip Erase algorithm, note that the erase
automatically terminates when adequate erase margin has been
achieved for the memory array (no erase verify command is
required). The margin voltages are internally generated in the same
manner as when the standard erase verify command is used.
The Automatic set–up erase command is a command only operation
that stages the device for automatic electrical erasure of all bytes in
the array. Automatic set–up erase is performed by writing 30H to the
command register.
To command automatic chip erase, the command 30H must be
written again to the command register. The automatic chip erase
begins on the rising edge of the WE and terminates when the data
on DQ7 is ”1 “ and the data on DQ6 stops toggling for two
consecutive read cycles, at which time the device returns to the
standby mode.
Set–Up Automatic Program/Program Commands
The Automatic Set–up Program is a command–only operation that
stages the devices for automatic programming. Automatic Set–up
Program is performed by writing 40H to the command register.
Once the Automatic Set–up Program operation is performed, the
next WE pulse causes a transition to an active programming
operation. Addresses are internally latched on the falling edge of the
WE pulse. Data is internally latched on the rising edge of the WE
pulse. The rising edge of WE also begins the programming
operation. The system is not required to provide further controls or
timings. The device will automatically provide an adequate internally
generated program pulse and verify margin. The automatic
programming operation is completed when the data read on DQ6
stops toggling for two consecutive read cycles and the data on DQ7
and DQ6 are equivalent to data written to these two bits at which
time the device returns to the Read mode (no program verify
command is required; but data can be read out if OE is active low).
Reset Command
A reset command is provided as a means to safely abort the erase–
or program–command sequences. Following either set–up
command (erase or program) with two consecutive writes of FFH
89C536/89C538
will safely abort the operation. Memory contents will not be altered.
Should program–fail or erase–fail happen, two consecutive writes of
FFH will reset the device to abort the operation. A valid command
must then be written to place the device in the desired state.
Write Operation Status
Toggle Bit–DQ6
The 89C536/538 features a “Toggle Bit” as a method to indicate to
the host system that the Auto Program/Erase algorithms are either
in progress or completed.
While the Automatic Program or Erase algorithm is in progress,
successive attempts to read data from the device will result in DQ6
toggling between one and zero. Once the Automatic Program or
Erase algorithm is completed, DQ6 will stop toggling and valid data
will be read. The toggle bit is valid after the rising edge of the
second WE pulse of the two write pulse sequences.
Data Polling–D07
The 89C536/538 also features DATA Polling as a method to indicate
to the host system that the Automatic Program or Erase algorithms
are either in progress or completed.
While the Automatic Programming algorithm is in operation an
attempt to read the device will produce the complement data of the
data last written to DQ7. Upon completion of the Automatic Program
algorithm an attempt to read the device will produce the true data
last written to DQ7. The Data Polling feature is valid after the rising
edge of the second WE pulse of the two write pulse sequences.
While the Automatic Erase algorithm is in operation, DQ7 will read
“0” until the erase operation is completed. Upon completion of the
erase operation, the data on DQ7 will read “1”. The DATA Polling
feature is valid after the rising edge of the second WE pulse of two
writes pulse sequences.
The DATA Polling feature is active during Automatic Program/Erase
algorithms.
Write Operation
The data to be programmed into Flash should be inverted when
programming. In other words to program the value ‘00’, ‘FF’ should
be applied to port P0.
System Considerations
During the switch between active and standby conditions, transient
current peaks are produced on the rising and falling edges of Chip
Enable. The magnitude of these transient current peaks is
dependent on the output capacitance loading of the device. At a
minimum, a 0.1µF ceramic capacitor (high frequency, low inherent
inductance) should be used on each device between V
and between V
and GND to minimize transient effects.
PP
and GND,
CC
SYMBOL
C
C
OUT
1998 Apr 24
PARAMETERMINTYPMAXUNITCONDITION
IN
V
V
PPH
PPH
24
14pFVI
16pFV
N
OUT
= 0V
= 0V
Page 25
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
Input Leakage CurrentV
Output Leakage Current V
Standby VCC Current
Input Voltage–0.5 (Note 5)0.2VPP – 0.3V
Output Voltage LowIOL=2.1mA0.45V
Output Voltage HighIOH=400uA2.4V
NOTES:
1. V
must be applied before VPP and removed after VPP.
CC
must not exceed 14V including overshoot.
2. V
PP
3. An influence may be had upon device reliability if the device is installed or removed while V
4. Do not alter V
5. VIL min. = –0.5V for pulse width ≤ 20ns.
6. If V
7. All currents are in RMS unless otherwise noted. (Sampled, not 100% tested.).
is over the specified maximum value, programming operation cannot be guaranteed.
IH
from VIL to 12V or 12V to VIL when CE=V
PP
= 12.0V ± 5%
PP
= GND to V
IN
= GND to V
OUT
CE = VI
CC
CC
H
CE = VCC ± 0.3 V1100µA
= 0 mA, f=1 MHz30mA
OUT
I
= 0 mA, F=11MHz50mA
OUT
2.4VCC+0.3VV
=12V.
IL
PP
89C536/89C538
10µA
10µA
1mA
(Note 6)
1998 Apr 24
25
Page 26
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
AC CHARACTERISTICS
T
= 0°C to 70°C, VCC = 5V 10%, VPP = 12V 5%
amb
SYMBOL
τ
VPS
τ
OES
τ
CWC
τ
CEP
τ
EPH1
τ
CEPH2
τ
AS
τ
AH1
τ
DS
τ
DH
τ
CESP
τ
CES
τ
CESC
τ
VPH
τ
DF
τ
DPA
τ
AETC
τ
AVT
NOTES:
1. CE
and OE must be fixed high during VPP transition from 5V to 12V or from 12V to 5V.
is defined as the time at which the output achieves the open circuit condition and data is no longer driven.
2. τ
DF
PARAMETERCONDITIONMINMAXUNIT
VPP setup time100ns
OE setup time100ns
Command programming cycles150ns
WE programming pulse width60ns
WE programming pulse width High20ns
WE programming pulse width High100ns
Address setup time0ns
Address hold time for DATA Polling0ns
DATA setup time50ns
DATA hold time10ns
CE setup time before DATA polling/toggle bit100ns
CE setup time0ns
CE setup time before command write100ns
VPP hold time100ns
Output disable time (Note 2)35ns
DATA polling/toggle bit access time150ns
Total erase time in auto chip erase5(TYP)s
Total programming time in auto verify15300
89C536/89C538
s
1998 Apr 24
26
Page 27
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
Timing Waveform
Automatic Programming
One byte of data is programmed. Verifying in fast algorithm and
additional programming by external control are not required because
these operations are executed automatically by an internal control
circuit. Programming completion can be verified by DATA
toggle bit checking after automatic verify starts. Device outputs
DATA
during programming and DATA after programming on Q7. Q0
to Q5(Q6 is for toggle bit; see toggle bit, DATA
polling, timing
waveform) are in high impedance.
SETUP AUTO PROGRAM/
PROGRAM COMMAND
V
5V
CC
12V
V
PP
OV
A0–A15
WE
CE
OE
Q7
τ
QES
τ
VPS
τcwc
τ
CEP
τ
DS
COMMAND IN
τ
AS
τ
CEPH1
τ
DH
polling and
τ
CEP
τ
DS
DATA IN
AUTO PROGRAM & DATA
ADDRESS
VALID
τ
AVT
τ
τ
CESP
CES
τ
DH
τ
DPA
POLLING
DATA
89C536/89C538
τ
VPH
τ
AH1
τ
CESC
t
DF
DATA
Q0–Q5
POLLING
COMMAND IN
COMMAD #40H
DATA IN
DATA
Figure 22.Automatic Programming Timing Waveform
DATA
SU00877
1998 Apr 24
27
Page 28
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
UTOMATIC CHIP ERASE
A
All data in the FLASH memory is erased. External erase verification
is not required. Erasure completion can be verified by DATA polling
and toggle bit checking after automatic erase starts. Device outputs
0 during erasure and 1 after erasure on Q7, Q0 to Q5 (Q6 is for
toggle bit; see toggle bit, DATA polling, timing waveform) are in high
impedance.
SETUP AUTO CHIP ERASE/
ERASE COMMAND
V
5V
CC
12V
V
PP
OV
A0–A15
WE
CE
τ
VPS
τ
CWC
AUTO CHIP ERASE & DATA
τ
AETC
POLLING
89C536/89C538
τ
VPH
RESET
Q0–Q5
V
V
A0–A15
τ
τ
CESP
τCES
τ
DH
τ
DPA
DATA POLLING
τ
CEP
τ
τ
DS
COMMAND IN
COMMAND IN
CEPH
τ
τ
QES
OE
Q7
τ
CEP
1
τ
DH
DS
COMMAND IN
COMMAND IN
CESC
τ
DF
SU00878
Figure 23.Automatic Chip Erase Timing Waveform
CC
5V
12V
PP
0V
WE
CE
τ
VPS
t
CWC
Q0–Q7
1998 Apr 24
OE
τ
QES
τ
CEP
τ
DS
COMMAND IN
FFH
τ
CEPH1
τ
DH
τ
CEP
τ
DS
COMMAND IN
FFH
τ
DH
Figure 24. Reset Timing Waveform
28
SU00879
Page 29
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
Toggle Bit, Data Polling
Toggle bit appears in Q6, when program/erase is operating. DATA
polling appears in Q7 during programming or erase.
HIGH
WE
12V
V
PP
CE
OE
OE
DURING P/E
O7
DURING P
O7
DURING P
O0–O5
HIGH–Z
HIGH–Z
HIGH–Z
HIGH–Z
DATA
DATA
POLLING
TOGGLE BIT
89C536/89C538
DATA
DATADATADATA
PROGRAM/ERASE COMPLETE
POLLING
DATA
DATA
Figure 25.Toggle Bit, Data Polling Timing Waveform
SU00880
1998 Apr 24
29
Page 30
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
80C51 8-bit microcontroller family
16K/64K/512 FLASH
QFP44: plastic quad flat package; 44 leads (lead length 1.3 mm); body 10 x 10 x 1.75 mmSOT307-2
89C536/89C538
1998 Apr 24
31
Page 32
Philips SemiconductorsPreliminary specification
80C51 8-bit microcontroller family
16K/64K/512 FLASH
Data sheet status
Data sheet
status
Objective
specification
Preliminary
specification
Product
specification
Product
status
Development
Qualification
Production
Definition
This data sheet contains the design target or goal specifications for product development.
Specification may change in any manner without notice.
This data sheet contains preliminary data, and supplementary data will be published at a later date.
Philips Semiconductors reserves the right to make chages at any time without notice in order to
improve design and supply the best possible product.
This data sheet contains final specifications. Philips Semiconductors reserves the right to make
changes at any time without notice in order to improve design and supply the best possible product.
[1]
89C536/89C538
[1] Please consult the most recently issued datasheet before initiating or completing a design.
Definitions
Short-form specification — The data in a short-form specification is extracted from a full data sheet with the same type number and title. For
detailed information see the relevant data sheet or data handbook.
Limiting values definition — Limiting values given are in accordance with the Absolute Maximum Rating System (IEC 134). Stress above one
or more of the limiting values may cause permanent damage to the device. These are stress ratings only and operation of the device at these or
at any other conditions above those given in the Characteristics sections of the specification is not implied. Exposure to limiting values for extended
periods may affect device reliability.
Application information — Applications that are described herein for any of these products are for illustrative purposes only. Philips
Semiconductors make no representation or warranty that such applications will be suitable for the specified use without further testing or
modification.
Disclaimers
Life support — These products are not designed for use in life support appliances, devices or systems where malfunction of these products can
reasonably be expected to result in personal injury . Philips Semiconductors customers using or selling these products for use in such applications
do so at their own risk and agree to fully indemnify Philips Semiconductors for any damages resulting from such application.
Right to make changes — Philips Semiconductors reserves the right to make changes, without notice, in the products, including circuits, standard
cells, and/or software, described or contained herein in order to improve design and/or performance. Philips Semiconductors assumes no
responsibility or liability for the use of any of these products, conveys no license or title under any patent, copyright, or mask work right to these
products, and makes no representations or warranties that these products are free from patent, copyright, or mask work right infringement, unless
otherwise specified.
Philips Semiconductors
811 East Arques Avenue
P.O. Box 3409
Sunnyvale, California 94088–3409
Telephone 800-234-7381
Copyright Philips Electronics North America Corporation 1998
All rights reserved. Printed in U.S.A.
Date of release: 05-98
Document order number:9397 750 03876
1998 Apr 24
32
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.