brilliantlabsAR / monocle-fpga

The FPGA application for Monocle's graphics, camera and microphone accelerators
CERN Open Hardware Licence Version 2 - Permissive
48 stars 9 forks source link

Help, just a question: Which SPI mode does the ECX OLED use? #16

Closed SinanAkkoyun closed 1 year ago

SinanAkkoyun commented 1 year ago

Hi! I would like to know what SPI mode the ECX OLED uses? I am working on an adapter board for a RPI and need to set registers for it to wake up from sleep mode.

In the datasheet, I can not find any information about serial mode... It would be awesome if you could help!

Thank you very much

josuah commented 1 year ago

Hello! Apologies for the long delay. The SPI mode is, in this project, handled by the Microcontroler, where you would be able to check the CPOL and CPHA in use. The datasheet suggests that the data is sampled during the rising edge of the clock, and updated during the falling edge of the clock.

This could be either MODE 0 or MODE 2.