NHD-240128WG-BYFH-VZ#020 Newhaven Display, NHD-240128WG-BYFH-VZ#020 Datasheet - Page 8
![LCD Graphic Display Modules & Accessories STN-Y/G Transfl 144.0 x 104.0](/photos/26/57/265764/nhd_240128wg_btfh_vz_sml.jpg)
NHD-240128WG-BYFH-VZ#020
Manufacturer Part Number
NHD-240128WG-BYFH-VZ#020
Description
LCD Graphic Display Modules & Accessories STN-Y/G Transfl 144.0 x 104.0
Manufacturer
Newhaven Display
Datasheet
1.NHD-240128WG-BTFH-VZ.pdf
(9 pages)
Specifications of NHD-240128WG-BYFH-VZ#020
Pixel Density
240 x 128
Fluid Type
FSTN Positive
Module Size (w X H X T)
144 mm x 104 mm x 14.3 mm
Viewing Area (w X H)
108 mm x 57.6 mm
Backlighting
LED White
Background Color
White
Operating Temperature Range
- 20 C to + 70 C
Attached Touch Screen
No
Display Mode
Transflective
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Example Initialization Program
//‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
Sub Writecom
P1 = A 'move data to port 1
Set P3.0 'set I/D for instruction
Reset P3.1 'reset /CS
Reset P3.4 'reset /WR
Set P3.1 'set /CS
Set P3.4 'set /WR
End Sub
Sub Writedata
P1 = A 'move data to port 1
Reset P3.0 'reset I/D for instruction
Reset P3.1
Reset P3.4 'toggle /CS and /WR
Set P3.1
Set P3.4
End Sub
//‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
Sub Init
Set P3.6
Set P3.7
Reset P3.3 'reset FS
A = &H00
Call Writedata
Call Writedata 'text address = 0000h
A = &H40
Call Writecom 'text home address set
A = &H00
Call Writedata
A = &H40 'graphic home address = 4000h
Call Writedata
A = &H42
Call Writecom 'graphic home address set
A = &H1E
Call Writedata
A = &H00 'text area address = 001Eh
Call Writedata
A = &H41
Call Writecom 'text area control set
A = &H1E
Call Writedata
A = &H00 'graphic area = 001Eh
Call Writedata
A = &H43
Call Writecom 'graphic area control set
A = &H80
Call Writecom 'set display mode
End Sub
[8]