Skip to main content
Yuora
Associate
November 24, 2019
Question

Can address pin A25 (STM32F765II) be used for LCD 8080 interface in case of 16 bit data?

  • November 24, 2019
  • 7 replies
  • 1616 views

I am trying create drivers for LCD using 8080 interface and STM32F765II cpu. In order to config the cpu I use STM32CuBeMX and I can select line A25 to switch command/data even when I set 16 bits data bus. But also I found next text in the datasheet:

"In case of a 16-bit external memory width, the FMC will internally use HADDR[25:1] to generate the

address for external memory FMC_A[24:0]. In case of a 32-bit memory width, the FMC will internally use

HADDR[25:2] to generate the external address"

So my questions are:

Can A25 address line be used to switch command/data in case of 16 bit width? If yes how I can switch its state?

This topic has been closed for replies.

7 replies

Tesla DeLorean
Guru
November 24, 2019

You could use any of the external address bits.

You'd read/write to a different address, ie 0x60000000 or 0x60000000 + (1 << 25)

1 << 26 -> 0x40000000 which would be another bank select.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Yuora
YuoraAuthor
Associate
November 25, 2019

Thank you for answer.

it seems that when I use address 0x60000000 + (1 << 25) to read or write 16 bit width data it doesn't affect A25 pin but A24 pin is changed. It works like datasheet describes: "In case of a 16-bit external memory width, the FMC will internally use HADDR[25:1] to generate the

address for external memory FMC_A[24:0]". But stm32cubemx app allows select A25 pin to use for data/command switching in case of 16 bit width.

Is there any another way to set value to A25 pin? Or is it a bug in stm32cubemx application?

Tesla DeLorean
Guru
November 25, 2019

Haven't we already established that A25 Internally is shifted to A24 Externally for a 16-bit width device.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
waclawek.jan
Super User
November 25, 2019

Yes you're right, you can't use the A25 pin in 16-bit mode.

@Amel NASRI​  , this appears to be a bug in CubeMX.

JW

Please change your username to a normal nick.

Amel NASRI
ST Technical Moderator
November 25, 2019

OK, this problem is tracked internally.

Thanks for highlighting it.

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
waclawek.jan
Super User
November 25, 2019

Thanks, Amel.

Jan