Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Microcontroller using C program * Write a C program that does the following on the DEO-CV Computer: 1. Read the values set in the on-board
Microcontroller using C program
* Write a C program that does the following on the DEO-CV Computer: 1. Read the values set in the on-board switches, SW9-SWO Example: Value = "Pt1);//Ptri is a pointer that contains the address of Sw9-SWO 2. Display (write) the SW switch values on the green LEDs, LEDG9-LEDGO 2. Display the current date on HEX displays HEX3, HEX2, HEX1, HEXO This is to be done in two passes: Pass 1: Output the month day year 0219 Pass2: Output the Lab 2020 3. The program should loop continually Below is a possible template int main(void) /Declare volatile pointers to 1/0 registers (volatile disables compiler optimizations) / green LEDS HEXS_HEXO SW slider switches patterns for HEX displays while(1) Int delay_count: for (delay_count = 1000000; delay_count != 0; delay_count--> /* loop produces a time delay before the next line-of-code is executed. Adjust for desired delay */ * Write a C program that does the following on the DEO-CV Computer: 1. Read the values set in the on-board switches, SW9-SWO Example: Value = "Pt1);//Ptri is a pointer that contains the address of Sw9-SWO 2. Display (write) the SW switch values on the green LEDs, LEDG9-LEDGO 2. Display the current date on HEX displays HEX3, HEX2, HEX1, HEXO This is to be done in two passes: Pass 1: Output the month day year 0219 Pass2: Output the Lab 2020 3. The program should loop continually Below is a possible template int main(void) /Declare volatile pointers to 1/0 registers (volatile disables compiler optimizations) / green LEDS HEXS_HEXO SW slider switches patterns for HEX displays while(1) Int delay_count: for (delay_count = 1000000; delay_count != 0; delay_count--> /* loop produces a time delay before the next line-of-code is executed. Adjust for desired delay */Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started