Addis Ababa University Addis Ababa Institute of Technology School of Electrical & Computer Engineering
Addis Ababa University Addis Ababa Institute of Technology School of Electrical & Computer Engineering
Introduction
ADC (Analog to Digital Converter) is a hardware that converts analog signals into digital. It can be
used to acquire signals from analog devices (e.g. from sensors). LPC2148 has two 10-bit ADCs with
8 channels at each ADC. The ADCs have the following features:
LPC2148
The ADC reference voltage determines the range of input analog voltage values. It can be from 0V
to 3.3V. For our purpose VREF = 3.3V.
The digital value read from the ADC is in the range of 0 to 1023 (10-bit ADC). The digital value is
given as:
In this lab you will learn how to read analog value from a temperature sensor and convert the
voltage reading into temperature reading.
For the lab exercise we will use an IC temperature sensor, LM60. The sensor has the following
characteristics:
1
Can be supplied with a single +2.7V - +10V power supply
For our exercise the sensor output is connected to AD0.6 input of LPC2148.
The relationship between sensor voltage output and temperature value is given as
( ) ( )
Example sensor output values and corresponding temperature values are given in the following
table.