/* * PulseGen.c * 21KHz * Created: 02.05.2020 19:47:32 * Author : Osman Mazinov */ #ifndef F_CPU #define F_CPU 9600000L #endif #include #include #include #define PULSE PINB4 void mcu_init(void); ISR(TIM0_OVF_vect) { // Predivider 256 // 9,6 / 256 / 2000 = 19 // 256 - 19 = 238 = EE TCNT0 = 0xE6; PORTB ^= (1<