I am trying to interface LCD in 4 bit mode using MQX. There are a lot of example code available and in every code i found that the data is send to the particular port of the lcd .
void lcddata(char dataout)
PORTD = dataout;
LCD_RS = 1 ; //PORTA|=(1<<rs);
RA0 = 1 ;
LCD_RW = 0 ; //PORTA&=~(1<<rw);
but i dont know how to implement this with mqx.
i tried and this is what i found is this right?
void lcd_cmd1( char * LCDCmd)
GPIOC_PDOR = 0x03;
writing directly to the data register of the port.
Thanks and regards,