Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions