Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<avr/io.h>
- void function opuzn(int czas){
- }
- int main(void){
- TCCR0 |= (1<<CS00) | (1<< CS01);
- DDRA = 0xFF;
- while (1){
- PORTA = 0x00;
- if(TIFR & (1<<TOV0)){
- TIFR |= (1<<TOV0);
- TCNT0 = 205;
- PORTA = 0xFF;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement