In this tutorial, we will exceed our knowledge of how to interface microcontroller with seven segment through BCD to Seven Segment decoder
Code:
void main() {
TRISB = 0 ; PORTB = 0 ;
while(1)
{
Delay_ms(500) ;
if(PORTB == 9) PORTB = 0 ;
else PORTB ++ ;
}
}
No comments:
Post a Comment