Skip to main content
Anaelle Q
Associate II
April 12, 2018
Question

T6963C or SAP1024B Driver for Graphic Lcd controller (240*64) on STM32F4

  • April 12, 2018
  • 1 reply
  • 3196 views
Posted on April 12, 2018 at 13:40

Hi everyone,

I try to find a driver for control a graphic LCD withT6963C or SAP1024B controller.

I find some Arduino project but nothing with STM

If someone can help me !

Thank ,

Anaelle

I use this LCD : MC240064A6W-FPTLW-V2

With STM32F4 discovery board.

#lcd-driver #stm32f4-discovery #t6963 #sap1024b #graphic-lcd

Note: this post was migrated and contained many threaded conversations, some content may be missing.
This topic has been closed for replies.

1 reply

waclawek.jan
Super User
April 12, 2018
Posted on April 12, 2018 at 23:53

Not STM32-specific, but these

http://en.radzio.dxp.pl/t6963/

 

http://en.radzio.dxp.pl/t6963/arm/at91.htm

  are very cleanly written - the 'graphic' part is not mcu-specific, and in the 't6963c' part, the mcu-specific routines are all located at the top, and they are relatively easy to follow - they implement the variants of write command/write data/read data/read status.

JW

Anaelle Q
Anaelle QAuthor
Associate II
April 13, 2018
Posted on April 13, 2018 at 10:47

Hi , 

Thank you, 

It's helpfull  

I have one problem with traduction atmel lib to stm32 lib : 

__inline void outByte(unsigned char byte) { AT91F_PIO_CfgOutput(AT91C_BASE_PIOA,(0xFF << T6963_D0)); AT91F_PIO_ForceOutput(AT91C_BASE_PIOA, (unsigned int)(byte << T6963_D0)); }  __inline unsigned char inByte(void) { AT91F_PIO_CfgInput(AT91C_BASE_PIOA,(0xFF << T6963_D0)); return ((AT91F_PIO_GetInput(AT91C_BASE_PIOA) >> T6963_D0) & 0xFF); }

I don't know how to put this in stm32 'mode'.

I try this but it's doesn't work ...

__inline void outByte(unsigned char byte)

{

HAL_GPIO_WritePin(GPIOE,CE_LCD_Pin, (unsigned int)(byte<< T6963_D0));

//AT91F_PIO_ForceOutput(GPIOE, (unsigned int)(byte << T6963_D0));

}

__inline unsigned char inByte(void)

{

return ((HAL_GPIO_ReadPin(GPIOE, GPIO_PIN_7) >> T6963_D0) & 0xFF);

}

Thank for your help ! 

waclawek.jan
Super User
April 13, 2018
Posted on April 13, 2018 at 13:32

What's your hardware connection?

JW