
HD66726
17
Key Scan Registers (SCAN0 to SCAN3)
The key matrix scanner senses and holds the key states at each rising edge of the key strobe signals that are
output by the HD66726. The key strobe signals are output as time-multiplexed signals from KST0 to
KST3. After passing through the key matrix, these strobe signals are used to sample the key status on eight
inputs from KIN0 to KIN7, enabling up to 32 keys to be scanned.
The states of inputs KIN0 to KIN7 are sampled by key strobe signal KST0 and latched into register
SCAN0. Similarly, the data sampled by strobe signals KST1 to KST3 is latched into registers SCAN1 to
SCAN3, respectively.
General Output Ports (PORT0 to PORT 2)
The HD66726 has three general output ports. These ports control drive current such as that for LEDs or
backlighting by using the current boosted by an external transistor.
Address Counter (AC)
The address counter (AC) assigns addresses to DDRAM, CGRAM, or SEGRAM. When an address set
instruction is written into the IR, the address information is sent from the IR to the AC. Selection of
DDRAM, CGRAM, and SEGRAM is also determined concurrently by the RAM select bit (RM1/0).
After writing into (reading from) DDRAM, CGRAM, or SEGRAM, the AC is automatically incremented
by 1 (or decremented by 1). The cursor display position is determined by the address counter value.
Display Data RAM (DDRAM)
Display data RAM (DDRAM) stores display data represented in 8-bit character codes in the character
display mode. Its capacity is 80
×
8 bits, or 80 characters, which is equivalent to an area of 16 characters
×
5 lines. Any number of display lines (LCD drive duty ratio) from 1 to 4 can be selected by software. Here,
assignment of DDRAM addresses is the same for all display modes (table 5). The line to be displayed at the
top of the display (display-start line) can also be selected by register settings. The graphics display mode
does not use data in the DDRAM.
Character Generator ROM (CGROM)
Character generator ROM (CGROM) generates 6
×
8-dot character patterns from 8-bit character codes. It is
equipped with a memory bank to generate 240 character patterns or 192 character patterns, switch able
according to applications. For details, see the CGROM Bank Switching Function section. Table 6 illustrates
the relation between character codes and character patterns for the Hitachi standard CGROM. User-defined
character patterns are also available using a mask-programmed ROM (see the Modifying Character Patterns
section).