Files

copied
Last update 5 years 1 month by Anastasia Didan
Files
KitchenTimer.c
KitchenTimer.h
Timer.DSN
Timer.pcb
Timer.sch
KitchenTimer.c
#include "KitchenTimer.h" int main(void){ DDRA = 0xFF;// DDRB = 0x0F;// (0..3) DDRD = 0x00; PORTD = 0x0C; // DDRC = 0x01;//. //TimerCounter0 TCCR0 = C0; TCNT0 = T0; TIMSK |= (1 << TOIE0); //INT1 , INT0 GICR |= (1 << INT1)|(1 <<INT0); MCUCR = (1 << ISC11)|(0 << ISC10)|(1 << ISC01)|(0 << ISC00);// EEARH = 0x00; DisplayTime(); sei(); while(1){ sei(); EventsInd(); cli(); } return 0; }
Report a bug