0
1.1kviews
ARM Programming with Embedded C(part 1)
1 Answer
0
1views

About LPC2148 Microcontroller:

LPC2148 is ARM7 based microcontroller designed by Philips with several features.

Features of LPC2148:

• LPC2148 is 32 bit or 16 bit ARM7 family based microcontroller.

• In System Programming (ISP) or In Application Programming (IAP) using on chip boot loader software.

• The LPC2148 microcontroller has 512-kB on-chip FLASH memory as well as 32-kB on-chip SRAM.

• This microcontroller includes 512 kB flash memory system. This memory is used for data storage and code.

• This microcontroller provides static RAM with 32 kB. It is accessible for 8 bits, 16 bits and 32 bits.

• This microcontroller has two input/output ports. This are termed as P0/P1. Every Port pin is branded with PX.Y. Here X is referred as port number such as 0 or 1. Where Y referred as pin number 0-31.

• Embedded Trace interfaces and Embedded ICE RT offers real-time debugging with high-speed tracing of instruction execution and on-chip Real Monitor software.

• It has 2 kB of endpoint RAM and USB 2.0 full speed device controller.

• One or two 10-bit ADCs offer 6 or 14 analogs i/ps

• External event counter/32 bit timers-2, PWM unit, & watchdog

• Low power RTC (real time clock) & 32 kHz clock input

LPC2148 Pin Configuration

enter image description here

Figure: Pin Configuration of LPC2148

Pin Description:

Pin1-(P0.21/ PWM5CAP1.3/ AD1.6) -P0.21 is a GPIO pin (general purpose I/O pin) -AD1.6 is obtainable in LPC2144/46/48 microcontrollers only where an AD1.6 denotes ADC-1, i/p-6. -PWM5 is a pulse width modulator output-5. -CAP1.3 is a Capture i/p for Timer-1, channel-3 Pin2-(P0.22/ CAP0.0/AD1.7/ MAT0.0 2 -P0.22 is a GPIO digital pin -AD1.7 pin is available in LPC2144/46/48 only where an AD1.7 denotes ADC-1, input-7 -CAP0.0 is a capture input pin for Timer-0, channel-0. -MAT0.0 is a match o/p for Timer-0, channel-0
Pin3-RTXC1 3 It is an I/p to the RTC-oscillator circuit Pin4- TRACEPKT3/ P1.19 TRACEPKT3 is a trace packet, bit-3, standard input/output port by the inner pull-up. P1.19 is a GPIO digital pin
Pin5-RTXC2 This is an output pin from the RTC oscillator circuit Pin6, Pin18, Pin25, Pin42, and Pin50 These pins are a ground reference
Pin7-VDDA This pin is an analog voltage power supply (3.3V), and this voltage is very useful for the on-chip analog to digital converters and digital to analog converters. Pin8- P1.18/TRACEPKT2 P1.18 is a GPIO digital pin TRACEPKT2 is a trace packet, bit-2, standard input/output port by the inner pull-up.
Pin9- P0.25/AOUT/AD0.4 -P0.25 is a GPIO digital pin I -AD0.4 denotes ADC-0, input-4 -Aout- the output of DAC and that is accessible only in LPC2142/ LPC2144/ LPC2146/ LPC2148 Pin10- D+ This pin is a USB bidirectional D+ line
Pin11- D- This pin is a USB bidirectional D- line Pin12-P1.17/TRACEPKT1 -P1.17 is a GPIO digital pin -TRACEPKT1 is a trace packet, bit-1, standard input/output port by the inner pull-up.
Pin13-P0.28/ CAP0.2/ AD0.1/MAT0.2 -P0.28 is a GPIO digital pin -AD0.1 denotes ADC-0, input-1 -CAP0.2 is a capture i/p for Timer-0, channel-2. -MAT0.2 is a match o/p for Timer-0, channel-2 Pin14-P0.29/ CAP0.3/ AD0.2/MAT0.3 -P0.29 is a GPIO digital pin -AD0.2 denotes ADC-0, input-2 -CAP0.3 is a capture i/p for timer-0, channel-3. -MAT0.3 is a match o/p for Timer-0, channel-3
Pin15-P0.30/ EINT3/ AD0.3/CAP0.0 P0.30 is a GPIO digital pin AD0.3 denotes ADC-0, input-3 EINT3 is an external interrupt 3-input. CAP0.3 is a capture i/p for Timer-0, channel-0. Pin16- P1.16/TRACEPKT0 P1.16 is a GPIO digital pin TRACEPKT1 is a trace packet, bit-0, standard input/output port by inner pull-up
Pin17-P0.31/UP_LED/CONNECT P0.31 is a GPIO digital pin UP_LED is a USB good link LED indicator. When the device is arranged then it is low and when the device is not arranged, then it is high. CONNECT- This signal is used to control an exterior resistor (1.5 kΩ) under the control of a software control, and it is used by the feature of Soft Connect Pin19- P0.0/PWM/TXD0 P0.0 is a GPIO digital pin TXD0 is a transmitter o/p for UART0. PWM1 is a pulse width modulator o/p-1.
Pin20- P1.31/TRST P1.31 is a GPIO digital pin TRST is a test reset for JTAG interface Pin21-P0.1/ PWM3/ RXD0/EINT0 P0.1 is a GPIO digital pin RXD0 is a receiver i/p for UART0. PWM3 is a pulse width modulator o/p-3. EINT0 is an external interrupt 0-input
Pin22- P0.2/ CAP0.0/ SCL0 P0.2 is a GPIO digital pin SCL0 is an I2C0 clock I/O, and open-drain o/p CAP0.0 is a capture i/p for Timer-0, channel-0. Pin 23, 43, and 51- VDD These pins are power supply voltage for the I/O ports as well as the core.
Pin24- P1.26/RTCK P1.26 is a GPIO digital pin RTCK is a returned test CLK o/p, an additional signal added to the JTAG-port. When the frequency of processor changes then it helps debugger synchronization. Pin26- P0.3/ SDA0/ MAT0.0/EINT1 P0.3 is a GPIO digital pin SDA0 is an I2C0 data I/O and opendrain o/p for I2C bus observance. MAT0.0 is matched o/p for timer-0,channel-0. EINT1 is an external interrupt 1-i/p.
Pin27-P0.4/ CAP0.1/ SCK0/AD0.6 P0.4 is a GPIO digital pin I/O SCK0 is a serial CLK for SPI0 and SPI CLK o/p from master/ i/p to slave. CAP0.1 is a capture i/p for timer-0, channel-0. IAD0.6 denotes ADC-0, input-6 Pin28-P1.25/EXTIN0 P1.25 is a GPIO digital pin I/O EXTIN0 is an external trigger i/p, and standard input/output with inner pull-up
Pin29- P0.5/MAT0.1/MISO0/AD0.7 P0.5 is a GPIO digital pin I/O MISO0 is a master in slave out for SPI0, data i/p to SPI-master/data o/p from SPI slave. MAT0.1 is a match o/p for timer-0, channel-1. AD0.7 denotes ADC-0, input-7. Pin30-P0.6/MOSI0/CAP0.2/AD1.0 P0.6 is a GPIO digital pin I/O MOSI0 is a master out slave in for SPI0, and data o/p from SPI master/ data i/p to SPI slave. CAP0.2 is a capture i/p for Timer-0, channel-2.
Pin31-P0.7/ PWM2/ SSEL0/EINT2 P0.7 is a GPIO digital pin I/O SSEL0 is a slave select for SPI0 and chooses the SPI-interface as a slave. PWM2 is a pulse width modulator output-2. EINT2 is an external interrupt 2-input. Pin32-P1.24/TRACECLK P1.24 is a GPIO digital pin I/O. TRACECLK is a trace CLK and standard input/output port with inner pull-up
Pin33-P0.8/TXD1/PWM4/AD1.1 P0.8 is a GPIO digital pin I/O TXD1 is a transmitter o/p for UART1. PWM4 is a pulse width modulator o/p-4. AD1.1 denotes ADC-1, input-1, and it is obtainable only in LPC2144/46/48. Pin34- P0.9/PWM6/RXD1/EINT3 P0.9 is a GPIO digital pin I/O RXD1 is a receiver i/p for UART1. PWM6 is a pulse width modulator o/p-6. EINT3 is an external interrupt 3-input
Pin35-P0.10/RTS1/CAP1.0/AD1.2 P0.10 is a GPIO digital pin I/O RTS1 is requesting to send o/p for UART1 and LPC2144/46/48. CAP1.0 is a capture i/p for AD1.2 denotes ADC-1, input-2, and it is obtainable only in LPC2144/46/48 Pin36-P1.23/PIPESTAT2 P1.23 is a GPIO digital pin I/O PIPESTAT2 is a pipeline status, bit-2., and standard Input/Output port with inner pull-up
Pin37-P0.11/ CAP1.1/CTS1/ SCL1 P0.11 is a GPIO digital pin I/O CTS1 is clear to send i/p for UART1, and these are accessible only in LPC2144/46/48 CAP1.1 is a capture i/p for timer-1, channel-1. SCL1 — I2C1 CLK I/O, and open drain o/p for the I2C-bus observance Pin38-P0.12/ MAT1.0/AD1.3/ DSR1 P0.12 is a GPIO digital pin I/O DSR1 is a data set ready i/p for UART1, and these are accessible only in LPC2144/46/48. MAT1.0 is a match o/p for timer-1, channel-0. AD1.3 denotes ADC input-3, and it is accessible only in LPC2144/46/48.
Pin39-P0.13/DTR1/MAT1.1/AD1.4 P0.13 is a GPIO digital pin I/O DTR1 is a data terminal ready o/p for UART1 and LPC2144/46/48 only. MAT1.1 is a match o/p for timer-1, channel-1. AD1.4 denotes ADC input-4, and these are accessible only in LPC2144/46/48. P1.22 is a GPIO digital pin I/O PIPESTAT1 is a pipeline status, bit-1, and standard Input/Output port with inner pull-up
Pin41-P0.14/DCD1/EINT1/SDA1 P0.14 is a GPIO digital pin I/O DCD1 is a data carrier detect i/p for UART1, and also only for LPC2144/46/48 only. EINT1 is an exterior interrupt 1-input. SDA1 is an I2C1 data I/O and an open drain o/p for I2C bus observance Pin44:P1.21/ PIPESTAT0 44 I/O P1.21 is a GPIO digital pin I/O PIPESTAT0 is a Pipeline Status, bit 0, and standard Input/Output port by the inner pull-up.
Pin45: P0.15/ EINT2/ RI1/ AD1.5 45 I/O P0.15 is a GPIO digital pin I/O RI1 is a ring pointer i/p for UART1 and it is accessible only in LPC2144/46/48. EINT2 is an external interrupt 2-input. AD1.5 indicates ADC 1, input-5, and also available only in LPC2144/46/48 Pin46: P0.16/ MAT0.2/ EINT0/ CAP0.2 P0.16 is a GPIO digital pin I/O EINT0 is an external interrupt0- input. MAT0.2 is a match o/p for Timer-0, channel -2 CAP0.2 is a capture i/p for Timer-0, channel-2.
Pin47: P0.17/ SCK1/ CAP1.2/ MAT1.2 47 P0.17 is a GPIO digital pin I/O CAP1.2 is a capture i/p for Timer-1, channel-2. SCK1 is a serial CLK for SSP and CLK o/p from master to slave. MAT1.2 is a match o/p for Timer-1, channel-2. Pin48: P1.20/ TRACESYNC P1.20 is a GPIO digital pin I/O TRACESYNC is trace synchronization.
Pin49: VBAT RTC power supply: This pin gives the supply to the RTC. Pin52: P1.30/TMS P1.30 is a GPIO digital pin I/O TMS is a test mode select for interfacing of JTAG
Pin53: P0.18/CAP1.3/ MISO1/MAT1.3 P0.18 is a GPIO digital pin I/O CAP1.3 is a capture i/p for Timer MISO1 is a master In Slave-out for SSP, and data i/p to SPI- master Pin54: P0.19/ MOSI1/MAT1.2/ CAP1.2 P0.19 is a GPIO digital pin I/O. MAT1.2 denotes match o/p for Timer 1, channel 2. MOSI1 is a master out slave for SSP master. CAP1.2 is a capture i/p for Timer 1, channel 2.
Please log in to add an answer.