Question
WRITE A PROGRAM WHICH COMMUNICATES WITH USART TERMIAL OF THE DEVELOPMENT SOFTWARE WITH BAUD RATE OF 56000. YOUR PROGRAM IS SUPPOSED TO ACCEPT SINGLE CHARACTERS
WRITE A PROGRAM WHICH COMMUNICATES WITH USART TERMIAL OF THE DEVELOPMENT SOFTWARE WITH BAUD RATE OF 56000. YOUR PROGRAM IS SUPPOSED TO ACCEPT SINGLE CHARACTERS FROM USART TERMIAL UNTIL @ BUTTON IS PRESSED BUT NO MORE THAN 50 CHARACTERS, SORT THEM IN ASCENDING ORDER BASED ON ASCII VALUES AND RETURN THEM TO USART TERMINAL TO BE DISPLAYED.
THE NUMBER OF CHARACTERS SORTED MUST BE ALSO SENT TO USART TERMINAL AND DISPLAYED AT THE BOTTOM OF THE SORTED LIST.
EACH CHARACTER MUST BE DISPLAYED ON ONE LINE (SENDING CARRIAGE RETURN AND LINE FEED AFTER EVERY CHARCTER CAN DO THIS FOR YOU). YOU CAN USE LIBRARY FUNCTIONS FOR THIS PROJECT.
FIRST SEND A MESSAGE TO USART TERMINAL ASKING TO START SENDING CHARACTERS, THEN SEND A MESSAGE TO DISPLAY THE SORTED CHARACTERS AFTER IT, THEN DIPLAY A MESSAGE WHICH TO DISPLAY THE NUMBER OF CHARACTERS ENTERED. ALSO, AS YOU ENTER THE CHARACTERS THE TOTAL NUMBER OF CHARACTERS ENTERED AFTER EACH KEY STROKE MUST BE DISPLAYED ON THE LEDs ON PORT D. THEN THE LEDs MUST RESET TO ZERO TO BE READY FOR THE NEXT ROUND.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started