- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
TCPWM have Period register and Period buff register . How to determine which register is used now,Period register or Period buff register! thanks!
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @yangyong ,
TCPWM have period register and period buffer register. Period register has the upper value of counter and Period buffer register is a buffer register which swaps the period value. In PWM mode the PERIOD and PERIOD_BUFF registers are exchanged on a tc event. The period swap is shown in the below snippet. There will be two periods, Period 0 and Period 1 when the period swap is enabled then period register and period buffer register will get swapped.
In case you are using timer functionality use Period register instead of Period buffer register as it utilizes Period register not the Period buffer register.
Best Regards
Rakesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @yangyong ,
TCPWM have period register and period buffer register. Period register has the upper value of counter and Period buffer register is a buffer register which swaps the period value. In PWM mode the PERIOD and PERIOD_BUFF registers are exchanged on a tc event. The period swap is shown in the below snippet. There will be two periods, Period 0 and Period 1 when the period swap is enabled then period register and period buffer register will get swapped.
In case you are using timer functionality use Period register instead of Period buffer register as it utilizes Period register not the Period buffer register.
Best Regards
Rakesh