LCD interface with S12G48

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

LCD interface with S12G48

689 Views
sameergargate
Contributor I

Hi,

I am New to freescale Microcontrollers

I want to interface LCD 16X2 with S12G48.

Thanks in advance...

Labels (1)
0 Kudos
2 Replies

505 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

I would like to provide you an example code for 2x16 LCD HD44780 driven display 16265B. the code is made for G64 but it is almost the same as G48.

For more info about functions look into attached pdf file.

BTW; delay functions are made by means SW loops in order to let the timer free for another purpose. I tested it on XTWR-S12G64 8MHz oscclk 16MHz BUSCLK is set by PLL.

Both types of accesses Read and Write are enabled in the HD44780.H file. Pin connections to the MCU is described in the main.c file and setup is done in the HD44780.h file.

Best regards,

Ladislav

0 Kudos

505 Views
iggi
NXP Employee
NXP Employee

Hi,

it is possible to interface the peripheral module with the microcontroller via SPI communication interface.
The S12G48 does not feature dedicated LCD driver integrated on chip.

You can chekc an old post about interfacing two tower modules:
TWR-LCD and TWR-S12G128 Compatible?

Hope the information helps.

0 Kudos