Problem with understanding function of PCA!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2006-06-01 4:34 AM
Posted on June 01, 2006 at 13:34
Problem with understanding function of PCA!
Labels:
- Labels:
-
Legacy Products
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 3:09 AM
Posted on May 17, 2011 at 12:09
Hi all!
I am working with the uPSD3312D and i have a problem with understanding the functionality of the PCA Counter. The PWM is working, but what I am wondering is, why the PWM behaves in a different way to the controlling. For example: The CAPCOMH value is 0xFF, then my PWM output is almost zero. The other way round, with a CAPCOMH value of 0x00 the PWM output is full range. I would be more sensful to me, if it would be the other way round. Is there a hidden register, where the PWM polarity can be changed, or do I have to use an inverter at the output? Thanks harryplotter4Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 3:09 AM
Posted on May 17, 2011 at 12:09
That is exactly what you suspected. If you looked at page 128/231 of the uPSd33xx datasheet. In 8-bit PWM mode, the PWMFm register holds the value for setting the frequency (or period) whereas the CAPCOMHn register holds the value to set the complement of the duty cycle. It is odd but that is how it works.
Han-Way Huang