/MSP432

(suspended) Texas Instruments MSP432P401R LaunchPad

Primary LanguageCMIT LicenseMIT

TI_MSP432

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND (see LICENSE)

Hardware

  • MSP432P401R ( Mouser No: 595-MSP-EXP432P401R )
  • HD44780 16x2 LCD ( Mouser No: 992-LCD-16X2B )
  • 2x 10kOhms Potentiometers, breadboard, wires.

Software

Setup

When adding the original LCD library by @agaelema, adopt the "lcd16x2_msp43x.h" to specific board:

/***************************************************************************************
*          LCD PINS DEFINITION - will define PORT and PINS used by LCD
***************************************************************************************/
#define     _EN_PORT        4                   // default EN port - P1
#define     _EN_PIN         2                   // default EN pin  - P1.6
#define     _RS_PORT        4                   // default RS port - P1
#define     _RS_PIN         0                   // default RS pin  - P1.7

#define     _LCD_4BIT_PORT          4               // port used to data
#define     _LCD_DATA_BASE          4               // first low pin of 4 bit interface
#define     _LCD_4BIT_HIGH          0x0F            // 4 bits in high mode
  1. Get stuff connected

Wiring scheme

LCD module pin names:

Pin number Pin name Pin description
1 GND/VSS ground pin for LCD
2 VDD/VCC supply voltage pin for LCD
3 V0/VEE contrast adjust
4 RS Register Select (0;1)
5 RW Read/Write (0;1)
6 E enable
7-14 Data Bits send commands or data to the LCD
15 A/LED+ supply voltage pin for backlight
16 K/LED- ground ping for backlight

Potentiometer types:

Slide POT (potentiometer) wiring

Single turn POT wiring


DEMONSTRATION:

CONTRAST_DEMO

CONTRAST_DEMO

BRIGHTNESS_DEMO

BRIGHTNESS_DEMO