This example configures the pattern generator for a 1920x1080 60Hz output using an external PCLK reference frequency applied at the serializer input. This example can only be used with 94x devices in dual FPD Link mode:
Table 4-2 1080p60 with External Clock ExampleParameter | Value | Units |
---|
Pixel Clock (Applied Externally) | 148.5 | MHz |
Total Horizontal Width | 2200 | pixels |
Total Vertical Height | 1125 | pixels |
Active Horizontal Width | 1920 | pixels |
Active Vertical Height | 1080 | pixels |
Horizontal Sync Width | 44 | pixels |
Vertical Sync Width | 5 | pixels |
Horizontal Back Porch | 148 | pixels |
Vertical Back Porch | 36 | pixels |
Horizontal Sync Polarity | Positive | - |
Vertical Sync Polarity | Positive | - |
Configuration Sequence
- Set Pixel Clock and Active Frame Size. Active H Width: 1920 (dec) = 0111 1000 0000 (bin), Active V Height: 1080 (dec) -> 0100 0011 1000 (bin)
- Write 0x07 (Table 3-2) to address 0x66 PGIA (Table 3-2) to enable PGAFS1, then write 0x80 (Table 3-13) to address 0x67 PGID (Table 3-2) to set desired Active Horizontal Width.
- Write 0x08 (Table 3-2) to address 0x66 PGIA (Table 3-2) to enable PGAFS2, then write 0x87 (Table 3-14) to address 0x67 PGID (Table 3-2) to set desired Active Vertical and Horizontal Widths.
- Write 0x09 (Table 3-2) to address 0x66 PGIA (Table 3-2) to enable PGAFS3, then write 0x43 (Table 3-15) to address 0x67 PGID (Table 3-2) to set desired Active Vertical Width.
- Set Total Frame Size. Total H Width: 2200 (dec) -> 1000 1001 1000 (bin), Total V Width: 1125 (dec) -> 0100 0110 0101 (bin)
- Write 0x04 (Table 3-2) to address 0x66 PGIA (Table 3-2) to enable PGTFS1, then write 0x98 (Table 3-10) to 0x67 PGID (Table 3-2) to set desired Total Horizontal Width.
- Write 0x05 (Table 3-2) to address 0x66 PGIA (Table 3-2) to enable PGTFS2, then write 0x58 (Table 3-14) to address 0x67 PGID (Table 3-2) to set desired Total Vertical and Horizontal Widths.
- Write 0x06 (Table 3-2) to address 0x66 PGIA (Table 3-2) to enable PGTFS3, then write 0x46 (Table 3-12) to address 0x67 PGID (Table 3-2) to set desired Total Vertical Width.
- Set Back Porch. H Back Porch: 148 (dec) 1001 0100 (bin), V Back Porch: 36 (dec) lines 0010 0100 (bin)
- Write 0x0C (Table 3-2) to address 0x66 PGIA (Table 3-2) to enable PGHBP, then write 0x94 (Table 3-18) to address 0x67 PGID (Table 3-2) to set desired Horizontal Back Porch Width.
- Write 0x0D (Table 3-2) to address 0x66 PGIA (Table 3-2) to enable PGVBP, then write 0x24 (Table 3-19) to address 0x67 PGID (Table 3-2) to set desired Vertical Back Porch Width.
- Set Sync Width. H Sync Width: 44 (dec) pixels 0010 1100 (bin), V Sync Width: 5 (dec) lines 0101 (bin)
- Write 0x0A (Table 3-2) to address 0x66 PGIA (Table 3-2) to enable PGHSW, then write 0x2C (Table 3-18) to address 0x67 PGID (Table 3-2) to set desired Horizontal Sync Width.
- Write 0x0B (Table 3-2) to address 0x66 PGIA (Table 3-2) to enable PGVSW, then write 0x05 (Table 3-19) to address 0x67 PGID (Table 3-2) to set desired Vertical Sync Width.
- Set Sync Polarities.
- Write 0x0E (Table 3-2) to address 0x66 PGIA (Table 3-2) to enable PBSC, then write 0x00 (Table 3-18) to address 0x67 PGID (Table 3-2) to set desired horizontal and vertical sync polarities to "Positive".
- Enable Pattern Generation
- Write 0x0C to address 0x65 PGCFG (Table 3-2) to set external clock and internal PATGEN timing.
- Write 0x05 to address 0x64 PGCTL (Table 3-2) to enable PATGEN with color bars.