Справочник Пользователя для Microchip Technology PICDEM Mechatronics Demo Board DM163029 DM163029

Модели
DM163029
Скачать
Страница из 64
Example Projects
©
 2006 Microchip Technology Inc.
DS51557C-page 25
2.3.3
Project 3: Thermometer Using the Analog-to-Digital Converter
This project shows how to read an analog temperature sensor and display the 
temperature on a LCD. The Analog-to-Digital Converter module is used to read the 
analog voltage output from the temperature sensor. Then, the resulting value is 
converted into degrees Celsius and displayed.
Objectives
1.
Use the Analog-to-Digital Converter module on the PIC16F917 to read the 
analog voltage output of the TC1047A temperature sensor.
2.
Gain knowledge about the LCD module and using the LCD module worksheet.
Applicable Technical Documents
Precision Temperature-to-Voltage Converter (TC1047/A) Data Sheet (DS21498)
Jumper Configuration
• AN0 (J13) to TEMP (J4)
FIGURE 2-6:
PROJECT 3: JUMPER DIAGRAM
FIGURE 2-7:
PROJECT 3: SCHEMATIC
PIC16F917
V
DD
AN0
V
SS
COM
X
V
DD
1 k
Ω
 
R19
11/32
2
12/31
2
1
3
V
DD
V
DD
V
SS
Out
C24
0.1
μ
F
TC1047A
C28
0.1
μ
F
SEG
X
Common
Segment
pins
pins
LCD1
VIM-332-DP
Temp.
Sensor