Seven segment display 1 digit For Basic PRO Compiler




@ device pic16f877 
define osc 4   'sevent segment common Anode
define adc_bits 8
main:
adcon1 = 7
trisa = $ff
trisd = $00
disp   var     portd
num    var     byte
num =0 
while(1)  
for num = 0 to 9  
lookup num,[$40,$79,$24,$30,$19,$12,$02,$78,$00,$10],disp 
pause 500 
next num
wend
end




READ  Digital Voltmeter Using PIC Microcontroller 16F877A and Seven Segments Display (0-30V)

Leave a Comment

*
= 3 + 2

Read previous post:
FPGA motor-control design kit

Microsemi is selling its SmartFusion2 SoC FPGA dual-axis motor control kit with a modular motor control IP suite and reference...

Close
Scroll to top