Part Number: TMS320F280049C
Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hello,
For my project I have configured 4 HRPWM channels and want to change the common period of these four wit the sync pulse.
To try the effectiveness of the sync pulse I provide a SW pulse once to start the PWM.
My expectation was after a single SW pulse the PWM would start but then any try to change the TBPRD and TBPRDHR would be ineffective.
However, when I tried to change the TBPRD and TBPRDHR register from debugging view expression tab. I was able to do it and the frequency of the PWM changed for both TBPRD and TBPRDHR.
My related PWM configuration is such as below:
Also when I see the TRM I think there is a contracting description about this. Such as:
For the PRDLD bit of TBCTL register it is written that:
Active Period Reg Load from Shadow Select
0: The period register (TBPRD) is loaded from its shadow register
when the time-base counter, TBCTR, is equal to zero and/or a sync
event as determined by the TBCTL2[PRDLDSYNC] bit.
A write/read to the TBPRD register accesses the shadow register.
1: Immediate Mode (Shadow register bypassed): A write or read to
the TBPRD register accesses the active register.
Reset type: SYSRSn
But for the TBPRD register, the explanation is:
Time Base Period Register
These bits determine the period of the time-base counter. This
sets the PWM frequency. Shadowing of this register is enabled
and disabled by the TBCTL[PRDLD] bit. By default this register is
shadowed.
- If TBCTL[PRDLD] = 0, then the shadow is enabled and any write
or read will automatically go to the shadow register. In this case,
the active register will be loaded from the shadow register when the
time-base counter equals zero.
(It says update will be at CTR = 0 not according to PRDLDSYNC bits)
- If TBCTL[PRDLD] = 1, then the shadow is disabled and any write or
read will go directly to the active register, that is the register actively
controlling the hardware.
- The active and shadow registers share the same memory map
address.
Reset type: SYSRSn
Lastly, in the view expression tab I am able to see the PRDLD = 0 and PRDLDSYNC =2
Any help would be highly appreciated.









