This example configures the DS90Ux947-Q1
serializer to allow for measuring the detected active video dimensions at the
DS90Ux948-Q1 deserializer during operation. This feature can be used to detect a
video transmission error by comparing the expected active resolution against the
detected resolution. Note that this feature should only be used during system statup, and should not be left permenantly enabled during normal operation. Enabling this feature will disable the use of the LOCK pin as a link indicator, and will cause one white pixel to appear randomly in the video output for one frame at the time of enabling/disabling. For this reason it is best to enable this readback feature during system startup before the display backlight has been enabled, to avoid visual disruption.
Configuration Sequence
- Check the recovered active horizontal and vertical frame dimensions.
- Write 0x09 to address 0x68 PGDBG (Table 3-2) to select active horizontal LSB and trigger an update of the test mux data.
- Read 0x69 PGTSTDAT (Table 3-2) and record bits [5:0] as "AHL".
- Write 0x19 to address 0x68 PGDBG (Table 3-2) to select active horizontal MSB and trigger an update of the test mux data.
- Read 0x69 PGTSTDAT (Table 3-2) and record bits [5:0] as "AHM".
- Write 0x29 to address 0x68 PGDBG (Table 3-2) to select active vertical LSB and trigger an update of the test mux data.
- Read 0x69 PGTSTDAT (Table 3-2) and record bits [5:0] as "AVL".
- Write 0x39 to address 0x68 PGDBG (Table 3-2) to select active horizontal MSB and trigger an update of the test mux data.
- Read 0x69 PGTSTDAT (Table 3-2) and record bits [5:0] as "AVM".
- Calculate active horizontal pixels [11:0] = [AHM:AHL] (Table 3-2) (for example, AHM = 011110b, AHL = 000000b, Active horizontal pixels = 011110000000b = 0x780 = 1920 pixels).
- Calculate active vertical pixels [11:0] = [AVM:AVL] (Table 3-2) (for example AVM = 010000b, AVL = 111000b, Active horizontal pixels = 010000111000b = 0x438 = 1080 pixels).
- Compare measured active horizontal and vertical pixel dimensions to expected values for the external video source attached to the serializer side.
Disable readback features
Write 0x00 to address 0x68