Altera_Forum
Honored Contributor
11 years agoLCD Master interface and NIOS Pipeline issue
I all,
I've a SoC based on a NIOSII/f and a LCD controller with a Master interface for accessing the memories in order to update the display content. Here is the function I use to "clear/fill-up with a color the display.
void Pe_lcdClear(UInt16 background)
{
pe_lcdBackground.RGB = background;
pe_lcdStartDma((Pixel*)&pe_lcdBackground, LCD_W*LCD_H, False); //False: do not increment the source address
}
The global variable "pe_lcdBackground" is located in to the onchip_Ram. This is the code flow:
Pe_lcdClear(0x0000); //Black Background
Pe_lcdClear(0xFFFF); //White Background
Pe_lcdClear(0xFFFF); //White Background
On the display I see the following: - black
- black
- white