Hi,
As you know that the BME(Bit Manipulation Engine 2) can operate the AND, OR, XOR, BFI, Clear One Bit, Set one Bit, bit Field Extract instructions, all the instructions can convert to read-modify-write operation.
For KV5X family, the BME address ranges from 0x4000-0000 to 0x4010-0000, the space is 1MB, all the peripheral are located in the BME range. The 1MB space supports all the BME operation.
The Data RAM is located at 0x2000_0000–0x2001_FFFF, you can save all the variables to the space. it is not in the range of BME space, but the two instructions: load-and-clear 1 bit, Load-and-Set 1 Bit can support the space.
Hope it can help you.
BR
XiangJun Rong