SPRUIM2H May 2020 – October 2023 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442
The Byte Swap (BSWAP) module enables any of the internal PRU registers (R0 to R29) to swap byte order in 1 clock cycle via XIN function.
This module supports three functions:
Each of those functions have a unique XIN ID to determine which operation will occur, as shown in Table 6-438.
Device ID(1) | Function | Access |
---|---|---|
160 (A0h) | Byte Order Swap | XIN |
161 (A1h) | 4_8 | XIN |
162 (A2h) | 4_16 | XIN |
The following sections use the syntax “Rn.bm.” This syntax is used to represent a byte field within the internal PRU register, Rn. For example, b0 represents “byte 0” (or bits 0-7) and b3 represents “byte 3” (or bits 24- 31) of a given register.