How do you use ADC in LPC2148?

Programming Steps: ADC in LPC2148 ARM7 Microcontroller

  1. Configure input pin as analog input pin for ADC block.
  2. Select channel we wish to use in our conversion.
  3. Select clock for conversion & start conversion.
  4. Wait for conversion to complete.
  5. Read 10-bit conversion result.
  6. Convert this result i.e. ADC output into decimal number.

How do you program ADC?

Steps for Configuring ADC

  1. Configure the GPIO pin for ADC function using PINSEL register.
  2. Enable the CLock to ADC module.
  3. Deselect all the channels and Power on the internal ADC module by setting ADCR.
  4. Select the Particular channel for A/D conversion by setting the corresponding bits in ADCR.SEL.
  5. Set the ADCR.

What is ADC in LPC2148?

Analog to Digital Converter(ADC) is used to convert analog signal into digital form. LPC2148 has two inbuilt 10-bit ADC i.e. ADC0 & ADC1. Both ADCs in LCP2148 convert analog signals in the range of 0V to VREF (typically 3V; not to exceed VDDA voltage level).

What is ADC control register?

ADC control register The processes of Analog Input Preprocessing can be divided into four stages: initialization, bit checking, reading and storing. The conversion is completed if the bit 0 of Hex 195 indicates ‘0’. The digital output of the converted analog input is available at Hex 196 and Hex 197.

How many number of steps are there for ADC in LPC2148?

The LPC2148 contain two analog to digital converters. These converters are single 10-bit successive approximation analog to digital converters. While ADC0 has six channels, ADC1 has eight channels. Therefore, total number of available ADC inputs for LPC2148 is 14.

What is the resolution of ADC in LPC2148?

10 bit
> LPC 2148 has two inbuilt ADC modules known as ADC0 and ADC1. > Maximum resolution of ADC is 10 bit.

Which code is used for ADC?

So, for an N-bit ADC, there are 2N codes and 1 LSB = FS/2N, where FS is the full-scale analog input voltage. However, ADC operation in the real world is also affected by non-ideal effects, which produce errors beyond those dictated by converter resolution and sample rate.

What are ADC channels?

The ADC is connected to an 8-channel Analog Multiplexer which allows each pin of PortA to be used as input for the ADC. The analog input channel is selected by writing to the MUX bits in ADMUX. This allows the selection of any of the 8 channels, AGND, or a fixed voltage reference.

What is the flash memory for LPC2148?

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

What are the different types of ADC?

There are really five major types of ADCs in use today:

  • Successive Approximation (SAR) ADC.
  • Delta-sigma (ΔΣ) ADC.
  • Dual Slope ADC.
  • Pipelined ADC.
  • Flash ADC.

How do ADC channels work?

The ADC converts an analog input voltage to a 10-bit digital value. The ADC is connected to an 8-channel Analog Multiplexer which allows each pin of PortA to be used as input for the ADC. This allows the selection of any of the 8 channels, AGND, or a fixed voltage reference. The ADC has two different operating modes.

How many channels are there in LPC2148 ADC?

Using this ADC we can connect any type of Analog sensor. LPC2148 has two inbuilt 10-bit Successive Approximation ADC. ADC0 has six channels (AD0.1-AD0.6). ADC1 has 8-Channels (AD1.0-AD1.7) . ADC operating frequency is 4.5 MHz (max.), operating frequency decides the conversion time.

What are the features of LPC2148 ARM7 microcontroller?

The ADC in LPC2148 ARM7 Microcontroller is 10-bit successive approximation analog to digital converter. The features are listed as: LPC2148 has two inbuilt ADC Modules, named as ADC0 & ADC1.

What does DAC stand for in ARM7 LPC2148?

This time we will go through a discussion on ARM7 LPC2148 DAC programming tutorial. As you might be knowing, DAC stands for Digital to Analog Conversion. The DAC block in ARM7 LPC214x microcontroller is one of the simplest to program and use.

Is the LPC2148 MCU a DAC or MCU?

ARM7 LPC2148 MCU incorporates a 10 bit DAC and provides buffered analog output. As per the datasheet, it is implemeneted as a string DAC which is the most simplest form of DAC consisting of 2 N resistors in series where N = no. of bits which simply forms a Kelvin-Varley Divider. LPC214x DAC has only 1 output pin, referred to as AOUT.