For:
in 12-bit mode, the actual code (CA) is calculated using the following formula
For higher resolutions, the code can be extended to the corresponding resolution defined by RES.