Write C code for Atmega32 programming for the following scenario:
Divide 11 with 9 and find the remainder.
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 is 11.
Comments
Leave a comment