Rainbow Electronics AT89C5131 User Manual

Page 47

Advertising
background image

47

AT89C5131

4136A–USB–03/03

PROGRAM SOFTWARE SECURITY BIT

Input Parameters:

R0 = osc freq (integer Not required, left for Philips
compatibility)

R1 = 05h

DPH = 00h

DPL = 00h – security bit # 1 (inhibit writing to Flash)

01h – security bit # 2 (inhibit Flash verify)

10h - allows ISP writing to Flash (see Note 1)

11h - allows ISP Flash verify (see Note 1)

Return Parameter

none

PROGRAM BOOT STATUS BYTE

Input Parameters:

R0 = osc freq (integer Not required, left for Philips
compatibility)

R1 = 06h

DPH = 00h

DPL = 00h – program status byte

ACC = status byte

Return Parameter

ACC = status byte

PROGRAM BOOT VECTOR

Input Parameters:

R0 = osc freq (integer Not required, left for Philips
compatibility)

R1 = 06h

DPH = 00h

DPL = 01h – program boot vector

ACC = boot vector

Return Parameter

ACC = boot vector

PROGRAM X2 MODE

Input Parameters:

R0 = osc freq (integer Not required, left for Philips
compatibility)

R1 = 06h

DPH = 00h

DPL = 02h – program X2 mode at reset

ACC = value (00 or 01h)

Return Parameter

ACC = boot vector

Table 41. API Calls (Continued)

API Call

Parameter

Advertising