Author Topic: SLOW STM32F103 SPI CLOCK  (Read 1547 times)

0 Members and 1 Guest are viewing this topic.

Offline jeet55Topic starter

  • Contributor
  • Posts: 19
SLOW STM32F103 SPI CLOCK
« on: March 06, 2021, 09:40:31 am »
I am trying to interface a OLED LCD using spi but for some reason, the lcd is updated very slowly. I checked the spi clock its close to 166 Khz but it should be 36 Mhz.
I have used mx cube for generating clock code. I am attaching the main and LCD files below.
 

Offline bugnate

  • Regular Contributor
  • *
  • Posts: 58
  • Country: us
Re: SLOW STM32F103 SPI CLOCK
« Reply #1 on: March 06, 2021, 07:51:36 pm »
I am trying to interface a OLED LCD using spi but for some reason, the lcd is updated very slowly. I checked the spi clock its close to 166 Khz but it should be 36 Mhz.
I have used mx cube for generating clock code. I am attaching the main and LCD files below.
Maximum SPI clock is 18 MHz.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf