Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

AT89S52 Datasheet(PDF) 22 Page - ATMEL Corporation

Part # AT89S52
Description  8-bit Microcontroller with 8K Bytes In-System Programmable Flash
Download  38 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AT89S52 Datasheet(HTML) 22 Page - ATMEL Corporation

Back Button AT89S52_08 Datasheet HTML 18Page - ATMEL Corporation AT89S52_08 Datasheet HTML 19Page - ATMEL Corporation AT89S52_08 Datasheet HTML 20Page - ATMEL Corporation AT89S52_08 Datasheet HTML 21Page - ATMEL Corporation AT89S52_08 Datasheet HTML 22Page - ATMEL Corporation AT89S52_08 Datasheet HTML 23Page - ATMEL Corporation AT89S52_08 Datasheet HTML 24Page - ATMEL Corporation AT89S52_08 Datasheet HTML 25Page - ATMEL Corporation AT89S52_08 Datasheet HTML 26Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 22 / 38 page
background image
22
1919D–MICRO–6/08
AT89S52
19. Programming the Flash – Serial Mode
The Code memory array can be programmed using the serial ISP interface 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 other operations
can be executed. Before a reprogramming sequence can occur, a Chip Erase operation is
required.
The Chip Erase operation turns the content of every memory location in the Code array into
FFH.
Either an external system clock can be supplied at pin XTAL1 or a crystal needs to be connected
across pins XTAL1 and XTAL2. The maximum serial clock (SCK) frequency should be less than
1/16 of the crystal frequency. With a 33 MHz oscillator clock, the maximum SCK frequency is
2 MHz.
20. Serial Programming Algorithm
To program and verify the AT89S52 in the serial programming mode, the following sequence is
recommended:
1.
Power-up sequence:
a.
Apply power between VCC and GND pins.
b.
Set RST pin to “H”.
If a crystal is not connected across pins XTAL1 and XTAL2, apply a 3 MHz to 33 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 16.
3.
The Code array is programmed one byte at a time in either the Byte or Page mode. The
write cycle is self-timed and typically takes less than 0.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 device
operation.
Power-off sequence (if needed):
1.
Set XTAL1 to “L” (if a crystal is not used).
2.
Set RST to “L”.
3.
Turn V
CC power off.
Data Polling: The Data Polling feature is also available in the serial mode. In this mode, during
a write cycle an attempted read of the last byte written will result in the complement of the MSB
of the serial output byte on MISO.
21. Serial Programming Instruction Set
The Instruction Set for Serial Programming follows a 4-byte protocol and is shown in Table 24-1.


Similar Part No. - AT89S52_08

ManufacturerPart #DatasheetDescription
logo
ATMEL Corporation
AT89S52 ATMEL-AT89S52_05 Datasheet
478Kb / 39P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
More results

Similar Description - AT89S52_08

ManufacturerPart #DatasheetDescription
logo
ATMEL Corporation
ATMEGA48V ATMEL-ATMEGA48V_06 Datasheet
3Mb / 374P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
ATMEGA88 ATMEL-ATMEGA88_1 Datasheet
369Kb / 10P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
AT89LP51 ATMEL-AT89LP51 Datasheet
4Mb / 113P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
ATMEGA8515 ATMEL-ATMEGA8515_10 Datasheet
1Mb / 257P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
ATMEGA88 ATMEL-ATMEGA88 Datasheet
210Kb / 20P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
ATTINY25B ATMEL-ATTINY25B Datasheet
254Kb / 7P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
AT90PWM3 ATMEL-AT90PWM3 Datasheet
3Mb / 365P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
AT90PWM1 ATMEL-AT90PWM1 Datasheet
399Kb / 20P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
AT89S52 ATMEL-AT89S52_05 Datasheet
478Kb / 39P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
AT90S8515 ATMEL-AT90S8515_01 Datasheet
2Mb / 112P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
More results


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


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.COM
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   Contact us   |   Privacy Policy   |   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