I would like to talk to the display via RS232. In other words Hyperterminal software let me type something on the its screen at the PC and sends the characters through the RS232 protocol to the MSP430f47197 and the micro show them on the display. (and of course the opposite way from the micro to the Hyperterminal as well)
Serial port is TX and RX are connected to the P1.6 and P1.7 of the MSP430f47197 as follows.
Therefore, I need to have the following code.
P1SEL |= 0x20+0x40; // enable the TX and RX
According to the link that I have found through the net as follows, I guess I need to use USART0 TXD/RXD controller. But I am not sure if I am on the right track or not for the serial communication.
http://www.referencedesigner.com/tutorials/msp430/msp430_30.php
Then I should have something like the following just to send from Hyper-terminal to the LCD.
void main(void)
{
WDTCTL = WDTPW + WDTHOLD;
UBR00 = 0x03; // 32k/9600 - 3.41
UBR10 = 0x00;
P1SEL |= 0x70;
ME1 |= UTXE0 + URXE0; // Enable USART0 TXD/RXD
UMCTL0 = 0x4A; // Modulation
UCTL0 &= ~SWRST; // Initialize USART state machine
UCA0CTL1 &= ~UCSWRST; //**Initialize USCI state machine**
IE2 |= UCA0RXIE; // Enable USCI_A0 RX interrupt
_BIS_SR(LPM3_bits + GIE); //Enter LPM3,interrupts enabled
#pragma vector=USCIAB0RX_VECTOR
__interrupt void USCIA0RX_ISR (void)
{
while(!(IFG2&UCA0TXIFG));
UCA0TXBUF = UCA0RXBUF; // TX -> RXed character
//**** here enable the display to show the Receieved data
}
But I am not sure how it works!
What do you think guys? Is this even possible?


