• 0
djcheezy

uC32 Output Compare Timers

Question

Hi guys,

I'll looking to use 3 of the 5 compare pwm outputs available on the uC32.  I would like to use them to generate 3 square waves all around 830Hz.  They'll all be fixed frequency from the start of the program.  I've seen the sample code in the datasheet, but I think there must be easier higher level functions I can call.  I would like to send the output on the OCx pins.

Can anyone point me in the direction of some resources for this?  I can't seem to get anything out of the OC pins.

Thanks,

djcheezy

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi djcheezy,

I did some searching myself and haven't found any nice libraries or other higher level code to effectively use the output compare pins... I remember seeing some talk about using the pins on the chipKIT forum from what I recall, but none of the code presented was very user friendly (at least in my limited experience).

Let me know if you have any more questions.

Thanks,
JColvin

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.