Seven segment display 1 digit For Basic PRO Compiler

@ device pic16f877 
define osc 4   'sevent segment common Anode
define adc_bits 8
adcon1 = 7
trisa = $ff
trisd = $00
 disp   var     portd
 num    var     byte
 num =0 

    for num = 0 to 9  
     lookup num,[$40,$79,$24,$30,$19,$12,$02,$78,$00,$10],disp 
     pause 500 
    next num

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us: