|
|||||||||||
Technical Support Support Resources
Product Information |
C51: Interface for IAP Functions on NXP DevicesInformation in this article applies to:
QUESTIONI'm using a NXP (formerly Phillips) P89C51RD2 chip that provides In-system Application Programming (IAP). NXP provides an Assembler interface, however, I want to use these routines from C. What can I do? ANSWERThe NXP IAP assembly interface is fully documented in the datasheet. In general, your program must make calls to address 0xFFF0. This is easily accomplished by creating a small assembly routine that can be called from your C functions. For example:
Note: Some devices require that you set the ENBOOT bit in the SFR AUXR1. You need to check with the device datasheet if this is required or not. This routine may be called directly from your C functions as follows:
You can implement the assembly interface to other routines just as easily. The same method works for many other parts like NXP P89C668. MORE INFORMATION
SEE ALSO
Last Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.