Hi
I can't change the output PWM frequency using ATmega and Flowcode V5 . It is stuck on 31.25 Khz .
How can I solve it ?
Thank you
Atmega PWM not working in Flow V5
Moderator: Benj
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Atmega PWM not working in Flow V5
Hi simisv,
Can you post your flowchart please.
Are you referring to both simulation and hardware?
What version of flowcode have you got (Help menu About Flowcode)?
Latest V5 is 5.5.2.1
Martin
Can you post your flowchart please.
Are you referring to both simulation and hardware?
What version of flowcode have you got (Help menu About Flowcode)?
Latest V5 is 5.5.2.1
Martin
Martin
-
- Flowcode v5 User
- Posts: 24
- Joined: Wed Jun 06, 2012 11:52 am
- Location: London
- Has thanked: 5 times
- Contact:
Re: Atmega PWM not working in Flow V5
Hi
Thank you for reply , I'm using Flowcode V5.5.2.1 . Tested with multimeter and oscilloscope and the output frequency is always unchanged . Simulation is ok.
Thank you for reply , I'm using Flowcode V5.5.2.1 . Tested with multimeter and oscilloscope and the output frequency is always unchanged . Simulation is ok.
- Attachments
-
- test pwm.fcf_avr
- flowcode file
- (6 KiB) Downloaded 333 times
-
- sample.png
- oscillocope sample
- (42.99 KiB) Downloaded 1893 times
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Atmega PWM not working in Flow V5
Hi
I'm getting the same results as you on both FC V5 and FC V6 using Atmega324P
If prescaler is changed then frequency does change, but altering period as you have spotted does not appear to have any affects on the frequency.
Unfortunately i'm not that familiar with AVR to help you get it going, but since both V5 and V6 is affected then I would of thought Martix would be keen on sorting this out.
Martin
I'm getting the same results as you on both FC V5 and FC V6 using Atmega324P
If prescaler is changed then frequency does change, but altering period as you have spotted does not appear to have any affects on the frequency.
Unfortunately i'm not that familiar with AVR to help you get it going, but since both V5 and V6 is affected then I would of thought Martix would be keen on sorting this out.
Martin
Martin
-
- Flowcode v5 User
- Posts: 24
- Joined: Wed Jun 06, 2012 11:52 am
- Location: London
- Has thanked: 5 times
- Contact:
Re: Atmega PWM not working in Flow V5
Unfortunately the "period register" does not affect the frequency . I need help from Matrix to solve this issue .
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Atmega PWM not working in Flow V5
I have reported this as a bug for anyone following this thread.
Martin
Martin
Martin