Atmega PWM not working in Flow V5

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
simisv
Flowcode v5 User
Posts: 24
Joined: Wed Jun 06, 2012 11:52 am
Location: London
Has thanked: 5 times
Contact:

Atmega PWM not working in Flow V5

Post by simisv »

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

medelec35
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

Post by medelec35 »

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
Martin

simisv
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

Post by simisv »

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.
Attachments
test pwm.fcf_avr
flowcode file
(6 KiB) Downloaded 328 times
sample.png
oscillocope sample
(42.99 KiB) Downloaded 1893 times

medelec35
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

Post by medelec35 »

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
Martin

simisv
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

Post by simisv »

Unfortunately the "period register" does not affect the frequency . I need help from Matrix to solve this issue .

medelec35
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

Post by medelec35 »

I have reported this as a bug for anyone following this thread.

Martin
Martin

Post Reply