Electronic Components Datasheet Search
  English  ▼

X  

AT89 Datasheet(PDF) 25 Page - ATMEL Corporation

Part # AT89
Description  8-Bit Microcontroller with 8K Bytes Flash
PDF  41 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AT89 Datasheet(HTML) 25 Page - ATMEL Corporation

Back Button AT89 Datasheet HTML 21Page - ATMEL Corporation AT89 Datasheet HTML 22Page - ATMEL Corporation AT89 Datasheet HTML 23Page - ATMEL Corporation AT89 Datasheet HTML 24Page - ATMEL Corporation AT89 Datasheet HTML 25Page - ATMEL Corporation AT89 Datasheet HTML 26Page - ATMEL Corporation AT89 Datasheet HTML 27Page - ATMEL Corporation AT89 Datasheet HTML 28Page - ATMEL Corporation AT89 Datasheet HTML 29Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 25 / 41 page
background image
25
AT89S8252
0401F–MICRO–11/03
Serial Downloading
Both the Code and Data memory arrays can be programmed using the serial SPI bus
while RST is pulled to V
CC. The serial interface consists of pins SCK, MOSI (input) and
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:
0000H to 1FFFH for Code memory and 000H to 7FFH for Data memory.
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.
Serial Programming
Algorithm
To program and verify the AT89S8252 in the serial programming mode, the following
sequence is recommended:
1.
Power-up sequence:
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.
2.
Enable serial programming by sending the Programming Enable serial instruction to
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.
3.
The Code or Data array is programmed one byte at a time by supplying the address
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.
4.
Any memory location can be verified by using the Read instruction which returns the
content at the selected address at serial output MISO/P1.6.
5.
At the end of a programming session, RST can be set low to commence normal
operation.
6.
Power-off sequence (if needed):
Set XTAL1 to “L” (if a crystal is not used).
Set RST to “L”.
Turn VCC power off.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com