SPRZ570A November 2023 – May 2024 AM263P4 , AM263P4-Q1
CONTROLSS: Race condition OUTPUT_XBAR and PWM_XBAR resulting in event miss
Potential race condition in capture registers resulting in events getting lost while other events in the same register are being cleared by writing to the register. Following registers are impacted by this issue:
C2K_PWMXBAR:PWMXBAR_STATUS
C2K_OUTPUTXBAR:OUTPUTXBAR_STATUS
WA -1 (For event widths > 50ns):
By default, level events (width >50ns) will be captured in “STATUS” Register, while performing “Clr Flag”, if any new event from hardware is asserted at the same time, it will be missed in FLAG Register, However, STATUS register does capture such events missed in FLAG register. After completing “Clr FLAG”, reading the “STATUS” register allows to capture/process any missed event based on “STATUS” read.
WA-1: ISR Sequence:
Read FLAG Event[x]
Read STATUS, All events
Clr FLAG, Event[x]
Read STATUS, All events
Capture any missing HW event FLAG
If exists, process accordingly
WA -2 (For any event widths):
Enable OUTPUTXBAR with the same events in the ISR and then “Clr PWMXBAR FLAG”.
Any missed Hardware event during the same window will be captured in OUTPUTXBAR FLAG”. Read the OUTPUTXBAR FLAG and process accordingly
“Clr OUTPUTXBAR FLAG” followed by disable of OUTPUTXBAR in the ISR.
WA-2: ISR Sequence:
Read FLAG Event[x]
Read STATUS, All events
Enable OutPutxBAR
- Map Same Events
Clr FLAG, Event[x] PWMXBAR
Read STATUS
- Capture any Missing HW event FLAG
from OUTPUTXBAR_FLAG
if exists Process accordingly
- Clr FLAG, Event[y] OutputXBAR