The microcontroller used is the PIC12F683, 8-pin, Flash-based microcontroller from Microchip.
As mentioned above, the 12F683 is preprogrammed for analog voltage measurement and for
reading the digital temperature sensors, but it can also be erased and reprogrammed with user
code if desired. Reprogramming the micro requires a user-supplied device programmer. (Refer
to the schematic at the end of this document for the pin out of the programming header.)
The microcontroller uses a single port pin and a pull-up resistor to communicate with each digital
temperature sensor. Refer to the DS18B20’s datasheet for a complete description of its
communications protocol. The firmware for the DLP-TEMP-G was written in C and can be
downloaded from dlpdesign.com .
USB INTERFACE
The USB interface was implemented using the FT232RL USB-UART IC from FTDI. This device
connects to the host computer via the Type A USB (male) connector and supports the 8 standard
RS232 serial signals. Only the TX and RX signals are used on the DLP-TEMP-G board and are
all that is required to form a serial connection to the host computer. Since handshaking is not
used in this design, the firmware in the 12F683 processor must be ready to accept all incoming
serial data from the host computer or the data will be lost.
In order for the DLP-TEMP-G (and FT232RL) to receive incoming serial data from the host,
FTDI’s VCP (Virtual Com Port) drivers must be installed. The driver installation process is
initiated by simply plugging the DLP-TEMP-G into a USB port. The driver installation wizard will
prompt for the location of the drivers files (in a folder or on a floppy) and will copy the required
files to the proper destination such that the next time the board is connected the driver files will be
automatically loaded without prompting the user. The VCP driver files can be downloaded for
free from dlpdesign.com or ftdichip.com .
Once the drivers are loaded and the com port number for the DLP-TEMP-G is set in Device
Manager, the application program running on the host simply opens what it thinks is an RS232
port (9600, N, 8, 1) and begins communicating with the 12F683 microcontroller.
COMMUNICATIONS PROTOCOL
For this design, a rather simplistic protocol was selected in an attempt to present the design in as
basic a way as possible.  Single-byte commands are used to communicate with the 12F683
microcontroller. The following table shows the command list:
COMMAND
R (read and convert)
P (ping)
S
12F683 Response
Send back 18 bytes of data from the sensors and start another
temperature conversion in both sensors. Provided as legacy
support for compatibility with the original DLP-TEMP.
Echo the letter ‘Q’ back to the host. Provided as legacy support
for compatibility with the original DLP-TEMP.
Read temperature sensor at S1, return data and convert
2
相关PDF资料
DLP-TXRX-G MODULE USB-TO-TTL SRL UART CONV
DLP-USB1232H MODULE USB-TO-UART/FIFO HS 18DIP
DLP-USB232M-G MODULE USB-TO-TTL SRL UART CONV
DLP-USB232R MODULE USB-TO-SRL UART 18-DIP
DLP-USB245M-G MODULE USB-TO-TTL PARL FIFO CONV
DLP-USB245R MODULE USB-TO-PARL FIFO 18-DIP
DM163001 BOARD DEMO PICDEM-1
DM163004-LT BOARD DEMO PICDEM.NET
相关代理商/技术参数
DLP-TH1 功能描述:温度传感器模块 Temp Humidity and Dew Point RoHS:否 制造商:Maxim Integrated 产品:K-Type Thermocouples 温度范围:- 270 C to + 1800 C 准确性:+/- 2 C 分辨率:0.25 C 输出类型:Digital 接口类型:SPI 工作电源电压:3.3 V 工作电源电流:900 uA 最大工作温度:+ 125 C 尺寸:
DLP-TH1B 功能描述:温度传感器模块 Temp Humidity and DEW POINT RoHS:否 制造商:Maxim Integrated 产品:K-Type Thermocouples 温度范围:- 270 C to + 1800 C 准确性:+/- 2 C 分辨率:0.25 C 输出类型:Digital 接口类型:SPI 工作电源电压:3.3 V 工作电源电流:900 uA 最大工作温度:+ 125 C 尺寸:
DLP-TH1-G 功能描述:温度传感器模块 Temp Humidity and Dew Point RoHS:否 制造商:Maxim Integrated 产品:K-Type Thermocouples 温度范围:- 270 C to + 1800 C 准确性:+/- 2 C 分辨率:0.25 C 输出类型:Digital 接口类型:SPI 工作电源电压:3.3 V 工作电源电流:900 uA 最大工作温度:+ 125 C 尺寸:
DLP-THS-H 功能描述:工业湿度传感器 TEMP/HUMIDITY SENSOR RoHS:否 制造商:Vishay/BC Components RH 范围: RH 精度: 电源电压: 电源电流: 温度范围:
DLP-THS-T 功能描述:工业温度传感器 TEMP SENSOR MODULE RoHS:否 制造商:Texas Instruments 准确性:1 C 功能:Temperature Sensing 25 摄氏度时的电阻: 温度范围:- 55 C to + 127 C 电源电流: 电源电压:2.7 V to 5.5 V
DLP-TILT 功能描述:加速传感器模块 DLP-TILT SENSOR ACCEL VIBRATION RoHS:否 制造商:Arduino 传感轴:3-Axis 加速: 灵敏度: 输出类型:Analog 接口类型: 电源电压:0 V to 5 V 电源电流: 最大工作温度: 尺寸:
DLP-TILT-G 功能描述:加速传感器模块 USB-BASE TILT SENSOR ACELROMETER-VIBRTION RoHS:否 制造商:Arduino 传感轴:3-Axis 加速: 灵敏度: 输出类型:Analog 接口类型: 电源电压:0 V to 5 V 电源电流: 最大工作温度: 尺寸:
DLP-TTL232R-3V3B 功能描述:电缆组件 From FTDI USB-Seril CABL I/O3.3 2MM PIN RoHS:否 制造商:Molex 产品:Power Assemblies 类型:Cable Assembly 连接器端口 A:No Connector 连接器端口 A 管脚计数:4 连接器端口 B:No Connector 连接器端口 B 管脚计数: 型式:Male 线规 - 美国线规(AWG):20, 28 长度:0.305 m 颜色:Black, Red