| Electronic Components Datasheet Search |
|
AT89C51ID2-RDTIM Datasheet(PDF) 138 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AT89C51ID2-RDTIM Datasheet(HTML) 138 Page - ATMEL Corporation |
|
138 / 159 page ![]() 138 AT89C51ID2 4289A–8051–09/03 API Call Description Several Application Program Interface (API) calls are available for use by an application program to permit selective erasing and programming of Flash pages. All calls are made through a common interface, PGM_MTP. The programming functions are selected by setting up the microcontroller’s registers before making a call to PGM_MTP at FFF0h. Results are returned in the registers. When several bytes have to be programmed, it is highly recommended to use the Atmel API “PROGRAM DATA PAGE” call. Indeed, this API call writes up to 128 bytes in a sin- gle command. All routines for software access are provided in the C Flash driver available on Atmel web site. The API calls description and arguments are shown in Table Table 96. API Call Summary Command R1 A DPTR0 DPTR1 Returned Value Command Effect READ MANUF ID 00h XXh 0000h XXh ACC=Manufacturer Id Read Manufacturer identifier READ DEVICE ID1 00h XXh 0001h XXh ACC= Device Id 1 Read Device identifier 1 READ DEVICE ID2 00h XXh 0002h XXh ACC=Device Id 2 Read Device identifier 2 READ DEVICE ID3 00h XXh 0003h XXh ACC=Device Id 3 Read Device identifier 3 ERASE BLOCK 01h XXh DPH=00h 00h ACC=DPH Erase block 0 DPH=20h Erase block 1 DPH=40h Erase block 2 DPH=80h Erase block 3 DPH=C0h Erase block 4 PROGRAM DATA BYTE 02h Byte value to program Address of byte to program ACC=0 : DONE Program one Data Byte in user flash ERASE BOOT VECTOR 04h XXh XXh XXh ACC=FCh Erase Software boot vector and boot status byte. (SBV=FCh and BSB=FFh) PROGRAM SSB 05h XXh DPH=00h DPL=00h 00h ACC= SSB value Set SSB level 1 DPH=00h DPL=01h Set SSB level 2 DPH=00h DPL=10h Set SSB level 0 DPH=00h DPL=11h Set SSB level 1 PROGRAM BSB 06h New BSB value 0000h XXh none Program boot status byte PROGRAM SBV 06h New SBV value 0001h XXh none Program software boot vector READ SSB 07h XXh 0000h XXh ACC=SSB Read Software Security Byte READ HSB 07h XXh 0004h XXh ACC=HSB Read Hardware Byte READ BSB 07h XXh 0001h XXh ACC=BSB Read Boot Status Byte READ SBV 07h XXh 0002h XXh ACC=SBV Read Software Boot Vector |
|
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 |
| 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 |