Other Parts Discussed in Thread: MSP430G2253
Tool/software: Code Composer Studio
Dear Buddy:
Current I did building LCD1602 Display by 4 bit.
But I met failure which it can not display anymore.
- MSP-EXP430G2 Emulation Board connect 12M crystal, not recommend 32768HZ. Whehter should remove R28/R29?
- LCD HW connection as below.
/**********************************************************************
* LCD1602显示之高四位相连的方法
*
* 描述:4线数据宽度,操作Lcd1602
* 在LCD1602屏幕上第一行显示 Hello!LCD1602
* 第二行显示 MSP430G2553
* 硬件电路:MSP430g2553 20PINS
* 硬件连接:
* MSP430与LCD连接信息
* LCD1602,4位接口,即使用D4-D7数据口,D0-D3不接入MCU
* PIN1 --> 地
* PIN2 --> VCC(一定要接+5V)
* PIN3 -->仿真时悬空,实际电路 2K电阻-->地 (一定要接好,否则没有任何显示)
* PIN4 --> RS --> P1.6
* PIN5 --> R/W --> GND
* PIN6 --> EN --> P1.7
* PIN7 --> D0不接
* PIN8 --> D1不接
* PIN9 --> D2不接
* PIN10 --> D3不接
* PIN11 --> D4 --> P2.0
* PIN12 --> D5 --> P2.1
* PIN13 --> D6 --> P2.2
* PIN14 --> D7 --> P2.3
* PIN15 --> floating
* PIN16 --> floating
* 调试器:MSP-EXP430G2 Emulation Board USB 12M,not 32768 Hz
* 调试软件: CCS9.3 编译
*****************************************************************/
#include <intrinsics.h>
#include <msp430g2253.h>
#include <msp430.h>
/*****************************************************