Forum Discussion
Altera_Forum
Honored Contributor
21 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- PIO_LCD_IO_COMMAND=LCD_CMD_FUNCTION_SET | LCD_CMD_8BIT; PIO_LCD_IO_COMMAND=LCD_CMD_FUNCTION_SET | LCD_CMD_8BIT | LCD_CMD_TWO_LINE; PIO_LCD_IO_COMMAND=LCD_CMD_ONOFF; PIO_LCD_IO_COMMAND=LCD_CMD_CLEAR; PIO_LCD_IO_COMMAND=LCD_CMD_MODES | LCD_CMD_MODE_INC; PIO_LCD_IO_COMMAND=LCD_CMD_ONOFF | LCD_CMD_ENABLE_DISP;[/b] --- Quote End --- There's no delays here, presumably these commands will be far too quick for the LCD. Have you traced through the code? Strictly speaking you sh9uldn't be writing directly to a device from userland, but a lack of MMU on nios shouldn't prevent this from happening. What exactly "not works", have you looked at the signals under a scope? Adrian