Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > PERIOD PWM UM GENERATOR OFFSET FOUND

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



PERIOD PWM UM GENERATOR OFFSET FOUND
Moderator:
RKRM

Post Reply
Follow this topic



PERIOD PWM UM GENERATOR OFFSET FOUND

mmoron21 posted on 25 Nov 2010 7:23 AM PST
Top Contributor
71 Forum Posts

I have found the PWM user modules estimate the output period adding an Offset equal
to 1 clk cycle of your external clock.
Therefore the formula remains finally:

Tout= nºPERIOD*Tclk+1cycle_clk;

(Where nºPERIOD is the counter PERIOD, the number of clk input risng edges to calculate
the PWM output square wave period).

I have supposed it's due to a kind of precharge or setup time te PWM UM needs to charge again the values
in the counter or make the interrupts once the countdown is over.

I haven't find any statement about this in the PWM datasheet.

Anyone could confirm that theory or I'm wrong?

Thanks for all.




Re: PERIOD PWM UM GENERATOR OFFSET FOUND

kiku posted on 28 Dec 2010 08:16 AM PST
Cypress Employee
61 Forum Posts

Hi,

 

Yes you are right. The actual period value is the value whatever you are entering in Period register + 1. It is also mentioned in the PWM UM datasheet.

 

Regards,

Kishore.



Re: PERIOD PWM UM GENERATOR OFFSET FOUND

Gautam Das posted on 01 Feb 2011 03:34 AM PST
Cypress Employee
742 Forum Posts

Hi,

 

The extra clock is to count down the PWM counter value from 1 to 0 when counting down.

The configuration tab shows the "Period" value which takes into account this extra clock. You can set the Period value depending upon this value displayed.

 

Regards,

dasg






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20