| Instruction Code Definitions
Outline
Two registers of the HD44780, the Instruction Register (IR) and the Data Register (DR) only can be controlled by MPU directly. Control information is temporarily stored in these registers, prior to internal operation start, to allow interface to various types of MPUs which operate in different speeds from HD44780 internal operation or to allow interface to peripheral control ICs. The HD44780 internal operation is determined by signals sent from MPU. These signals include register selection signals (RS), read/write signals (R/W) and data bus signals (DB0 - DB7) are called instructions in the paragraph. Table above shows the instructions and the execution time of the instructions. Details are explained in the following sections. The instructions can be divided into the following 4 types:
(1) Instructions that designate the HD44780 functions such as display format, data length, etc.
(2) Instructions that give internal RAM addresses.
(3) Instructions that perform data transfer with internal RAM.
(4) Other instructions.
In the normal use, instructions of category (3), which sends display data, is used most frequently. However, since the HD44780 internal RAM addresses are configured to be automatically incremented (or decremented ) by + 1 after each data write, MPU program load is lessened. Specifically, display shift is performed concurrently with display data write, and this enables the user to develop systems with minimum time and maximum efficiency of programming. When an instruction is being executed (during internal operation), the busy flag DB7 is active high. This must be monitored when high speed operation is planned (=50KHz).
|