XA-G39 NXP Semiconductors, XA-G39 Datasheet - Page 16

no-image

XA-G39

Manufacturer Part Number
XA-G39
Description
Xa 16-bit Microcontroller Family Xa 16-bit Microcontroller 32k Flash/1k Ram, Watchdog, 2 Uarts
Manufacturer
NXP Semiconductors
Datasheet
Philips Semiconductors
In-Application Programming Method
Several In-Application Programming (IAP) calls are available for use
by an application program to permit selective erasing and
programming of FLASH sectors. All calls are made through a
Table 2. IAP calls
2002 Mar 13
XA 16-bit microcontroller family
32K Flash/1K RAM, watchdog, 2 UARTs
PROGRAM DATA BYTE
ERASE BLOCK
ERASE BPC and
STATUS BYTE
PROGRAM SECURITY BIT
PROGRAM STATUS BYTE
PROGRAM BPC high byte
READ DEVICE DATA
READ MANUFACTURER ID
IAP CALL
Input Parameters:
Return Parameter
Input Parameters:
Return Parameter
Input Parameters:
Return Parameter
Input Parameters:
Return Parameter
Input Parameters:
Return Parameter
NOTE: Only two bits of this Special Cell may be programmed at one time.
Input Parameters:
Return Parameter
NOTE: Only two bits of this Special Cell may be programmed at one time.
Input Parameters:
Return Parameter
Input Parameters:
Return Parameter
R0H = 02h or 92h
R6 = address of byte to program
R4L = byte to program
R4L = 00 if pass, non-zero if fail
R0H = 01h or 93h
R6H = block number in bits 7:5, bits 4:0 = ’0’
block 0 : R6H = 00h
block 1 : R6H = 20h
block 2 : R6H = 40h
R6L = 00h
R4L = 00 if pass, non-zero if fail
R0H = 04h
R4L = 00 if pass, non-zero if fail
R0H = 05h
R6H = 00h
R6L = 00h – security bit # 1 (inhibit writing to FLASH)
none
R0H = 06h
R6H = 00h
R6L = 00h – program status byte
R4L = status byte
R4L = 00 if pass, non-zero if fail
R0H = 06h
R6H = 00h
R6L = 01h – program BPC
R4L = BPC[15:8] (BPC[7:0] unchanged)
R4L = 00 if pass, non-zero if fail
R0H = 03h
R6 = address of byte to read
R4L = value of byte read
R0H = 00h
R6H = 00h
R6L = 00h (manufacturer ID)
R4L = value of byte read
01h – security bit # 2 (inhibit FLASH verify)
02h – security bit # 3 (disable external memory)
16
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.
The IAP calls are shown in Table 2.
PARAMETER
XA-G39
Preliminary data

Related parts for XA-G39