To read LUT data from the first NLF, use the NLF1 LUT_TARGET and NLF1 LUT_DATA registers. To read LUT data from the second NLF, use the NLF2 LUT_TARGET and NLF2 LUT_DATA registers.
Auto-Incrementing LUT_ADDR
To read from a target location, follow these steps:
- Set the target location by writing the target location data to the LUT_TARGET register
- Read the LUT data from the LUT_DATA registerNote: To read LUT data from other target locations, set the target location. Write to the LUT_TARGET register. Then read the LUT data from the LUT_DATA register.
A feature to auto-increment LUT_ADDR is available. This feature avoids writing to the LUT_TARGET register every time you read LUT data from the same target LUT. The LUT_ADDR is incremented by one after every read from the LUT_DATA register. After reaching the maximum value (255), the LUT_ADDR wraps up (to 0) with the next increment.
Only when you write the LUT_TARGET register does hardware set LUT_ADDR to the value in the LUT_ADDR field of that register. This feature allows you to set the target location with LUT_ADDR = 0. This is the first location of the target LUT. Then you can read all 256 (0 to 255) locations of the target LUT sequentially by reading the LUT_DATA register 256 times.