17
* prepare to write to the LCD display
MOVE.W #$0004,PEDR * bit 3 2 1 0
* 0 1 0 0
E R/W RS
MOVE.W #$000F,PFDR * send the DISPLAY ON command to the LCD
* RSRW D7D6D5D4D3D2D1D0
* Display control 0 0 0 0 0 0 1 D C B
*
* D = 1 = display ON
* D = 0 = display OFF
* --------------------
* C = 1 = cursor ON
* C = 0 = cursor OFF
* --------------------
* B = 1 = cursor BLINKING
* B = 0 = cursor NOT BLINKING
Once the LCD module has been initialized with the DISPLAY ON command, ASCII data
may be written it using the following sequence of instructions:
* WRITE ASCII DATA TO PORT F and STROBE using E=0
* and DELAY in between strobes
* WRITE "T" ASCII 54H
MOVE.W #$0005,PEDR * bit 3 2 1 0
* 0 1 0 1
* E R/W RS note RS = 1 for
* writing data into LCD
MOVE.W #$0054,PFDR * send "T" to the LCD
BSR DELAY
Commenti su questo manuale