1 - When I was using TEERM, I found that once the value of TBPRDHR became available, the value of TEERM kept changing.
2 - When writing values to TEERN, it seems that the edge of CMPAHR is also adjusted.
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.
1 - When I was using TEERM, I found that once the value of TBPRDHR became available, the value of TEERM kept changing.
2 - When writing values to TEERN, it seems that the edge of CMPAHR is also adjusted.
Hello, the chip I'm currently using is TMS320F280039C.
When using the hrpwm_ex4_duty_updown_sfo of C2000Ware_5_03
It was found that the duty value written in the routine was different from the actual measured duty value.
At this time, the value of TRREN was 0 and the value of TBPRDHR was also 0.
When I wrote the value of TRREN as 0x100, the written duty value and the actual measured duty value became the same.
When TBPRDHR is not equal to 0, it seems that the value of TRREN will change by itself. At this point, the written duty and the actual measured duty will be the same.
As far as I know, TRREN seems to be only related to TBPHSHR. This situation also seems to be related to TBPRDHR as well.
1 - Can this indicate that high-precision phase and high-precision period cannot be used together?
Then, can high-precision phase and high-precision duty cycle be used together?
2 - Could you provide a more detailed explanation of the usage and conditions of TRREN, as well as the precise meanings of symmetrical and asymmetrical?
TRREM register is used when you want to achieve High resolution Phase shift while using HRPE mode (TBPRDHR). You cannot use TBPHSHR when HRPE = 1;
Please refer to this E2E thread for more information on TRREM: TMS320F28379D: Usage information on TRREM register for periodic HR phase update - C2000 microcontrollers forum - C2000︎ microcontrollers - TI E2E support forums
OK, thank you for your reply. There is one more question.
When in the UP-Down mode and EdgeMode = 3, using high-precision duty cycle control, if HRPE = 0, then both edges are simultaneously delayed backward, causing the duty cycle not to change. Its behavior seems like high-precision phase control.
When HRPE = 1, both edges are simultaneously delayed to the middle, causing the duty cycle to change and achieving the effect of high-precision duty cycle. Does this seem like high-precision duty cycle control is related to HRPE? Is this also the expected behavior?
I will take a look and reply in timely manner.