Georgem
Georgem

Reputation: 3

LCD Screen stuck on UART Baud: 9600

I have a MSP chip and a LCD screen - throughout my code I output messages to my LCD screen. 80% of the time it works but if I do a power cycle the screen will get stuck on "UART Baud: 9600". I am not sure if there is something I am missing in the initialisation of the LCD Screen:

  P3SEL = 0x30;                             // P3.4,5 = USCI_A0 TXD/RXD
  UCA0CTL1 |= UCSWRST;                      // **Put state machine in reset**
  UCA0CTL1 |= UCSSEL_1;                     // CLK = ACLK
  UCA0BR0 = 0x03;                           // 32kHz/9600=3.41 (see User's Guide)
  UCA0BR1 = 0x00;                           //
  UCA0MCTL = UCBRS_3+UCBRF_0;               // Modulation UCBRSx=3, UCBRFx=0
  UCA0CTL1 &= ~UCSWRST;                     // **Initialize USCI state machine**
  UCA0IE |= UCRXIE;
  
  Digole_setLCDColRow(20,4);
  Digole_disableCursor();
  __delay_cycles(1000);
  Digole_clearScreen();
  __delay_cycles(1000);
  Digole_setPrintPos(0,0,0);
  Digole_printStr("PFA Error Messages");
  __delay_cycles(1000);

Any help would be appreciated...

I am using IAR embedded workbench, code is in C, MSP chip, Digole 2004A display using the RXD/TXD mode.

Upvotes: 0

Views: 76

Answers (0)

Related Questions