This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
上面是lcd的通讯方式;
hui tang,
请问目前MSP430 通过UART给LCD发送数据, LCD可否正常接收成功数据?即你设定背光后,LCD是否受控制?
hui tang 说:char get_char(void){uchar ch;ch = temp;return ch;}
另外你这样检测是否接收到数据,有可能temp还保持上一次的值,并没有真正的进入接收中断,接收到新的数据。
有以下建议:
参考例程,先把程序调通,UART自己收自己发,并用示波器观察,成功后,然后链接LCD后,仍旧用示波器观察看看正常否?
MSP430x54x_uscia0_uart_01.c USCI_A0, 115200 UART Echo ISR, DCO SMCLK
MSP430x54x_uscia0_uart_02.c USCI_A0, Ultra-Low Pwr UART 2400 Echo ISR, 32kHz ACLK
MSP430x54x_uscia0_uart_03.c USCI_A0, Ultra-Low Pwr UART 9600 Echo ISR, 32kHz ACLK
MSP430x54x_uscia0_uart_04.c USCI_A0, 9600 UART, SMCLK, LPM0, Echo with over-sampling
BR,
Lina