c program language Homework
EECE237 Lab Work #4 (Due on 4/10/2016 11:59pm)
Spring 2016
The task is to write a C program that lights up the LCD panel and the LED's of the Discovery kit together like an advertisement board. The message on LCD panel is, "Welcome to Chico!". The algorithm of the main program is as follows. (Total 10 points)
1) Initialize I2C2 peripheral block
2) Initialize GPIOE and GPIOA peripheral blocks
3) Wait until the push_button is pressed.
4) Light up all LED's
5) Clear the message on LCD
6) Pause for 1 second.
7) Turn LED's off.
8) Display the message on LCD
9) Pause for 1 second.
10)Go back to Step 4).
Study LEC_in_C.c and LCD_in_C.c carefully. Combine two programs and modify to complete the program. Proceed your work in the following order.
1. Run LCD_in_C.c first on your Discovery kit, and test if it work all right. Then run LED_in_C.c separately.
2. The subroutine for pausing for 1 second is provided in the attachment. Adjust the time span to make it come close to 1 second.
3. Submit your finished program to BBLearner. Make sure that the first line of your program has your name and section number clearly. The work is due at 11:59pm on 4/10/2016 (Sun).
Attachment :
void pause_1second (){
uint32_t i, time;
time=0x020000;
for (i=0; i<time; i++);
}
End.
10 years ago
15
- katetutor
- Training & Development | MGT430
- follow up week 7 forum
- double integrals over general regions Calculus 3.
- 700 words
- Week 5 respond to 2 people for DQ 1 (50 words or more per a person)
- assignment biology
- discussion reply minimum 50 words, in own words please
- Should a price ceiling (limit) be imposed on gasoline prices in the U.S. market? Why or why not?
- Presidential PR Campaign