Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define F_CPU 8000000UL
- #include
- #include
- #include
- int main(void)
- {
- DDRD=0xFF;
- TCCR1A=0;
- TCCR1A=0x82;
- TCCR1B=0x19;
- OCR1A=250;// around 50% duty cycle
- ICR1=499;// for 16KHz output frequency
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement