The LCD on the Portfolio is controlled by a HD61830 of Hitachi. The I/O addresses are 8010h and 8011h. 8010h is the data register 8011h is the control register To program: 1. Write the register number to 8011h 2. Write the data to register 8010h For register and data value, see table below. After the data values the initial values for the Portfolio are show in hex (set during reset) Reg function Bits init 7 6 5 4 3 2 1 0 +---+---+---+---+---+---+---+---+ 0 Mode control | 0 | 0 | Mode data | 38 +---+---+-------+---+-----------+ 1 Vertical/horizontal | (Vp-1) | 0 | (Hp-1) | 75 character pitch | | | | +---+-----------+---+-----------+ 2 Number of characters per | 0 | (HN-1) | 27 line/number of bytes | | | +---+---------------------------+ 3 Number of vertical dots | | (NX-1) | 3F +---+---+---+---+---------------+ 4 Cursor position | 0 | 0 | 0 | 0 | (CP-1) | 07 +---+---+---+---+---------------+ 8 Display starting address | Address data | 00 (least significant) (Lower) | | +---+---+---+---+---------------+ 9 Display starting address | 0 | 0 | 0 | 0 | Address data | 00 (most significant) (Upper) | | | | | | +---+---+---+---+---------------+ 10 Cursor address | Address data | 00 (least significant) (Lower) | | +---+---+---+---+---------------+ 11 Cursor address | 0 | 0 | 0 | 0 | Address data | 00 (most significant) (Upper) | | | | | | +---+---+---+---+---------------+ 12 Refresh memory write | Character code/bit data | +-------------------------------+ 13 Refresh memory read | Refresh memory data | +---+---+---+---+---+-----------+ 14 Bit clear | 0 | 0 | 0 | 0 | 0 | (BN) | +---+---+---+---+---+-----------+ 15 Bit set | 0 | 0 | 0 | 0 | 0 | (BN) | +---+---+---+---+---+-----------+ Mode data: 1 1 1 0 0 0 Initial value for Portfolio 5 4 3 2 1 0 | | \ / | | | | | | +--- 0: Internal character generator ROM | | | | 1: External character generator ROM | | | | | | | +----- 0: Character mode | | | 1: Graphics mode | | | | | +-------- 00: Cursor OFF | | 01: Cursor ON | | 10: Cursor OFF, character blink | | 11: Cursor blink | | | +----------- 1: Master or slave (when multiple HD61830's) | +------------- 0: Display OFF (without clearing refresh memory) 1: Display ON