19
3053C–MICRO–6/08
AT89LS51
Figure 18-2. Flash Memory Serial Downloading
19. Flash Programming and Verification Waveforms – Serial Mode
Figure 19-1. Serial Programming Waveforms
P1.7/SCK
DATA OUTPUT
INSTRUCTION
INPUT
CLOCK IN
3 - 16 MHz
P1.5/MOSI
V
IH
XTAL2
RSTXTAL1
GND
V
CC
AT89LS51
P1.6/MISO
V
CC
7654 32 10
20
3053C–MICRO–6/08
AT89LS51
Note: 1. B1 = 0, B2 = 0 Mode 1, no lock protection
B1 = 0, B2 = 1 Mode 2, lock bit 1 activated
B1 = 1, B2 = 0
Mode 3, lock bit 2 activated
B1 = 1, B1 = 1 Mode 4, lock bit 3 activated
After Reset signal is high, SCK should be low for at least 64 system clocks before it goes high to clock in the enable data
bytes. No pulsing of Reset signal is necessary. SCK should be no faster than 1/16 of the system clock at XTAL1.
For Page Read/Write, the data always starts from byte 0 to 255. After the command byte and upper address byte are
latched, each byte thereafter is treated as data until all 256 bytes are shifted in/out. Then the next instruction will be ready
to be decoded.
Table 19-1. Serial Programming Instruction Set
Instruction
Instruction Format
OperationByte 1 Byte 2 Byte 3 Byte 4
Programming Enable 1010 1100 0101 0011 xxxx xxxx
xxxx xxxx
0110 1001
(Output on MISO)
Enable Serial Programming
while RST is high
Chip Erase 1010 1100 100x xxxx xxxx xxxx xxxx xxxx
Chip Erase Flash memory
array
Read Program Memory
(Byte Mode)
0010 0000
xxxx Read data from Program
memory in the byte mode
Write Program Memory
(Byte Mode)
0100 0000
xxxx Write data to Program
memory in the byte mode
Write Lock Bits
(1)
1010 1100 1110 00 xxxx xxxx xxxx xxxx Write Lock bits (see Note 1)
Read Lock Bits 0010 0100 xxxx xxxx xxxx xxxx xxx xx
Read back current status of
the lock bits (a programmed
lock bit reads back as a “1”)
Read Signature Bytes 0010 1000
xxxx xxx xxx0
Signature Byte Read Signature Byte
Read Program Memory
(Page Mode)
0011 0000
xxxx
Byte 0
Byte 1...
Byte 255
Read data from Program
memory in the Page Mode
(256 bytes)
Write Program Memory
(Page Mode)
0101 0000 xxxx Byte 0
Byte 1...
Byte 255
Write data to Program
memory in the Page Mode
(256 bytes)
}
Each of the lock bit modes needs to be activated sequentially
before Mode 4 can be executed.
D7
D6
D5
D4
D3
D2
D1
D0
A7
A6
A5
A4
A3
A2
A1
A0
A11
A10
A9
A8
B2
B1
A11
A10
A9
A8
A7
A6
A5
A4
A3
A2
A1
A0
D7
D6
D5
D4
D3
D2
D1
D0
LB3
LB2
LB1
A11
A10
A9
A8
A11
A10
A9
A8
A7
A11
A10
A9
A8
21
3053C–MICRO–6/08
AT89LS51
20. Serial Programming Characteristics
Figure 20-1. Serial Programming Timing
MOSI
MISO
SCK
t
OVSH
t
SHSL
t
SLSH
t
SHOX
t
SLIV
Table 20-1. Serial Programming Characteristics, T
A
= -40 C to 85 C, V
CC
= 2.7V - 4.0V (Unless Otherwise Noted)
Symbol Parameter Min Typ Max Units
1/t
CLCL
Oscillator Frequency 3 16 MHz
t
CLCL
Oscillator Period 62.5 ns
t
SHSL
SCK Pulse Width High 8 t
CLCL
ns
t
SLSH
SCK Pulse Width Low 8 t
CLCL
ns
t
OVSH
MOSI Setup to SCK High t
CLCL
ns
t
SHOX
MOSI Hold after SCK High 2 t
CLCL
ns
t
SLIV
SCK Low to MISO Valid 10 16 32 ns
t
ERASE
Chip Erase Instruction Cycle Time 500 ms
t
SWC
Serial Byte Write Cycle Time 64 t
CLCL
+ 400 µs
21. Absolute Maximum Ratings*
Operating Temperature.................................. -55°C to +125°C
*NOTICE: Stresses beyond those listed under “Absolute
Maximum Ratings” may cause permanent dam-
age to the device. This is a stress rating only and
functional operation of the device at these or any
other conditions beyond those indicated in the
operational sections of this specification is not
implied. Exposure to absolute maximum rating
conditions for extended periods may affect
device reliability.
Storage Temperature ..................................... -65°C to +150°C
Voltage on Any Pin
with Respect to Ground .....................................-1.0V to +7.0V
Maximum Operating Voltage ............................................ 6.6V
DC Output Current...................................................... 15.0 mA

AT89LS51-16PI

Mfr. #:
Manufacturer:
Microchip Technology / Atmel
Description:
8-bit Microcontrollers - MCU LOW VOLTAGE 4K ISP FLASH - 16MHz
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union