This example configures the Pattern Generator to scroll through a sequence of Red, Green, Blue, with each pattern displayed for 60 video frames, using external timing:
- Write 0x1E to the PGFT register (Table 3-21). This sets the frame timer to 60.
- Write 0x03 to the PGTSC register (Table 3-22). This sets the number of active patterns to 3.
- Write 0x43 to the PGTSO1 register (Table 3-23). This sets Pattern 1 to Red (3) and Pattern 2 to Green (4).
- Write 0x05 to the PGTSO2 register (Table 3-24). This sets Pattern 3 to Blue (5); Pattern 4 is ignored.
- Write 0x01 to the PGCFG register (Table 3-1) to enable Auto-Scrolling with external timing.
- Write 0x01 to the PGCTL register (Table 3-1) to enable the pattern generator.