|
msp430f4152,这样初始化无法成功,大家知道问题在哪里吗?附上了R33引脚附近的电路图。
void InitLCD(void)
{
//Setup Sx PIN
P5SEL = 0xff; //COM0 ~ COM1, + pins
//Enable LCD Sx PIN func
P4SEL = 0xff;
P3SEL = 0xff;
P2SEL = 0xff;
//LCDA : ACLK / 128 + 2-MUX + LCD SEG ON + LCD MODULE ON
LCDACTL = LCDFREQ_128 + LCD2MUX + LCDON;
//LCDA Port Ctrl: 0~27
LCDAPCTL0 = 0x7f;
LCDAVCTL0 |= VLCDEXT;
LCDAVCTL0 |= LCDR03EXT + LCDREXT; //Enable external vLCD
LCDAVCTL1 = VLCD_0; //external Vlcd
}
|
|