This should be a simple formula but I can not figure it out.
I have a 16mHZ AVR Chip.
I need to run a PWM signal to be 24kHZ..
what is the formula to decide what is the best Prescaler.
I am using a 16bit timer.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Read the datasheet (here for example from ATmega328P datasheet, 16-bit Timer/Counter1 ) to get the formula: