Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need to create the functions for fourBitCommandwithDelay, eightbitCommandwithDelay, writeString,writeCharacter and moveCursor. Don't worry about using the delay function, I already have one implemented in microseconds.

Need to create the functions for fourBitCommandwithDelay, eightbitCommandwithDelay, writeString,writeCharacter and moveCursor. Don't worry about using the delay function, I already have one implemented in microseconds.

The description is written above the function. The LCD is DM16116H-L.

image text in transcribed

image text in transcribed

/1. Assert bits to pins connected to DB[7:41 on the LCD screen a data is an unsigned char which has 8 bits. Therefore, you need assign the bottom 4 bits of "data" to the appropriate bits in PORTA 2. This is a "command" signal, meaning RS should be Low 3. Assert high on enable pin, delay, and asset Low on enable pin 4. delay the provided number in MICROseconds void fourbitcommandwithDelay(unsigned char data, unsigned int delay) Similar to fourBitCommandwithDelay except that now all eight bits of command jare sent 1. Assert bits to pins connected to DB[7:4] on the LCD screen o. unlike foursitcommandwithDelay, you need to send the TOP four bits of command" first. These should be assigned to appropriate bits in PORTA 2. This is a command signal, meaning RS should be Low 3. Assert high on enable pin, delay, and osset Low on enable pin 4. Now set the Lower four bits of command to appropriate bits in PORTA 5. Assert high on enable pin, delay, and osset Low on enabLe pin 6. delay the provided number in MICROseconds void eightBitCommandwithDelay (unsigned char command, unsigned int delay)( Similar to eightBitCommandivi thDelay except that now RS should be high 1. Assert bits to pins connected to DBI7:41 on the LCD screen 2. This is a "data" signal, meaning RS should be high 3. Assert high on enable pin, delay, and asset Low on enable pin 4. Now set the Lower four bits of character to appropriate bits in PORTA 5. Assert high on enable pin, delay, and asset Low on enable pin 6 delay is always 46 MICROseconds for a character write void writeCharacter(unsigned char character) /1. Assert bits to pins connected to DB[7:41 on the LCD screen a data is an unsigned char which has 8 bits. Therefore, you need assign the bottom 4 bits of "data" to the appropriate bits in PORTA 2. This is a "command" signal, meaning RS should be Low 3. Assert high on enable pin, delay, and asset Low on enable pin 4. delay the provided number in MICROseconds void fourbitcommandwithDelay(unsigned char data, unsigned int delay) Similar to fourBitCommandwithDelay except that now all eight bits of command jare sent 1. Assert bits to pins connected to DB[7:4] on the LCD screen o. unlike foursitcommandwithDelay, you need to send the TOP four bits of command" first. These should be assigned to appropriate bits in PORTA 2. This is a command signal, meaning RS should be Low 3. Assert high on enable pin, delay, and osset Low on enable pin 4. Now set the Lower four bits of command to appropriate bits in PORTA 5. Assert high on enable pin, delay, and osset Low on enabLe pin 6. delay the provided number in MICROseconds void eightBitCommandwithDelay (unsigned char command, unsigned int delay)( Similar to eightBitCommandivi thDelay except that now RS should be high 1. Assert bits to pins connected to DBI7:41 on the LCD screen 2. This is a "data" signal, meaning RS should be high 3. Assert high on enable pin, delay, and asset Low on enable pin 4. Now set the Lower four bits of character to appropriate bits in PORTA 5. Assert high on enable pin, delay, and asset Low on enable pin 6 delay is always 46 MICROseconds for a character write void writeCharacter(unsigned char character)

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

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago