Question: Please complete this coding inside 30min. Urgent. No need explanation. Just answer only. I will upvote Question 3 (25 Marks) Figure 5 shows the circuit

 Please complete this coding inside 30min. Urgent. No need explanation. Just

answer only. I will upvote Question 3 (25 Marks) Figure 5 shows

Please complete this coding inside 30min. Urgent. No need explanation. Just answer only. I will upvote

Question 3 (25 Marks) Figure 5 shows the circuit connnetion for ATMega32 interface with LCD and two push button. Write a complete program based on the swith condition as in Figure 6. LCD2 ME TEST 2 ASBA RESET U1 SET RR2 24 88 88888888 M SW1 PCOSCL PCHDA PCVTM POST POSTOSCO 40 SW2 09 01 02 O DO 040 DS O DO oooooooo 88888888 CITOR XTALI XTAL PAIADCE ACE 20 PADIADOR PASADC FUADCA PASIADOS 321 PALACE ADCA 3 PATIADCT POOTOROK PRATI POOD POV/TXD PONTO POINTI POSOCIB POSIOCIA POGROPI PO7100 12 1 POINTS PEMAINILOCO 28415 POSMOS PASO PISCK ATMEGA ARE AVCC Figure 5 No switches pressed - Display "Please press SW" Swl pressed - Display "Selamat Datang" Sw2 pressed - Display "Welcome" Both SW press - Display "Press only 1 SW Figure 6 //Write your program here #include # define F_CPU 1000000UL #include //define RS and E pin 3 marks void LCD_Command (unsigned char command); void LCD_data(char data); int main(void) { { l/configure IO Ports 3 marks int sw; //declare wording 4 marks //set 8-bit data mode, 2 line, 5x7 font //set 8-bit data mode, 2 line, 5x7 font LCD_Command (@x38); delay_ms(5); LCD_command(0x38); _delay_ms(5); LCD_Command(0x38); _delay_ms(5); // set 8-bit data mode, 2 line, 5x7 font //display ON, cursor ON 1 mark //display ON, cursor ON 1 mark //display ON, cursor ON 1 mark 3 marks int sw; 1/declare wording 4 marks 1/set 8-bit data mode, 2 line, 5x7 font LCD_command(0x38); _delay_ms(5); LCD_command (@x38); _delay_ms(5); LCD_command(0x38); _delay_ms(5); //set 8-bit data mode, 2 line, 5x7 font 1/set 8-bit data mode, 2 line, 5x7 font //display ON, cursor ON 1 mark //display on, cursor ON 1 mark //display on, cursor ON 1 mark 8 while (1) { LCD_command(0x80); _delay_ms(5); //position line 1 SW= //monitor switch 2 mark //if..else condition 10 mark [25 Marks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!