This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280025: 25芯片TRREM寄存器的使用

Part Number: TMS320F280025

您好!不理解TRREM寄存器的用法:

寄存器的描述:

HRPWM Remainder Bits: This 11-bit value keeps track of the remainder portion of the HRPWM algorithm calculations.
This value keeps track of the remainder portion of the HRPWM hardware calculations.


Notes:
1. The lower 8-bits of the TRREM register can be automatically initialized with the TBPHSHR value on a SYNCIN or
TBCTL[SWFSYNC] event or DC event (if enabled). The user can also write a value with the CPU.


2. Priority of TRREM register updates:
Sync (software or hardware) TBPHSHR copied to TRREM : Highest Priority
HRPWM Hardware (updates TRREM register): Next priority
CPU Write To TRREM Register: Lowest Priority


3. Bit 10 of TRREM register is not used in asymmetrical mode. This bit can be forced to zero.
TRREM will be initialized to 0x0 and 0x100 in Up and Up-down modes respectively.
Asymmetrical Mode:TRREM[7:0] = TBPHSHR[15:8] TRREM[10,9,8] = 0,0,0
Symmetrical Mode: TRREM[7:0] = TBPHSHR[15:8] TRREM[10,9,8] = 0,0,1

手册中介绍TRREM很少,似乎与HR相位相关,但是具体是什么关系又没有文档明确说明。

问题1:HRPWM的余数位?HRPWM算法计算的余数部分?能不能解释一下TRREM与HRPWM中哪个算法相关?

问题2:使用TBPHSHR的值自动更新,TRREM与TBPHSHR的关系是怎样的?什么情况下使用TBPHSHR、什么情况下使用TRREM?

问题3:非对称模式TRREM[10:8]设为000,非对称模式包括减模式不?还是仅指增模式?自动更新时TRREM[10:8]是否也会更新?

谢谢!