NHD-1.69-160128G (SEPS525) SPI Problem
hi,
I have a problem with the SPI interface and my SAM4E16E µC.
what did i try:
1) test the arduino example code with an arduino:
https://support.newhavendisplay.com/hc/en-us/articles/4413878318999-NHD-1-69-160128UGC3
display works.
2) remove unused code and create an AtmelStudio project.
display works. (attachment: main_soft_spi.png / soft_spi.png)
the picture shows the first init command (regarding signal course SCL/SDI).
3) change the three low-level functions
- OLED_Command_160128RGB
- OLED_Data_160128RGB
- OLED_SerialPixelData_160128RGB
like:
void OLED_Command_160128RGB(unsigned char c)
{
spi_select_device(SPI_MASTER_BASE, &spi_dev);
ioport_set_pin_level(OLED_RS, LOW);
spi_write_packet(SPI_MASTER_BASE, &c, 1);
spi_deselect_device(SPI_MASTER_BASE, &spi_dev)
}
SPI clock: 1MHz
SPI Mode 3
(attachment: spi.png)
it looks similar, but the display stay dark.
do you have an idea, what i can try or change?
regards
Adam
-
Problem solved.
RS Pin should be HIGH in the OLED_Data_160128RGB() function, not LOW. ;)0 -
Hello,
Thank you for the update, glad to hear the problem was solved.0
Please sign in to leave a comment.
Comments
2 comments