AT89S8252-16JA ATMEL [ATMEL Corporation], AT89S8252-16JA Datasheet - Page 25

no-image

AT89S8252-16JA

Manufacturer Part Number
AT89S8252-16JA
Description
8-Bit Microcontroller with 8K Bytes Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89S8252-16JA
Manufacturer:
ATMEL
Quantity:
482
Serial Downloading
Serial Programming
Algorithm
0401F–MICRO–11/03
Both the Code and Data memory arrays can be programmed using the serial SPI bus
while RST is pulled to V
MISO (output). After RST is set high, the Programming Enable instruction needs to be
executed first before program/erase operations can be executed.
An auto-erase cycle is built into the self-timed programming operation (in the serial
mode ONLY) and there is no need to first execute the Chip Erase instruction unless any
of the lock bits have been programmed. The Chip Erase operation turns the content of
every memory location in both the Code and Data arrays into FFH.
The Code and Data memory arrays have separate address spaces:
Either an external system clock is supplied at pin XTAL1 or a crystal needs to be con-
nected across pins XTAL1 and XTAL2. The maximum serial clock (SCK) frequency
should be less than 1/40 of the crystal frequency. With a 24 MHz oscillator clock, the
maximum SCK frequency is 600 kHz.
To program and verify the AT89S8252 in the serial programming mode, the following
sequence is recommended:
1. Power-up sequence:
2. Enable serial programming by sending the Programming Enable serial instruction to
3. The Code or Data array is programmed one byte at a time by supplying the address
4. Any memory location can be verified by using the Read instruction which returns the
5. At the end of a programming session, RST can be set low to commence normal
6. Power-off sequence (if needed):
0000H to 1FFFH for Code memory and 000H to 7FFH for Data memory.
Apply power between VCC and GND pins.
Set RST pin to “H”.
If a crystal is not connected across pins XTAL1 and XTAL2, apply a 3 MHz to
24 MHz clock to XTAL1 pin and wait for at least 10 milliseconds.
Set XTAL1 to “L” (if a crystal is not used).
Set RST to “L”.
Turn V
pin MOSI/P1.5. The frequency of the shift clock supplied at pin SCK/P1.7 needs to
be less than the CPU clock at XTAL1 divided by 40.
and data together with the appropriate Write instruction. The selected memory loca-
tion is first automatically erased before new data is written. The write cycle is self-
timed and typically takes less than 2.5 ms at 5V.
content at the selected address at serial output MISO/P1.6.
operation.
CC
power off.
CC
. The serial interface consists of pins SCK, MOSI (input) and
AT89S8252
25

Related parts for AT89S8252-16JA