Docsity

Lab: Temperature Sensing System with PIC Microcontroller and PC Microprocessor - Prof. Ome, Lab Reports of Electrical and Electronics Engineering

Toggle sidebar
bg1
Purdue University Calumet
ECET-456
Microcomputer Hardware Design
Page 1 of 3
LAB -10
Lab Objective:
Design a multi processing system that includes a 16F88 PIC microcontroller and PC Embedded
Microprocessor. The project will involve a software design for the 16F88 that will capture an
analog signal from LM34/LM35 Temperature sensor. The A/D converter on 16F88 is utilized to
convert the signal to a digital value representing the ambient temperature. This digital data
value is outputted through 16F88 port. This data is imported to PC via USB interface and then
further processed to show the data on the PC screen both in degrees Fahrenheit and Celsius.
SCHEMATIC
REFERENCES
http://www.facstaff.bucknell.edu/mastascu/elessonshtml/Sensors/TempLM35.html
LM35
VS+
1
VOUT
2
RA0
BA0
BA1
BA2
BA3
BA4
BA5
BA6
BA7
USB-1024LS
PC
DISPLAY THE
+5V
pf3

Partial preview of the text

Download Lab: Temperature Sensing System with PIC Microcontroller and PC Microprocessor - Prof. Ome and more Lab Reports Electrical and Electronics Engineering in PDF only on Docsity!

ECET-

Microcomputer Hardware Design

LAB -

Lab Objective:

Design a multi processing system that includes a 16F88 PIC microcontroller and PC Embedded Microprocessor. The project will involve a software design for the 16F88 that will capture an analog signal from LM34/LM35 Temperature sensor. The A/D converter on 16F88 is utilized to convert the signal to a digital value representing the ambient temperature. This digital data value is outputted through 16F88 port. This data is imported to PC via USB interface and then further processed to show the data on the PC screen both in degrees Fahrenheit and Celsius. SCHEMATIC

REFERENCES http://www.facstaff.bucknell.edu/mastascu/elessonshtml/Sensors/TempLM35.html

LM

(^1) VS+ VOUT 2 RA0^ BA0 BA BA2 BA BA4 BA BA6 BA

USB-1024LS PC (^) TEMPERATURE IN^ DISPLAY THE C/F

+5V

ECET-

Microcomputer Hardware Design

BLOCK DIAGRAM

TETE

Program for 16F

#include<16f88.h> #device ADC= #fuses INTRC_IO, NOWDT, PUT, NOMCLR, NOBROWNOUT, NOLVP #use delay(clock=4000000)

void readValue(void); void main(void) { set_tris_a(0xFF); //Port A is set as Input Port set_tris_b(0x00); //Port b is set as Output Port

TEMPERAT-

URE

SENSOR

16F88 USB-1024LS

PC

Display the temperatu re in C/F