Newhaven Display Forum

Newhaven Products => Graphic LCDs => Topic started by: Terence D on May 24, 2017, 10:07:30 PM

Title: NHD-14432WG-BTFH-V#T Datasheet's Initialization Code
Post by: Terence D 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:

Any explanation on these topics would be appreciated.  Thanks!

-Terence
Title: Re: NHD-14432WG-BTFH-V#T Datasheet's Initialization Code
Post by: Saurabh_B 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.
Title: Re: NHD-14432WG-BTFH-V#T Datasheet's Initialization Code
Post by: Terence D on May 26, 2017, 05:54:45 PM
Ah, got it.  Thank you Saurabh.

-Terence