dsPIC 33fj16gs402 PWM call component Macro
Posted: Tue May 07, 2013 6:43 pm
Hello All,
I didn't see a specific forum for dsPICs so I posted here, my apologies if it is out of place.
I have a 33fj16gs402 and the most recent version of dsPIC. I would like to setup a pwm signal at 10kHz using the built in pwm modules of the device. This is just to get familiar with the device and flowcode dsPIC.
I would like to use the internal oscillator.
I feel like there is a need to provide additional constructs via the code blocks to actually get it to work.
I have tried the call component macro to set the duty cycle and to enable it but no output on what I believe is pwm1. It does work in flowcode simulation.
I have an led blinking at .5hz so that I know that the device is running, but as stated I have no pwm signal.
The forum is very large and trying to walk through it all looking for previous questions on similar topics is rather arduous.
So my questions are does anyone have a related example that they could share to get me up and running? An example related to my unit with any pwm signal at any frequency and duty cycle would be helpful.
and/or
Does anyone have pointers to some c code for a code block to setup a test.
Thanks for any help,
and
Regards,
Reuben Garcia
I didn't see a specific forum for dsPICs so I posted here, my apologies if it is out of place.
I have a 33fj16gs402 and the most recent version of dsPIC. I would like to setup a pwm signal at 10kHz using the built in pwm modules of the device. This is just to get familiar with the device and flowcode dsPIC.
I would like to use the internal oscillator.
I feel like there is a need to provide additional constructs via the code blocks to actually get it to work.
I have tried the call component macro to set the duty cycle and to enable it but no output on what I believe is pwm1. It does work in flowcode simulation.
I have an led blinking at .5hz so that I know that the device is running, but as stated I have no pwm signal.
The forum is very large and trying to walk through it all looking for previous questions on similar topics is rather arduous.
So my questions are does anyone have a related example that they could share to get me up and running? An example related to my unit with any pwm signal at any frequency and duty cycle would be helpful.
and/or
Does anyone have pointers to some c code for a code block to setup a test.
Thanks for any help,
and
Regards,
Reuben Garcia