Author Topic: NHD-14432WG-BTFH-V#T Datasheet's Initialization Code  (Read 537 times)

Terence D

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
NHD-14432WG-BTFH-V#T Datasheet's Initialization Code
« on: May 24, 2017, 10:07:30 PM »
Hi, I just purchased and received my NHD-14432WG-BTFH-V#T that I'm using with a Tiva LaunchPad.  I'm a very experienced C/C++ software developer, but looking at the datasheet I don't fully understand the code.  For example, it starts with this:

#include <REG52.H>
#include "AL.h"
sbit ID = P3^0;
sbit RW = P3^7;
sbit E = P3^4;

A few questions:
  • Where are these header files (REG52.H and AL.h) supposed to come from?
  • What does "sbit" mean?  Set bit?
  • What does P3 refer to?

Any explanation on these topics would be appreciated.  Thanks!

-Terence

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 340
  • Karma: 10
    • View Profile
Re: NHD-14432WG-BTFH-V#T Datasheet's Initialization Code
« Reply #1 on: May 25, 2017, 08:13:18 AM »
The code below is for our 8051 Control Board. The REG52.h and AL.h are required libraries to configure this controller.

The sbit command is the same as #define, where instead of toggling P3^7 you would just toggle RW.
P3 is Port 3, which is one of the ports brought out to the user on this controller.

Terence D

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: NHD-14432WG-BTFH-V#T Datasheet's Initialization Code
« Reply #2 on: May 26, 2017, 05:54:45 PM »
Ah, got it.  Thank you Saurabh.

-Terence

 

NHD‐C12864A1Z‐FS(RGB)‐FBW‐HT1 Initialization

Started by BMohlmanBoard Graphic LCDs

Replies: 5
Views: 3727
Last post January 13, 2016, 07:44:16 AM
by Paul_B
Sample Code Question for NHD‐C0220BiZ‐FS(RGB)‐FBW‐3VM LCD

Started by SteveCBoard Character LCDs

Replies: 2
Views: 2896
Last post July 31, 2014, 08:44:29 PM
by SteveC
NHD‐0420CW‐AG3 + I2C + PIC assembly code: trouble getting started

Started by RichardRBoard OLEDs

Replies: 4
Views: 2953
Last post December 17, 2015, 03:12:49 AM
by RichardR
Working on NHD‐2.4‐240320SF‐CTXL#‐FTN1, have problem in initialization

Started by sli25Board TFTs

Replies: 6
Views: 3599
Last post June 04, 2015, 09:52:25 PM
by sli25
Korean Hex GB code for OLED multi font display NHD-2.7-12864UMY3

Started by newhavenuserBoard OLEDs

Replies: 0
Views: 538
Last post May 05, 2017, 01:17:45 PM
by newhavenuser