Code:
void main() {
unsigned char tensCounter , onesCounter ;
unsigned int i ;
TRISB = 0 ; PORTB = 0 ;
while(1)
{
for(i = 0 ; i <= 99 ; i++)
{
PORTB = (i % 10) + (i / 10) * 16 ;
Delay_ms(500) ;
}
}
}
Microcontroller Circuits, Schematics ........... mikroC , Proton , ISIS Proteus ........... C Codes , Basic Codes ........... Electronics , Electrical ........... All is Free for You!
void main() {
unsigned char tensCounter , onesCounter ;
unsigned int i ;
TRISB = 0 ; PORTB = 0 ;
while(1)
{
for(i = 0 ; i <= 99 ; i++)
{
PORTB = (i % 10) + (i / 10) * 16 ;
Delay_ms(500) ;
}
}
}
No comments:
Post a Comment