Embedded system

0 comments

Check the uploded files first before texting me. If you can do it and submit it before the deadline then text to. Also .s and .c file provided as a compressed file.

 

Lab Assignment:

Create an assembly language function that displays the binary and hexadecimal representations of a 16 bit value (passed in as a parameter) on our LCD screen. Use the provided .c main file and assembly language subroutine example as a basis for your code.

The main_Lab2_ s15.c file provided initializes the board, displays a header message, and then displays a “Ready:” prompt and waits for a button press. When the button is pressed, the code reads an internal system timer, yielding a 16 bit number to be converted to hex and binary. This number is then displayed in decimal on the first line of the display, and the assembly language functions are called, with the number passed in as a parameter.

The assembly language functions in the demo code just calls the LCD_write function to demonstrate how to write to the LCD display. 

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}