LPC2148 has 32kB on SRAM chip and 512 KB on FLASH memory chips. It has built-in support up to 2kB USB RAM endpoint as well. This huge amount of memory is suitable for almost all applications.
The LPC2148 incorporates a flash memory system of 512 kB. This memory can be used for both code storage and data storage. FLASH memory can be programmed using
1. JTAG interface with serial interface
2. Using in system programming (ISP) and UART0or
3. By means of InApplication (IAP) programming capabilities.
The application program, using the IAP functions, can also delete and / or program the Flash while the application is running, which allows a great degree of flexibility for the firmware updates of the data storage field, etc. When using the LPC2148 boot loader, 500 kB of flash memory is available for the user code.
The LPC2148 Flash memory provides a minimum of 100,000 erase / write cycles and 20 years of data retention.
2.In SRAM chip
The LPC2148 provides 32 kB of static RAM that can be used for storing code and / or data. It can be accessed as 8 bits, 16 bits and 32 bits.
I / O ports
LPC 2148 has two I / O ports each 32 bits wide giving us a total of 64 I / O pins. The ports are called P0 and P1.
The pins of each port are labeled as PX.Y where X represents the port number, 0 or 1, where Y represents the pin number 0 to 31.
Each pin can also perform alternate functions. For example, P0.8 serves as GPIO, as well as the transmitter pin of UART1, PWM4 and AD1.1.
In RESET, each pin is configured as GPIO. For any other use, the programmer must configure it correctly.