Simple PWM Pulse Generator - Any Ideas ???
Posted: Sun Sep 02, 2012 7:56 pm
Hello,
Im trying to create a simple flowcode program to generate a square wave with the following characteristics:
Frequency = 988Hz
Duty Cycle = 4.47% ( which is an 85us on time)
I am using an F628A with the PWM macro.
I have tried ( multiple multiple times) changing the duty cycle and change period macros and cannot figure out how to set the macro values to get the pulse as described above.
Also. measuring CCCP1 output on my oscilloscope does not match what the flowcode graphic is displaying in the panel
Any help would be GREATLY appreciated
Thanks !!
Im trying to create a simple flowcode program to generate a square wave with the following characteristics:
Frequency = 988Hz
Duty Cycle = 4.47% ( which is an 85us on time)
I am using an F628A with the PWM macro.
I have tried ( multiple multiple times) changing the duty cycle and change period macros and cannot figure out how to set the macro values to get the pulse as described above.
Also. measuring CCCP1 output on my oscilloscope does not match what the flowcode graphic is displaying in the panel
Any help would be GREATLY appreciated
Thanks !!