I have compiled a library that uses SSD1306/SSD1309 Controller. The Controller is running correctly but Alternative Lines (Rows) are missing from the Display.
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.
I have compiled a library that uses SSD1306/SSD1309 Controller. The Controller is running correctly but Alternative Lines (Rows) are missing from the Display.
Hi Ashkar,
You are using the F2806x device's I2C or SPI to communicate with the SSD1309 LCD screen? We (TI) can answer questions specific to the C2000 device and its modules and give related suggestions, however your question regarding SSD1309 usage would be answered better by someone familiar with the board. That or you need to provide more details of your question.
Maybe a community member on this forum will be able to provide some further guidance.
Best,
Kevin
Hey Kevin,
Let me Paste the Working Source Code for the SSD1306,
void SPI_sendCommand(Uint16 command)
{
Uint16 volatile dummy = 0;
LCD_CS_LO;
LCD_DC_LO;
while (SpiaRegs.SPISTS.bit.BUFFULL_FLAG != 0){} // Wait until TX buffer is not full
SpiaRegs.SPITXBUF = command<<8; // Master transmits data
while(SpiaRegs.SPISTS.bit.INT_FLAG ==0) {} // Wait until data received
dummy = SpiaRegs.SPIRXBUF; // dummy read to clear INT flag
LCD_CS_HI;
LCD_DC_HI;
}
//----------------------------------------------------------------------------
void SPI_sendData(Uint16 data)
{
Uint16 volatile dummy = 0;
// Select the LCD controller
LCD_CS_LO;
LCD_DC_HI;
while (SpiaRegs.SPISTS.bit.BUFFULL_FLAG != 0){} // Wait until TX buffer is not full
SpiaRegs.SPITXBUF = data<<8; // Master transmits data
while(SpiaRegs.SPISTS.bit.INT_FLAG ==0) {} // Wait until data received
dummy = SpiaRegs.SPIRXBUF; // dummy read to clear INT flag
LCD_CS_HI;
LCD_DC_LO;
}
This SSd1306 is an 128x64 Lcd Controller that works on 8 bit SPI Communication interface , For that purpose I had use the above specified SPI Routine
Ashkar,
I agree with Kevin here. There is not enough debug information here to tell whether this is a C2000-related problem. If you have additional debug information that points to an issue related to C2000, please let us know.