

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


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
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
Display the temperatu re in C/F