Dear Champs,
I am asking this for our customer.
The user needs to use CMPA/CMPB=0 for 0 duty. They are concerned about these boundary issues noted in TRM.
In TRM 20.6.4 AQCTLA and AQCTLB Shadow Mode Operations, there is a note, which says:
"Shadow to Active Load of Action Qualifier Output A/B Control Register [AQCTLA and AQCTLB] on CMPA = 0 or CMPB = 0 boundary If the Counter-Compare A Register (CMPA) or Counter-Compare B Register (CMPB) is set to a value of 0 and the action qualifier action on AQCTLA and AQCTLB is configured to occur in the same instant as a shadow to active load (that is, CMPA=0 and AQCTLA shadow to active load on TBCTR=0 using AQCTL register LDAQAMODE and LDAQAMODE bits), then both events enter contention and it is recommended to use a Non-Zero Counter-Compare when using Shadow to Active Load of Action Qualifier Output A/B Control Register on TBCTR = 0 boundary."
1.
What does "contention" mean here? Does that mean sometimes AQCTL can update from shadow to active, but CMPA/CMPB=0 does not take effect; sometimes CMPA/CMPB=0 can update from shadow to active but AQCTL do not update. Is it right?
2. If the user uses it in this way - Shadow to Active Load of Action Qualifier Output A/B Control Register [AQCTLA and AQCTLB] on CMPA = 0 or CMPB = 0, but the user never changes AQCTL during run time. Is this contention still there?
3.
To avoid this contention,
For example, up-count is used,
1. Case 1:
The user uses immediate mode for AQCTL and CMPA=0 (shadow mode and LOADMODE at ZERO). There should not be any contention at TBCTR=0 because AQCTL is in immediate mode and the user does not update AQCTL during run time. Is our understanding correct?
2. Case 2:
The user uses shadow mode and LOADMODE at ZERO for AQCTL and shadow mode and LOADMODE at PRD for CMPA=0. Even though in up-count mode, PRD and ZRO happens at the same clock, but PRD is still before ZRO. Therefore, AQCTL shadow to update will always AFTER CMPA=0 at TBCTR=0 and there is no contention. Is our understanding correct?
Would you please confirm them?
Wayne Huang