LPC2148 vs 8051: Microcontroller Comparison
Advertisement
This article compares the LPC2148 and 8051 microcontrollers, highlighting their differences and similarities.
LPC2148 Microcontroller
The LPC2148 is a microcontroller developed by NXP.
Key features of the LPC2148 include:
- Based on a 16-bit/32-bit ARM7TDMI-S CPU.
- Various versions supported: LPC2141, LPC2142, LPC2144, LPC2146, and LPC2148.
- Internal RAM and ROM support, with varying sizes depending on the specific version.
- Six PWM outputs.
- 32-bit timers/counters.
- Low-power RTC with independent power and a 32 kHz clock.
- One or two 10-bit ADCs and one 10-bit DAC.
- Power-saving modes such as IDLE and Power Down.
- Two UARTs, two fast I2C interfaces, and SPI/SSP with buffering and variable data length.
Figure 1: LPC2148 Microcontroller Architecture
Figure 2: LPC2148 Pin Diagram
8051 Microcontroller
The 8051 is a microcontroller originally developed by Intel.
Key features of the 8051 include:
- 8-bit CPU.
- 4 KB ROM for code/program storage.
- 128 bytes of RAM for data/variable storage.
- 32 Input/Output lines with 4 ports (8 lines per port).
- Two timers for introducing delays and setting the baud rate for data communication.
- One serial port with one TxD and one RxD line for serial communication with external devices.
- 6 Interrupt Sources.
- Clock oscillator circuit running at 12MHz frequency.
Figure 3: 8051 Microcontroller Architecture
Figure 4: 8051 Pin Diagram
Difference between LPC2148 and 8051
The following table summarizes the similarities and differences between the LPC2148 and 8051 microcontrollers:
Specifications | LPC2148 | 8051 |
---|---|---|
RAM | 8 KB to 40 KB (static RAM) | 256 bytes Used for data storage |
ROM | 32 Kb to 512KB (flash memory) | 4KB ROM available internally 64KB (max.) can be interfaced external to microcontroller Used for program storage |
CPU (No of bits or size) | 16 bit/32 bit | 8 bit |
I/O ports (without interrupt) | About up to 46 fast I/Os | Four number of I/O ports are available , each with 8 lines |
I/O ports (with interrupt) | Up to 46 I/O pins and up to 21 external interrupt pins are available | Four number of I/O ports , uses 2 interrupt lines INT0 and INT1 |
Serial ports | Two UARTs | One |
Timers/Counters | Two 32 bit timers/counters | Two 8 bit timers/counters |
Crystal Oscillator frequency | On chip oscillator operates with external connected crystal in range from 1 MHz to 25 MHz Supports 4 MHz to 30 MHz | Nominal: 11.0592 MHz |
Watchdog timer | Supported | Not supported |
A to D converter | 1 or 2 ADCs of 10 bits in size | Not supported |
D to A converter | 1 DAC of 10 bits in size | Not supported |
HW/SW UART | Two UARTs supported | One UART supported |
SPI/I2C interfaces | Two, Supported | Not Supported |
PWM | Supported | Not Supported |