Write C code for Atmega32 programming for the following scenario:
Divide the last two digits of your ID with 4 and find the remainder. For example, if your ID is 45
then the remainder is 45%4=1. Now, connect PORTB with 8 LEDs according to the
value of remainder: (last two digit of my id is 58)
Now, switch on the LEDs to show the BCD value of last two digits of your ID.
Comments
Leave a comment