Question: b ) Nine packed B C D numbers are stored in an array. Write an efficient C program for AVR ATmega 3 2 to display

b) Nine packed BCD numbers are stored in an array. Write an efficient C program for AVR ATmega32 to display the BCD numbers on an LCD screen connected to port B.[8 points]
Algorithm:
Read a BCD number from array.
Unpack the BCD numbers and convert each BCD digit to ASCII.
Send each converted ASCII digit to port B connected to LCD screen.
Print a space character by sending $20 to port B.
Repeat steps 1,2,3, and 4 until all BCD numbers in the array are taken care of.
#include {$12,$23,$34,$45,$56,$67,$78,$89,$90}
 b) Nine packed BCD numbers are stored in an array. Write

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 Databases Questions!