Part Number: TMS570LS1224
Hello,
I have a problem about PWM output control. We need to control all PWM duty output(0 ~ 100%) in our application.
But it looks failed. So I want to know whether it can be complete control, or there has another way to achieve the goal?
Setting information is as follows :
Mode: up-down count
Interrupt timing : ZERO & PRD(wave trough & crest) using for setting next execution case
Shadow loading timing : ZERO & PRD
Case Z => P => H => Z => P => H => Z => H => P => Z => H => P => Z
(P = PRD, Z = ZERO, H = HALF)
Case output was controlled by CMPA and AQCTLA register.
PWM1A and PWM2A output to Oscilloscope
PWM1A : output duty
PWM2A : Indicating crests and troughs(output high means at increase interval, low means at decrease interval)
Expected wave :
The case of setting will execute at next interval. For example : setting at increase interval, executing at decrease interval.(first execution case)
Result wave of experiment :
We could see that there were two condition occurs fail. Others were correct. (Red wave form is expected wave)
(1) From increase to decrease interval(execute P to H)
(2) From decrease to increase interval(execute Z to H)
Thanks for your help.