Welcome to the C2000™ Microcontrollers Section of the TI E2E Support Community. Ask questions, share knowledge, explore ideas, and help solve problems with fellow engineers. To post a question, click on the forum tab then "New Post".
There's one doubting question from the PWM UG on ETPS register.
In the latest PWM UG (SPRUGE9E) P70 we can find below statement:
Writing to the INTPRD bits will automatically clear the counter INTCNT = 0 and the counter output will be reset (so no interrupts are generated).
And then in the ETPS register field descriptions in P137:
Writing a INTPRD value that is the same as the current counter value will trigger an interrupt if it is enabled and the status flag is clear.
Writing a INTPRD value that is less than the current counter value will result in an undefined state.If a counter event occurs at the same instant as a new zero or non-zero INTPRD value is written, the counter is incremented.
It seems there're conflict betweem these two: one is going to clear INTCNT to 0 and has no interrupt if you write to INTPRD, while the other says "it depends'.
So, which one is true?
Both instances of the user guide are somewhat. The behavior is as follows:
The initial statement on Pg 70 needs to be clarified to reflect the above.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content 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. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.