One wire bus (DS1820) Control For Basic PRO Compiler
Include “modedefs.bas” @ Device PIC16F877,XT_OSC,WDT_off,PWRT_off,PROTECT_off ,BOD_Off define adc_bits 8 define osc 4 DEFINE LCD_DREG PORTD DEFINE LCD_DBIT 4 DEFINE LCD_RSREG PORTD DEFINE LCD_RSBIT 1 DEFINE LCD_EREG PORTD DEFINE LCD_EBIT 0 low portD.2 trisa = $ff trisb = $00 TRISD = $00 adcon1 = 7 temperature VAR WORD count_remain VAR BYTE count_per_c VAR BYTE sV var […]
One wire bus (DS1820) Control For Basic PRO Compiler Read More Β»