Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The following assembly programs should have no errors. Make sure to add a comments with your name and ID at the first line. Also, put
The following assembly programs should have no errors. Make sure to add a comments with your name and ID at the first line. Also, put comments on every line. Moreover, the program should be well aligned with spaces to be readable. Write an Assembly program to use the LCD and keypad. Suppose the following subroutines are already written: InitLCD: initialize the LCD SendCmd: send 8-bit command stored in the accumulator to the LCD SendData: send 8-bit ASCII code stored in the accumulator to the LCD ReadKey: wait for a key to be pressed on the keypad and return its ASCII code in the accumulator Delay: wait 5 seconds Your task is to write the main program that will print on the first line of the LCD the message: "Welcome to CPE363", then wait for a key to be pressed on the keypad. If the key pressed is '#' or '*', display on the second line "Hope to enjoy it". Then, wait 5 seconds and repeat the first message and so on. The complete string should be displayed all at once (do not display one char at a time on LCD). Suppose that the two messages are already defined on ROM with labels MSG1 and MSG2. The following assembly programs should have no errors. Make sure to add a comments with your name and ID at the first line. Also, put comments on every line. Moreover, the program should be well aligned with spaces to be readable. Write an Assembly program to use the LCD and keypad. Suppose the following subroutines are already written: InitLCD: initialize the LCD SendCmd: send 8-bit command stored in the accumulator to the LCD SendData: send 8-bit ASCII code stored in the accumulator to the LCD ReadKey: wait for a key to be pressed on the keypad and return its ASCII code in the accumulator Delay: wait 5 seconds Your task is to write the main program that will print on the first line of the LCD the message: "Welcome to CPE363", then wait for a key to be pressed on the keypad. If the key pressed is '#' or '*', display on the second line "Hope to enjoy it". Then, wait 5 seconds and repeat the first message and so on. The complete string should be displayed all at once (do not display one char at a time on LCD). Suppose that the two messages are already defined on ROM with labels MSG1 and MSG2
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