Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question #2. For the code below * Compiler directives #define ASCII00x30 #define ASCII 9 0x39 idefine ALL _GOOD I - / Prototypes for functions available

image text in transcribed

image text in transcribed

image text in transcribed

Question #2. For the code below * Compiler directives #define ASCII00x30 #define ASCII 9 0x39 idefine ALL _GOOD I - / Prototypes for functions available / void setupKeypadO:Keypad initialization void inittCDO:Setup code for LCD unsigned char my GetKeysO:/Reads from keypad, returns // ASCII code if key is pressed or 0 if no key pressed void swDelay(unsigned int max ent); / SW delay loop void LEDOmO: sets up LED port and turns LEDs off void LEDdisplayHex(unsigned char num)://displays hex code of num on LEDs void clearLCD(void): Clears LCD void writeWord(const charword); // displays words up to 7 chars on MSP430 LC void buzzerOnO: void buzzcrOftO int newThing(int num1, int num2); // prototype for new function int main0 int newNum; int lastSave -0 int myNum; char inKey char led; LEDOmO; setupKeypadO: initLCDO: inkey 0 while (ALL GOOD) if ((inKey >_ ASCI 1.0) && (inkey 0) lastSave newNum; clearLCDO: write Word(&inKey) swDelay

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 Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

How does one calculate the break-even point in units?

Answered: 1 week ago

Question

=+2. Why does the brand want to advertise?

Answered: 1 week ago