Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions