PWM ChangePeriod Macro not working PIC18F14K50
Posted: Mon Jul 02, 2012 5:48 am
Hello,
Can someone advise me as to what I am doing incorrect in the attached Flowcode 5.2 code. The objective is to start the single PWM of the PIC18F14K50 at one PWM period, halt the PWM disable it, change the PWM period to a different value and restart the PWM.
The only PWM period setting that seems to take in Flowcode are those set using the Ext Properties of the PWM Panel, using the ChangePeriod() macro does not seem to work.
Also the displayed values for the PWM Period both in the Component Properties and Simulation display do show the same values and both values shown appear to not match the actual PWM period.
Thanks in advance,
Dave
Can someone advise me as to what I am doing incorrect in the attached Flowcode 5.2 code. The objective is to start the single PWM of the PIC18F14K50 at one PWM period, halt the PWM disable it, change the PWM period to a different value and restart the PWM.
The only PWM period setting that seems to take in Flowcode are those set using the Ext Properties of the PWM Panel, using the ChangePeriod() macro does not seem to work.
Also the displayed values for the PWM Period both in the Component Properties and Simulation display do show the same values and both values shown appear to not match the actual PWM period.
Thanks in advance,
Dave