我设计了一个MSP430F6736的最小板,驱动我新买的LCD(8COM),pcb到手了,但是调不亮。请大家帮我看看。
谢谢。
原理设计我是参照F6736的电表设计做的。麻烦看看。
其中,电路里,我把芯片中的R33,R23,R13,R03通过0欧电阻(R17,R19,R21,R23)与分压1M电阻连器来的,不知道这块电路是否要保留?还是只需要通过C语言配置?
如果是需要保留,量出来的电压好像不对。
驱动程序如下写的,不知道有没有问题:
WDTCTL=WDTPW+WDTHOLD;
// P1DIR |= 0xC0;
// P2DIR |= 0x03;
// P1SEL |= 0xC0;
// P2SEL |= 0x03;
LCDCCTL0 = LCDDIV_31 | LCDPRE_1 | LCD8MUX ; //8COM是这么配置吗?其他还需要怎么修改的?
//Charge pump generated internally at 2.96V, external bias (V2-V4) generation
//Internal reference for charge pump
LCDCVCTL = LCDCPEN | VLCD_2_96;
REFCTL0 &= ~REFMSTR;
LCDCPCTL0 = 0x0FFF; //Select LCD Segments 0-11
LCDCPCTL1 = 0x0000; //
LCDCCTL0 |=LCDON;
//LCD Memory
LCDM1 = (unsigned char) (LCD_Char_Map[10] & 0xFF); // M – Lower byte
LCDM2 = (unsigned char) ((LCD_Char_Map[10] >> 8) & 0xFF); // M – Upper byte
LCDM3 = (unsigned char) (LCD_Char_Map[11] & 0xFF); // S – Lower byte
LCDM4 = (unsigned char) ((LCD_Char_Map[11] >> 8) & 0xFF); // S – Upper byte
LCDM5 = (unsigned char) (LCD_Char_Map[12] & 0xFF); // P – Lower byte
LCDM6 = (unsigned char) ((LCD_Char_Map[12] >> 8) & 0xFF); // P – Upper byte
LCDM1 |= 0X01; // 累计
// Blink Memory
LCDBM1 = (unsigned char) (LCD_Char_Map[4] & 0xFF); // 4 – Lower byte
LCDBM2 = (unsigned char) ((LCD_Char_Map[4] >> 8) & 0xFF); // 4 – Upper byte
LCDBM3 = (unsigned char) (LCD_Char_Map[3] & 0xFF); // 3 – Lower byte
LCDBM4 = (unsigned char) ((LCD_Char_Map[3] >> 8) & 0xFF); // 3 – Upper byte
LCDBM5 = (unsigned char) (LCD_Char_Map[0] & 0xFF); // 0 – Lower byte
LCDBM6 = (unsigned char) ((LCD_Char_Map[0] >> 8) & 0xFF); // 0 – Upper byte
wei yang3:
TI论坛没高人吗?
高人帮忙看看啊。