Question: Connect a 7 - segment - display with your ATmega 3 2 8 p . Establish connection between your ATmega 3 2 8 p and

Connect a 7-segment-display with your
ATmega328p. Establish connection between your ATmega328p and PC through UART-to-TTL
converter. Write a program in C such that; Initially, ZERO should be displayed on the 7-segment and the program should wait for
the next instruction from PC.
If a 'u' is sent from PC to ATmega328p, the next digit on seven segment should be displayed in ascending order.
Ascending order (0,1,2,3,...,8,9,0,1,...)
If a 'd' is sent from PC to ATmega328p, the next digit on seven segment should be displayed in descending order.
Descending order (9,8,7,...,2,1,0,9,...)
If any character other than 'u' or 'd' is sent, do nothing with 7-segment-display and send
"ERR" back to PC in order to notify error
Code should be in Atmel Studio 7.0 using ATmega328P

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!