Micro Controller Programming Assignment Help

Programming Assignment Help Order Now

Micro Controller Programming Assignment Help

time[0]=hr/10+48;

time[1]=hr%10+48;

time[3]=min/10+48;

time[4]=min%10+48;

time[6]=day[day_number][0];

time[7]=day[day_number][1];

line2[0]=date/10+48;

line2[1]=date%10+48;

line2[3]=month/10+48;

line2[4]=month%10+48;

line2[6]=((year/1000)/100)/10+48;

line2[7]=((year%1000)%100)%10+48;

LCD_write(CTRL_WR,LCD_HOME_L1);

DisplayString(LCD_LINE1,time);

LCD_write(CTRL_WR,LCD_HOME_L2);

DisplayString(LCD_LINE2,line2);

old_value=sec;

//}

switch(getcommand())

{

case 'A':

state=1;

LCD_write(CTRL_WR,LCD_HOME_L2);

DisplayString(LCD_LINE2,"SET HOUR");

Time_inState=5;

break;

case 'B':

state=3;

Time_inState=5;

break;

}

break;

case 1:

LCD_write(CTRL_WR,LCD_HOME_L1);

DisplayString(LCD_LINE1,time);

if( Time_inState==0)

state=0;

switch(getcommand())

{

case 'A':

state=2;

Time_inState=5;

break;

case 'B':

state=0;

LCD_write(CTRL_WR,LCD_HOME_L2);

break;

case 'C':

if(++hr>23) hr=0;

time[0]=hr/10+48;

time[1]=hr%10+48;

Time_inState=5;

break;

}

break;

case 2:

LCD_write(CTRL_WR,LCD_HOME_L1);

DisplayString(LCD_LINE1,time);

LCD_write(CTRL_WR,LCD_HOME_L2);

DisplayString(LCD_LINE2,"SET MIN ");

if( Time_inState==0)

state=0;

switch(getcommand())

{

Assignment Help | Micro Controller Programming Assignment Help | Online Tutoring | Sample Homework