Philip Microcontroller PXAG37 Embedded Firmware Cloning

Philip Microcontroller PXAG37 Embedded Firmware Cloning will need to understand the configuration bits of the microcontroller, as a result of that, setting correctiveness is important.

Setting the ENBOOT bit in the AUXR register enables the Boot ROM and activates the on-chip VPP generator if VPP is connected to VDD rather than 12V externally.

The PWR_VLD flag indicates that VPP is available for programming and erase operations. This flag should be checked prior to calling the Boot ROM for programming and erase services.

When ENBOOT is set, it typically takes 5 microseconds for the internal programming voltage to be ready. The ENBOOT bit will automatically be set if the status byte is non-zero during reset, or when PSEN is low, ALE is high, and EA is high at the falling edge of reset.

Philip Microcontroller PXAG37 Embedded Firmware Cloning

Philip Microcontroller PXAG37 Embedded Firmware Cloning

Otherwise, ENBOOT will be cleared during reset. When programming functions are not needed, ENBOOT may be cleared. This enables access to the 2k bytes of Flash code memory that is overlaid by the Boot ROM, allowing a full 64k bytes of Flash code memory being extract from its MCU.

The FMIDLE bit in the AUXR register allows saving additional power by turning off the Flash memory when the CPU is in the Idle mode. This must be done just prior to initiating the Idle mode, as shown below.

OR    AUXR,#$40       ; Set Flash memory to idle mode.

OR    PCON,#$01       ; Turn on Idle mode.

.     .               ; Execution resumes here when Idle mode terminates.

When the Flash memory is put into the Idle mode by setting FMIDLE, restarting the CPU upon exiting Idle mode takes slightly longer, about 3 microseconds. However, the standby current consumed by the Flash memory is reduced from about 8mA to about 1mA in the process of Copy NXP Microprocessor PXAG27 Flash Program.