The styler chip is used to transform a 16x16 character glyph bitmap based on a set of text mode attributes. It consists of a 4-bit scanline register, a 6-bit control register, a 16-bit bitmap register, and a 25-bit attribute register. Additionally, three independent input lines are used to control polarity of dim text (even or odd pixels), text blink rate, and cursor blink rate.
Typical use of the styler chip follows these steps:
clk
.clk
.clk
.You can also read from the dedicated output pins without changing output enable or write enable.
The register layout is as follows:
Address | Bits | Description |
---|---|---|
0 | 0-3 | Input: physical scanline number; output: logical scanline number. |
0 | 4-7 | Input: ignored; output: 0. |
1 | 0 | Show cursor at bottom of character cell. |
1 | 1 | Show cursor at top of character cell. |
1 | 2 | Enable cursor blink. |
1 | 3 | Enable cursor. |
1 | 4 | Enable character underline, strikethrough, overline attributes. |
1 | 5 | Enable character blink, alternate attributes. |
1 | 6-7 | Input: ignored; output: 0. |
2 | 0-7 | Right half of character glyph bitmap. |
3 | 0-7 | Left half of character glyph bitmap. |
4 | 0 | X offset. (Determines which half of a double-width character.) |
4 | 1 | Double width. |
4 | 2 | Y offset. (Determines which half of a double-height character.) |
4 | 3 | Double height. |
4 | 4 | X premirror (flip input bitmap horizontally). |
4 | 5 | X postmirror (flip output bitmap horizontally). |
4 | 6 | Y premirror (invert physical scanline). |
4 | 7 | Y postmirror (invert logical scanline). |
5 | 0 | Bold. |
5 | 1 | Faint. |
5 | 2 | Italic. |
5 | 3 | Reverse italic. |
5 | 4 | Blink (text only, VT100-style). |
5 | 5 | Alternate (text and background, Apple II-style). |
5 | 6 | Inverse. |
5 | 7 | Hidden. |
6 | 0 | Underline. |
6 | 1 | Double underline. |
6 | 2 | Dotted underline. |
6 | 3 | Strikethrough. |
6 | 4 | Double strikethrough. |
6 | 5 | Dotted strikethrough. |
6 | 6 | Overline. |
6 | 7 | Double overline. |
7 | 0 | Dotted overline. |
7 | 1-7 | Input: ignored; output: 0. |
The input pin assignments are as follows:
Pin | Description |
---|---|
0 | A0 (address line 0). |
1 | A1 (address line 1). |
2 | A2 (address line 2). |
3 | Faint text polarity (even or odd pixels). |
4 | Text blink phase. |
5 | Cursor blink phase. |
6 | /OE (output enable). |
7 | /WE (write enable). |
Test cases are to be determined.
The styler chip is intended to be used as part of a larger text mode video display hardware project.
# | Input | Output | Bidirectional |
---|---|---|---|
0 | A0 (address) | D0 | D0 |
1 | A1 (address) | D1 | D1 |
2 | A2 (address) | D2 | D2 |
3 | dim text phase | D3 | D3 |
4 | text blink phase | D4 | D4 |
5 | cursor blink phase | D5 | D5 |
6 | /OE (output enable) | D6 | D6 |
7 | /WE (write enable) | D7 | D7 |