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
PWM FLOWCODE 6.1 AVR DISPLAY ERROR
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: PWM FLOWCODE 6.1 AVR DISPLAY ERROR
Hello Bruno,
Thanks for the bug spot, I have had a go at fixing the bug and it seems to be working correctly.
The file needs to be placed here before starting Flowcode "C:\Program Files (x86)\Flowcode 6\components".
Let me know how you get on.
Thanks for the bug spot, I have had a go at fixing the bug and it seems to be working correctly.
The file needs to be placed here before starting Flowcode "C:\Program Files (x86)\Flowcode 6\components".
Let me know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel