LCD interface with S12G48

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LCD interface with S12G48

727 次查看
sameergargate
Contributor I

Hi,

I am New to freescale Microcontrollers

I want to interface LCD 16X2 with S12G48.

Thanks in advance...

标签 (1)
0 项奖励
2 回复数

543 次查看
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 项奖励

543 次查看
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 项奖励