Hello, could you help me with the Output XBAR, please?
While testing I have found one strange behavior of the OUTPUTXBAR.
When the OUTPUTLATCH is used (OUTPUTXBAR_OUTLATCH.bit0 = 1) and there are no inputs for OUTPUTXBAR:
- setting OUTPUTXBAR_FLAGFORCE to 1 sets the OUT to 1 (XBAROUT0 pin is 1), but the STATUS is still 0 (while the FLAG is 1)
- setting OUTPUTXBAR_FLAGFORCE to 0 sets the OUT to 0 (XBAROUT0 pin is 0), but the FLAG is still 1
- setting OUTPUTXBAR_FLAG_CLR to 1 clears the FLAG, so both are 0
- when I do the step 1) first and the step 3) after, the FLAG is reset, the STATUS is still 0, but OUT is 1 (XBAROUT0 pin is 1)
When the OUTPUTXBAR_OUTLATCH.bit0 = 0, the FORCE doesn't affect on the pin.
When I connect CMPSS output directly, setting its output to 1 sets the OUT to 1, setting to 0 - OUT is 0.
But when I connect CMPSS output via OUTPUTXBAR LATCH, it actually doesn't latch the output (while FLAG is latched, but at the same time STATUS reflect correct OUT state).
Could you please explain how the OUTPUTXBAR FORCE and LATCH mechanisms work?
And why the pin physical status changed, but the STATUS register not (when LATCH is used and there are no inputs for OUTPUTXBAR)? Why the FORCE directly controls the pin?
Especially, why the LATCH doesn't work?
The pin is configured for XBAROUT0 (mux mode = 5, dir = out). All inversions disabled.
All these steps I have done manually in CCS and the same I have implemented in the code, but behavior is the same.
Also, why there is no description for many registers in the AM263x Register Addendum? Especially for XBARs!
Thank you.
Pictures that describe the test: