Hello everyone,
I have a little problem with sending my data to the lcd.
So my Stellarisware is connected with a LCD. I send my hexadecimal commands serially to the LCD.
Nothing happens but after that I push the reset button of my Stellaris my LCD-reacts. If I send for example 2 cmds to the LCD I have to reset 1 time for the first cmd to reach the LCD. And then I have to push again on the reset button for the 2 cmd.
Do I miss an important detail?
for (i = 0; i < 1000000000; i++); // Delay for LCD
/* Sending first command to LCD*/
ROM_UARTCharPutNonBlocking(UART0_BASE,WRITE); // Write Cmd
ROM_UARTCharPutNonBlocking(UART0_BASE,DIGITS); // Object Type
ROM_UARTCharPutNonBlocking(UART0_BASE,DIGITS_OBJECT_ID); // Object ID
ROM_UARTCharPutNonBlocking(UART0_BASE,MSB); // MSB Data
ROM_UARTCharPutNonBlocking(UART0_BASE,LSB); // LSB Data
// Calculate Checksum
CHECKSUM=WRITE^DIGITS^DIGITS_OBJECT_ID^MSB^LSB;
ROM_UARTCharPutNonBlocking(UART0_BASE,CHECKSUM); // Checksum
if( UARTCharGet(UART0_BASE)==ACK) // Wait for Acknowledge LCD
{
/* Sending second command to LCD*/
ROM_UARTCharPutNonBlocking(UART0_BASE,WRITE); // Write Cmd
ROM_UARTCharPutNonBlocking(UART0_BASE,DIGITS); // Object Type
ROM_UARTCharPutNonBlocking(UART0_BASE,DIGITS_OBJECT_ID); // Object ID
ROM_UARTCharPutNonBlocking(UART0_BASE,MSB); // MSB Data
ROM_UARTCharPutNonBlocking(UART0_BASE,0x03); // LSB Data
// Calculate Checksum
CHECKSUM=WRITE^DIGITS^DIGITS_OBJECT_ID^MSB^0x03;
ROM_UARTCharPutNonBlocking(UART0_BASE,CHECKSUM); // Checksum
}
// Loop forever echoing data through the UART.
while(1)
{
}
}