I am New to freescale Microcontrollers
I want to interface LCD 16X2 with S12G48.
Thanks in advance...
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.
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.
Retrieving data ...