Micro Controller How To Read Data From Input Device

#include"keyscan.h"

#include "checkleap.h"

extern char date;

extern int year;

extern char month;

extern char day_in_month[12];

extern _Bool leap_year;

char day_number;

int ms=0; //initialising variables

char sec=55;

char min=59;

char hr=23;

char Time_inState;

_Bool update;

#pragma interrupt Timer_A0

Do You Want A Fresh Assignment Like This Order Now

void Timer_A0(void)

keyscan();

if(++ms>39)

if(Time_inState--==0) Time_inState=0;

ms=0;

update=1;

if(++sec>59)

sec=0;

if(++min>59)

min=0;

if(++hr>23)

hr=0;

if(++day_number>6) day_number=0;

date++;

if(checkleap(year))

day_in_month[1]=29;

else

day_in_month[1]=28;

if(date>day_in_month[month-1])

date=1;

month++;

if(month>12)

month=1;

year++;

Micro Controller How To Read Data From Input Device | Online Tutoring | Sample Homework

citation generator
citaion generator
make money online