Rainbow Electronics AT89C5131 User Manual
Page 48

48
AT89C5131
4136A–USB–03/03
PROGRAM OSC MODE
Input Parameters:
R0 = osc freq (integer Not required, left for Philips
compatibility)
R1 = 06h
DPH = 00h
DPL = 03h – program OscA/OscB at reset
ACC = value (00 or 01h)
Return Parameter
ACC = boot vector
PROGRAM BLJB
Input Parameters:
R0 = osc freq (integer Not required, left for Philips
compatibility)
R1 = 06h
DPH = 00h
DPL = 04h – program FSBt
ACC = value (00 or 01h)
Return Parameter
ACC = boot vector
LOCK MEMORY AREA
Input Parameters:
R0 = osc freq (integer Not required, left for Philips
compatibility)
R1 = 0Ch
DPTR0 = address of the first byte to lock in the Flash
memory
DPTR1 =
Return Parameter
none
UNLOCK MEMORY AREA
Input Parameters:
R0 = osc freq (integer Not required, left for Philips
compatibility)
R1 = 0Ch
DPTR0 = address of the first byte to lock in the Flash
memory
DPTR1 =
Return Parameter
none
READ DEVICE DATA
Input Parameters:
R1 = 03h
DPTR = address of byte to read
Return Parameter
ACC = value of byte read
Table 41. API Calls (Continued)
API Call
Parameter