Library provided by Embedded Systems Academy, Copyright 2003 Visit www.esacademy.com/faq/progs for examples and libraries. This library: LPC932IAPLIB - name of application: LPC932IAPLIBExample ===================================================================== C compatible In-Application Programming Library for the Philips P89LPC932 Hardware requirements ===================== Philips P89LPC932 and evaluation board or target hardware ***NOTE: Change PGM_MTP in lpc932iaplib.a51 to 0FF03H for use with: LPC920,921,922,924,925,930 and 931*** Software requirements ===================== Raisonance 8051 compiler system - EVAL version sufficient www.raisonance.com or Keil 8051 Compiler System - EVAL version sufficient www.keil.com Optional: Development Assistant-C by RistanCASE www.ristancase.ch Tested using ============ Raisonance 51 Toolset version 6.10.11 with MA51 patch. Keil C51 Toolset version 7.03 Application description ============================================= Raisonance specific files have their names prefixed with 'r'. Keil specific files have their names prefixed with 'k'. The same source files are used for both compilers. The LPC932IAPLIB is an In-Application Programming library for the P89LPC932 which may be used with a C project. The library is implemented in assembler, but has a C interface hiding the assembler from the C programmer. The package includes the library, a C header file, a manual in PDF format and an example project for both the Raisonance and Keil 8051 Compilers. The following functions are implemented in the library, giving access to all the features of IAP: void iap_init(unsigned char configuration); unsigned char iap_read_version(void); void iap_write_code(unsigned char data *pbuffer, unsigned int address, unsigned char length); void iap_erase(unsigned char type, unsigned int address); unsigned long iap_read_sector_crc(unsigned int address); unsigned long iap_read_global_crc(void); unsigned char iap_read_code(unsigned int address); unsigned char iap_read(unsigned char name); void iap_write(unsigned char name, unsigned char value);