Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <avr/io.h>
- #include <avr/interrupt.h>
- #include <util/delay.h>
- void init(void);
- unsigned int szamlalo=0;
- void kiir(void);
- int main()
- {
- init();
- while(1)
- {
- TCCR0=6;
- TIMSK=1;
- sei();
- }
- return 0;
- }
- void init(void)
- {
- DDRD=DDRB=0xF0;
- PORTD=PORTB=0;
- DDRA=0xFF;
- PORTA =0;
- DDRC=0b11111000;
- PORTC=0;
- }
- ISR(TIMER0_OVF_vect)
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement