PWM FLOWCODE 6.1 AVR DISPLAY ERROR
Posted: Sat Nov 15, 2014 12:53 am
hi,
display error PWM Avr ATMEGA 324P: 20 000 000 Hz clk/8 period register n=255
You forgot to divide by 2 the frequency
reading the file avr_cal_pwm.c, you choose the mode:
Phase and Frequency Correct PWM Mode
fOCnxPFCPWM = fclk_I/O/(2 ⋅ N ⋅ TOP)
F = 4.88 kHz
Period = 204.8 microseconds
can you change the display,the macro works very well.
actual measurement f = 4.88 kHz :
http://tsin.langevin-la-seyne.fr/SIN/attelle.html
thank you
BRUNO
display error PWM Avr ATMEGA 324P: 20 000 000 Hz clk/8 period register n=255
You forgot to divide by 2 the frequency
reading the file avr_cal_pwm.c, you choose the mode:
Phase and Frequency Correct PWM Mode
fOCnxPFCPWM = fclk_I/O/(2 ⋅ N ⋅ TOP)
F = 4.88 kHz
Period = 204.8 microseconds
can you change the display,the macro works very well.
actual measurement f = 4.88 kHz :
http://tsin.langevin-la-seyne.fr/SIN/attelle.html
thank you
BRUNO