Page 1 of 1

Atmega PWM not working in Flow V5

Posted: Sun Mar 22, 2015 12:03 am
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

Re: Atmega PWM not working in Flow V5

Posted: Sun Mar 22, 2015 2:40 am
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

Re: Atmega PWM not working in Flow V5

Posted: Sun Mar 22, 2015 10:18 am
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.

Re: Atmega PWM not working in Flow V5

Posted: Sun Mar 22, 2015 2:08 pm
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

Re: Atmega PWM not working in Flow V5

Posted: Sun Mar 22, 2015 2:37 pm
by simisv
Unfortunately the "period register" does not affect the frequency . I need help from Matrix to solve this issue .

Re: Atmega PWM not working in Flow V5

Posted: Mon Mar 23, 2015 1:33 pm
by medelec35
I have reported this as a bug for anyone following this thread.

Martin