Transfer data (8 bits) to a TFT LCD

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Transfer data (8 bits) to a TFT LCD

ソリューションへジャンプ
3,897件の閲覧回数
m_giraldi
Contributor II

I have an application for TFT128x160, in this application I have the CS / RES / DI / WR / RD and D0 ~ D7 ports.
I am using MK22FX512Axxx12, I need to write 8 bits on ports D0 ~ D7, what is the best way to declare and write on D0 ~ D7 (8 bits)

*** Attached (PDF) is the full summary

0 件の賞賛
返信
1 解決策
3,815件の閲覧回数
FelipeGarcia
NXP Employee
NXP Employee

Hi Marcel,

 

To write to D0 to D7 please make sure you:

 

  • Enable the clock using: CLOCK_EnableClock(kCLOCK_PortD);
  • Set the pin as GPIO using: PORT_SetPinMux(PORTD, pinNum, kPORT_MuxAsGpio);
  • Initialize the pins as output with:

    gpio_pin_config_t config = {

        kGPIO_DigitalOutput,

        0,

    };

    GPIO_PinInit(GPIOD, pin, &config);

 To write data your approach using PDOR is correct.

 

Best regards,

Felipe

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
3,816件の閲覧回数
FelipeGarcia
NXP Employee
NXP Employee

Hi Marcel,

 

To write to D0 to D7 please make sure you:

 

  • Enable the clock using: CLOCK_EnableClock(kCLOCK_PortD);
  • Set the pin as GPIO using: PORT_SetPinMux(PORTD, pinNum, kPORT_MuxAsGpio);
  • Initialize the pins as output with:

    gpio_pin_config_t config = {

        kGPIO_DigitalOutput,

        0,

    };

    GPIO_PinInit(GPIOD, pin, &config);

 To write data your approach using PDOR is correct.

 

Best regards,

Felipe

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信