Write C code for Atmega32 programming for the following scenario:
Divide the last two digits of your ID with 9 and find the remainder. My id is 193400005
If the remainder is even, then use a 7-segment Commont Anode Display. If the remainder is odd, then use a 7-segment Common Cathode Display.
Now connect PORTC pin no. 0 to 6 with the display and display the last digit of your ID.
Comments
Leave a comment