On 3 May 2016 at 15:30, adit bhargava <adit_bh...@yahoo.com> wrote: > Yes Andy, I also checked the documentation of pwmgen is wrong.pwm-freq is a > hal pin > I did these steps as suggested by you but the output on CRO is not as it > should be according to frequency of 150 Hz and duty cycle of 29.9% (pulses of > T-on = 2ms and T-off = 4.7 ms)
I assume that you addf-ed the tristate float to a thread? (If you hadn't then I think that the output would be zero). could you try disabling and the re-enabling the pwmgen, to see if that is necessary to force a frequency recalc (the code looks to already do that, though) -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1916 ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users