MQX + K60 + LCD 2X16 character

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQX + K60 + LCD 2X16 character

786 Views
javier1
Contributor III

Hello,

 

I have a k60n512 tower kit, and i want connect it a 2x16 character LCD (8 bit mode) with MQX3.7.

 

I use RS (Register select)(PTC0), R/W (don´t use. I have connected to GND for write only), E (enable)(PTC2), and D0-D7 (data bus)(PTC1,PTC3,PTD9,PTC4,PTC7,PTC8,PTC11,PTC12).

 

The controller is a Hitachi HD44780 compatible.

 

1- I can use GPIO, or I have to connect to a specific port? I have connected  the signals to GPIO in my prototype board.

 

2-Can anyone give me a code example?

 

Thank you very much.


 

0 Kudos
2 Replies

539 Views
c0170
Senior Contributor III

Hi javier1,

 

LCD with HD44780 compatible are wide spread used displays. There are a lot of literature available on the internet. LWGPIO handles GPIO module, good starting point.

 

There are some example codes, unfortunately not for kinetis, on the forum: https://community.freescale.com/thread/85972 . Means you have to port it to the Kinetis, which I don't consider that much difficult. Good luck! And share your result.

 

Regards,

MartinK

0 Kudos

539 Views
javier1
Contributor III

Thank you very much Kojto. I do it.

 

Regards.

0 Kudos