AT89C51RB2-RLTCM ATMEL [ATMEL Corporation], AT89C51RB2-RLTCM Datasheet - Page 103

no-image

AT89C51RB2-RLTCM

Manufacturer Part Number
AT89C51RB2-RLTCM
Description
8-bit Microcontroller with 16K/ 32K Bytes Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89C51RB2-RLTCM
Manufacturer:
I&CTECH
Quantity:
1 802
API Call Description
Table 74. API Call Summary
4180B–8051–04/03
READ DEVICE ID1
READ DEVICE ID2
READ DEVICE ID3
PROGRAM DATA
READ MANUF ID
PROGRAM SSB
PROGRAM BSB
PROGRAM SBV
ERASE BLOCK
ERASE BOOT
READ HSB
Command
READ SSB
READ BSB
READ SBV
VECTOR
BYTE
R1
00h
00h
00h
00h
01h
02h
04h
05h
06h
06h
07h
07h
07h
07h
Byte value to
New BSB
New SBV
program
value
value
XXh
XXh
XXh
XXh
XXh
XXh
XXh
XXh
XXh
XXh
XXh
A
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 at Atmel’s
web site.
The API calls description and arguments are shown in Table 74.
DPH = 00h
DPH = 00h
DPH = 00h
DPH = 00h
DPH = 00h
Address of
DPL = 00h
DPL = 01h
DPL = 10h
DPL = 11h
DPH=20h
DPH=40h
DPTR0
program
Byte to
0000h
0001h
0002h
0003h
0000h
0001h
0000h
0004h
0001h
0002h
XXh
DPTR1
XXh
XXh
XXh
XXh
XXh
XXh
XXh
XXh
XXh
XXh
XXh
00h
00h
ACC=Manufacturer
ACC= Device ID 1
ACC=Device ID 2
ACC=Device ID 3
Returned Value
ACC= SSB value
ACC = 0 : DONE
ACC=DPH
ACC=HSB
ACC=FCh
ACC=SSB
ACC=BSB
ACC=SBV
none
none
ID
Command Effect
Read Manufacturer identifier
Read Device identifier 1
Read Device identifier 2
Read Device identifier 3
Erase block 0 (from 0x0000 to 0x1FFF)
Erase block 1 (from 0x2000 to 0x3FFF)
Erase block 2 (from 0x4000 to 0x7FFF)
(AT89C51RC2 device only)
Erase Software boot vector and boot status
Byte. (SBV=FCh and BSB=FFh)
Set SSB level 1
Set SSB level 2
Set SSB level 0
Set SSB level 1
Program boot status Byte
Program software boot vector
Read Software Security Byte
Read Hardware Byte
Read Boot Status Byte
Read Software Boot Vector
AT89C51RB2/RC2
Program one Data Byte in user Flash
103

Related parts for AT89C51RB2-RLTCM