Advertisement
dzieciol

zadanie

Nov 24th, 2017
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include<avr/io.h>
  2. void function opuzn(int czas){
  3.  
  4.  
  5. }
  6.  
  7. int main(void){
  8.     TCCR0 |= (1<<CS00) | (1<< CS01);
  9.     DDRA = 0xFF;
  10.  
  11.      while (1){
  12.      PORTA = 0x00;
  13.  
  14.         if(TIFR & (1<<TOV0)){
  15.  
  16.             TIFR |= (1<<TOV0);
  17.             TCNT0 = 205;
  18.             PORTA = 0xFF;
  19.             }
  20.            
  21.         }
  22.  
  23.    
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement