![]() Using ADC Module of PIC Microcontroller.Interfacing ADC0808 with 8051 Microcontroller.Global Start command for both converters.Īlso check how to use ADC in other Microcontrollers:.Optional conversion on transition on input pin or timer match signal.Burst conversion mode for single or multiple inputs.Every analog input has a dedicated result register to reduce interrupt overhead.Each converter capable of performing more than 400000 10-bit samples per second.As it will damage the IC and also provide uncertain values. It must not exceed 3.3V the voltage reference. It converts input voltage in range of (0 to 3.3V) only.Therefore, total number of available ADC inputs for LPC2148 is 14.While ADC0 has six channels, ADC1 has eight channels.These converters are single 10-bit successive approximation analog to digital converters.The LPC2148 contain two analog to digital converters.We explained ADC in detail in previous article. Like for example if reference voltage is 3v: (ADC Resolution / Operating Voltage) = (ADC Digital Value / Actual Voltage Value) We can use the below formulae to calculate the digital value that will be read by the MCU based on the Resolution of the ADC and Operating voltage. With this if the actual input voltage is 0V then the MCU’s ADC will read it as 0 and if it is 3.3V the MCU will read 1024 and if it somewhere in between like 1.65v then the MCU will read 512. Meaning 1024 is the resolution for a 10-bit ADC, similarly for a 8-bit ADC resolution will be 512 (28) and for a 16-bit ADC resolution will be 65,536 (216). Let us assume that our ADC range is from 0V to 3.3V and we have a 10-bit ADC this means our input voltage 0-3.3 Volts will be split into 1024 levels of discrete analog values(2 10 = 1024). These parameters are measured as analog voltages by respective sensors and then these Analog values are converted into Digital values for microcontrollers. So what are these analog values? These are the ones that we see in our day to day life like temperature, speed, brightness etc. So let’s start by a short introduction about ADC.Īs said earlier ADC stands for Analog to digital conversion and it is used to convert analog values from real world into digital values like 1’s and 0’s. In this tutorial we will see how to use ADC in ARM7-LPC2148 by supplying a varying voltage to an Analog pin and display it on the 16x2 LCD screen after analog to digital conversion. Our microcontroller ARM7-LPC2148 also has an ADC feature. So most of the microcontroller has an inbuilt important feature called ADC (Analog to Digital convertor). For using these analog signals in microcontroller we need to convert analog signal into digital signal as the microcontroller understands and process only digital signals. These signals from analog sensors tend to be very small in value from a few micro-volts (uV) to several milli-volts (mV), so some form of amplification is required. Analog sensors are used to produce output that are continuously changing over the time. In electronics world there are many varieties of analog sensors in the market that are used to measure temperature, speed, displacement, pressure etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |