Seven segment display 4 digit for shift 595 For CSS Compiler




 
#include <16F877.h>
#device adc=8
#fuses NOWDT,HS, NOPUT, NOPROTECT, BROWNOUT, NOLVP, NOCPD, NOWRT, NODEBUG
#use delay(clock=4000000)
#include "shift_595.c"
void main()
{   
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
setup_psp(PSP_DISABLED);
setup_spi(FALSE);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
set_tris_b(0x00);
while(true){
if(SETPOINT++>9999)SETPOINT=0;
VALUE =SETPOINT;
hex_bcd(VALUE);
sent_data();
delay_ms(50);
}
}




READ  Sound frequency For Basic PRO Compiler

Leave a Comment

*
= 3 + 8

Read previous post:
Seven segment _2digit_anode For CSS Compiler

#include <16F877.h> #device adc=8 #fuses NOWDT,HS, NOPUT, NOPROTECT, BROWNOUT, NOLVP, NOCPD, NOWRT, NODEBUG #use delay(clock=4000000) #define sw_up pin_a0 // SWITCH...

Close
Scroll to top