Answer to Question #154729 in C for Khan mohammmad

Question #154729

My id is 193400005

Write C code for Atmega32 programming for the following scenario:

Create a LED pattern with 8 LEDs which will represent the BCD value of the last two digits of your ID. (Please notice this carefully).

For example, your ID is 201400076. Then the pattern will be 0111 0110.

The pattern will then start to loop in the following order.

Loop:

{

First 0111 will be on and 0110 will be off for 2.5 seconds.

Next, 0111 will be off and 0110 will be on for 2.5 seconds.

Next all 0111 and 0110 will be on for 2.5 seconds.

Next all will be off for 2.5 seconds.

}


---------------------------------------------------------------------------------------------------------------------------

2. Write C code for Atmega32 programming for the following scenario:

Divide the last two digits of your ID 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 the last digit of your ID.


1
Expert's answer
2021-01-10T18:38:28-0500
Dear Khan mohammmad, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS