Setting High Speed PWM on ATTiny85
Posted: 2017-06-26 09:11
I am having trouble setting up high speed pwm on my Attiny85. I need to use the PCK, at a speed of 400kHz. I believe that I have followed the data sheet correctly, but for some reason, the timer interrupt flags are not working.
If I program the device, the output of the corresponding pin is a constant 5V.
If I comment out the PCK setup and use the system clock instead, the flags are correctly set and PWM works fine. The code is posted. I apologize for the formatting and comments. Any thoughts as to why the flags aren't setting and the PWM isn't working?
If I program the device, the output of the corresponding pin is a constant 5V.
If I comment out the PCK setup and use the system clock instead, the flags are correctly set and PWM works fine. The code is posted. I apologize for the formatting and comments. Any thoughts as to why the flags aren't setting and the PWM isn't working?