Posts: 8,059
Threads: 1
Joined: Mar 2014
ultrasonic sensor interfacing with lpc2148
ARM7 LPC2148 Primer Board The ARM7 LPC2148 Primer board is specifically designed to help students to master the required skills in the area of embedded systems. The kit is designed in such way that all the possible features of the microcontroller will be easily used by the students. The kit supports in system programming (ISP) which is done through serial port. NXP’s ARM7 (LPC2148), ARM Primer Kit is proposed to smooth the progress of developing and debugging of various designs encompassing of High speed 32-bit Microcontrollers. Temperature Sensor DS1820 is a temperature sensor which is small sensor. The output of sensor converted to digital that easy connecting with microcontroller. Interfacing ds1820 Fig. 1 shows how to interface the ds1820 to microcontroller. As you can see the first pin is connected to GND, the third pin is connected to VCC & the second pin is connected to the Microcontroller. So when the temperature is sensing, it give the sensor reading to controller.
Interfacing ds1820 with LPC2148 Reading the temperature using LPC2148 Primer Board through temperature sensor ds1820. The ARM7 LPC2148 Primer board uses the ADC pin for reading temperature from temperature sensor ds1820. The reading output is displayed into PC through UART1. The 10 bit ADC used to read temperature. Basic clocking for the A/D converters is provided by the VPB clock. A programmable divider is included in each converter, to scale this clock to the 4.5 MHz (max) clock needed by the successive approximation process. A fully accurate conversion requires 11 of these clocks.