Download UP 3 Hardware Reference Manual

Transcript
UP3 Education Kit
Liquid Crystal Display
TABLE 10. LCD Instruction Table
SYMBOLS
DESCRIPTION
SYMBOLS
DESCRIPTION
I/D = 1
Increment
D/L = 0
4 Bit
I/D = 0
Decrement
N=1
1/16 Duty
S=1
With Display
Shift
N=0
1/8 Duty, 1/11 Duty
S/C = 1
Display Shift
F=1
5 X 10 dots
S/C = 0
Cursor Movement
F=0
5 X 7 dots
R/L = 1
Shift to the right
BF = 1
Internal Operation is
being performed
R/L = 0
Shift to the left
BF = 0
New Instruction
D/L = 1
8 Bit
acceptable
The above execution time is for fosc = 250KHz. However, when frequency
changes, execution time also changes. When fosc = 270KHz, then new execution time will be 40uS X (250/270) = 37uS.
LCD Initialization:
Normally LCD itself executes internal reset operations at power up.
But if the power supply condition is not satisfied the internal reset circuit would not operate properly. It is better to provide initialization
sequence by instruction.
Initializing by instruction
POWER ON - 15msec Delay - Function Set - 4.1msec Delay - Function Set - 100microsec - Function Set - 5msec Delay - Function Set Display OFF - Display ON - Entry Mode Set.
LCD on UP3 board is of N = 1 (1/16 Duty) and F = 0 (5X7 dots). After
this sequence LCD is ready for operation.
28
System Level Solutions