basic pro

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 Β»

Seven segment display 4 digit for shift 595 For Basic PRO Compiler

@ device pic16f877 define osc 4 define adc_bits 8 Include “MODEDEFS.bas” DEFINE ADC_SAMPLEUS 100 DEFINE SHIFT_PAUSEUS 100 ADCON1 = 7 TRISA =$ff trisb =$00 ‘=======output=======’ dat vAR portb.0 clk vAR portb.1 latch vAR portb.2 relay VAR portb.3 ‘======input=========’ enter vAR porta.0 chg VAR porta.1 hour var byte minute var byte second var byte prsc1 var

Seven segment display 4 digit for shift 595 For Basic PRO Compiler Read More Β»