One wire bus (DS1820) Control For CSS Compiler




 
#include <16F877A.h>
#device adc=8
#FUSES NOWDT,XT                    //No Watch Dog Timer
#use delay(clock=4000000)
#include <Shift_595_C.c>     //  25.5 C 0.5 to step 
#include <read_temp.c>
void main(){
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
set_tris_a(0xff);
set_tris_b(0x00);
value = 0;
display();
delay_ms(100);   
while(true){   
read_ds1820();
value = temp;  
hex_bcd(value*10);   
sent_data();
delay_ms(100);
}
}




Current Project / Post can also be found using:

  • Microcontroller Tutorial PDF
  • 1 wire interface with PIC16F877a in CCS C
  • ds18b20 16f877 ccs c code
READ  Forverse - Reverse Control For CSS Compiler

Leave a Comment

*
= 3 + 3

Read previous post:
bike_light
Bicycle Persistence of Vision Light Display using PIC16F84

In February of 2007 I spent a little while prototyping a board that turns any bicycle wheel into a moving...

Close
Scroll to top