Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- #define F_CPU 7372800UL
- */
- #include <avr/io.h>
- int main(void){
- DDRD = _BV(3);
- TCCR1A = _BV(COM1A0);
- TCCR1B = _BV(WGM12) | _BV(CS11) | _BV(CS10); // bitan je redosljed pisanja pratis kako pise u datasheetu
- OCR1A = 28799; // 7372800 / (2*2*64) - 1
- while(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement