Author Topic: STM32 TFT LCD library  (Read 12001 times)

0 Members and 1 Guest are viewing this topic.

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6539
  • Country: es
Re: STM32 TFT LCD library
« Reply #25 on: March 15, 2021, 04:10:36 pm »
how to see disassembly in CubeIDE?
Code: [Select]
GPIOB->ODR = ( d ) ; GPIOA->BSRR = (0x00000002)  ;GPIOA->BSRR = (0x00020000 ) ;little faster

Windows...show view..disassembly.
You need debug build.
 I don't understand your code...
Put data in GPIOB.
Set GPIOA1
Reset GPIOA1

The full GPIOB is not available in the blue pill board.
Also you can't just put the value into ODR, since that way you overwrite the whole port, 16-bit wide. You need a mask.
Unless you don't care about the rest of the pins.
« Last Edit: March 15, 2021, 04:18:08 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline strawberryTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 1199
  • Country: lv
Re: STM32 TFT LCD library
« Reply #26 on: March 15, 2021, 04:54:05 pm »
16bit wide data to 16bit GPIOB0..15, GPIOA1 to toggle data clock
Nucleo64
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6539
  • Country: es
Re: STM32 TFT LCD library
« Reply #27 on: March 15, 2021, 05:55:17 pm »
Oh, nice in that case. Should be much, much faster.
Ensure the clock pulse is long enough.
 I was doing it for the 103 blue pill :-+
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf