stm32f103rbt6 PWM Servo & TFT SPI problem

Hallo. I have some problem.

In my project I used the STM32F103RBT6 microcontroller in the LQFP64 case with 8MHz external quartz.

The microcontroller controls, among others, two servos and a TFT 320x240 ILI9341 display. Display connection:

TFT_DC PB11

TFT_CS PB10

TFT_RST PB2

MOSI PA7

MISO PA6

SCK PA5.

I used PB14 and PB15 to control the servo.

When I use board Generic STM32F103RBT6 Blue Button from the library: https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json

servo on pins PB14 and PB15 works without any problem, but TFT works very slowly.

When I use board core Gereric STM32F103RB 72MHz from the library: http://dan.drown.org/stm32duino/package_STM32duino_index.json

servo does not work on pins PB14 and PB15, TFT displays very quickly. It looks like PWM doesn't work on these pins. Servo works on PA9 pin for example.

I have everything assembled on the PCB so I would like to use PB14 and PB15.

Please see screens.

Regards, Robert


Sign In or Register to comment.