Question: The memory-mapped register LCDM1 is 8-bit and controls a 7-segment digit on the LCD screen. Its mapping is shown below. A segment is turned on

The memory-mapped register LCDM1 is 8-bit and controls a 7-segment digit on the LCD screen. Its mapping is shown below. A segment is turned on by writing 1 to its bit. The array LCDHexChar[] stores the shapes of the hex digits (shape of 0 at index 0, , shape of F at index 15). Show the values of LCDHexChar in binary and in hexadecimal. The first one is shown as an example

The memory-mapped register LCDM1 is 8-bit and controls a 7-segment digit on

Part a) The memory-mapped register LCDMl is 8-bit and controls a 7-segment digit on the LCD screen. Its mapping is shown below. A segment is turned on by writing 1 to its bit. The array LCDHexCharll stores the shapes of the hex digits (shape of 0 at index 0, ..., shape of F at index 15). Show the values of LCDHexChar in binary and in hexadecimal. The first one is shown as an example F1 unsigned char LCDHexChar [16] [ index 0: index 1: index 2: 0x3F index 15: Part b) The LCD screen has eight 7-segment digits that are controlled by the registers LCDMI to LCDM8, all having the same format. LCDMI controls the rightmost digit and LCDM8 controls the leftmost digit. The registers LCDMI-LCDM8 are located at adjacent memory addresses with LCDMI having the lowest address. They can be treated as an array. Write a piece of code that turns on all the segments of the seven digits. Start by declaring a pointer so that the registers can be treated as an array. unsigned char * LCDptr // Declaring a pointer; / Point it to the right address

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!