µTasker Forum
µTasker Forum => NXPTM M522XX, KINETIS and i.MX RT => Topic started by: tr111 on May 19, 2009, 09:37:22 AM
-
I want to use the 8 bit mode,but see the lcd.c(_fnWriteDisplay(LCD_CONTROL_PORT_SIZE rs, unsigned char ucData) find that:
IO_BUS_PORT_DAT = DataBus;
but the #define IO_BUS_PORT_DAT PORTTA
the PORTTA is the 4 pin i/0,that maybe the LCD_BUS_4BIT mode!
Pin 7 DB0 (Data Bus 0 - which to connected)???????
Pin 8 DB1 (Data Bus 1 - which to connected)???????
Pin 9 DB2 (Data Bus 2 - which to connected)???????
Pin 10 DB3 (Data Bus 3 - which to connected)???????
Pin 11 DB4 (Data Bus 4 - always connected)PORTTA[0]
Pin 12 DB5 (Data Bus 5 - always connected)PORTTA[1]
Pin 13 DB6 (Data Bus 6 - always connected)PORTTA[2]
Pin 14 DB7 (Data Bus 7 - always connected)PORTTA[3]
Can the utasker to use the LCD_BUS_8BIT ????????
-
Hi
The following details the configuration and use of the character LCD interface:
http://www.utasker.com/forum/index.php?topic=93.0
If you would like to use an 8 bit bus on the M52259 you need to activate LCD_BUS_8BIT and disable LCD_BUS_4BIT.
Then you need to define an 8 bit port, rather than the 4 bit TA port as used in the demo in 4-bit mode.
An example would be to use port TE (assuming 144 pin device) as follows:
#define IO_BUS_PORT_DDR DDRTE
#define IO_BUS_PORT_DAT PORTTE
#define IO_BUS_PORT_DAT_IN PORTIN_SETTE
Regards
Mark