AT89S8252-24PI Atmel, AT89S8252-24PI Datasheet - Page 23

MCU W/SPI 8KB FLSH 2K EEP 40-DIP

AT89S8252-24PI

Manufacturer Part Number
AT89S8252-24PI
Description
MCU W/SPI 8KB FLSH 2K EEP 40-DIP
Manufacturer
Atmel
Series
89Sr
Datasheet

Specifications of AT89S8252-24PI

Core Processor
8051
Core Size
8-Bit
Speed
24MHz
Connectivity
SPI, UART/USART
Peripherals
POR, WDT
Number Of I /o
32
Program Memory Size
8KB (8K x 8)
Program Memory Type
FLASH
Eeprom Size
2K x 8
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
40-DIP (0.600", 15.24mm)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Data Converters
-
Other names
AT89S825224PI

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89S8252-24PI
Manufacturer:
ATM
Quantity:
4 000
Part Number:
AT89S8252-24PI
Manufacturer:
ATM
Quantity:
3 500
Part Number:
AT89S8252-24PI
Manufacturer:
ATMEL
Quantity:
2 360
Part Number:
AT89S8252-24PI
Manufacturer:
NS
Quantity:
1 000
Part Number:
AT89S8252-24PI
Manufacturer:
ATMEL
Quantity:
482
Part Number:
AT89S8252-24PI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Programming the
Flash and EEPROM
0401G–MICRO–3/06
Atmel’s AT89S8252 Flash Microcontroller offers 8K bytes of in-system reprogrammable
Flash Code memory and 2K bytes of EEPROM Data memory.
The AT89S8252 is normally shipped with the on-chip Flash Code and EEPROM Data
memory arrays in the erased state (i.e. contents = FFH) and ready to be programmed.
This device supports a High-voltage (12-V V
voltage (5-V V
convenient way to reprogram the AT89S8252 inside the user’s system. The parallel pro-
gramming mode is compatible with conventional third party Flash or EPROM
programmers.
The Code and Data memory arrays are mapped via separate address spaces in the
serial programming mode. In the parallel programming mode, the two arrays occupy
one contiguous address space: 0000H to 1FFFH for the Code array and 2000H to
27FFH for the Data array.
The Code and Data memory arrays on the AT89S8252 are programmed byte-by-byte in
either programming mode. An auto-erase cycle is provided with the self-timed program-
ming operation in the serial programming mode. There is no need to perform the Chip
Erase operation to reprogram any memory location in the serial programming mode
unless any of the lock bits have been programmed.
In the parallel programming mode, there is no auto-erase cycle. To reprogram any non-
blank byte, the user needs to use the Chip Erase operation first to erase both arrays.
Parallel Programming Algorithm: To program and verify the AT89S8252 in the paral-
lel programming mode, the following sequence is recommended:
1. Power-up sequence:
2. Set PSEN pin to “L”
3. Apply the appropriate combination of “H” or “L” logic levels to pins P2.6, P2.7, P3.6,
4. Apply the desired byte address to pins P1.0 to P1.7 and P2.0 to P2.5.
5. Raise EA/V
6. Pulse ALE/PROG once to program a byte in the Code memory array, the Data mem-
7. To verify the byte just programmed, bring pin P2.7 to “L” and read the programmed
8. Repeat steps 3 through 7 changing the address and data for the entire 2K or 8K
9. Power-off sequence:
Apply power between V
Set RST pin to “H”.
Apply a 3 MHz to 24 MHz clock to XTAL1 pin and wait for at least 10 milliseconds.
ALE pin to “H”
EA pin to “H” and all other pins to “H”.
P3.7 to select one of the programming operations shown in the Flash Programming
Modes table.
Apply data to pins P0.0 to P0.7 for Write Code operation.
ory array or the lock bits. The byte-write cycle is self-timed and typically takes
1.5 ms.
data at pins P0.0 to P0.7.
bytes array or until the end of the object file is reached.
Set XTAL1 to “L”.
Set RST and EA pins to “L”.
Turn V
CC
power off.
CC
PP
) Serial programming mode. The serial programming mode provides a
to 12V to enable Flash programming, erase or verification.
CC
and GND pins.
PP
) Parallel programming mode and a Low-
AT89S8252
23

Related parts for AT89S8252-24PI