You pretty much saw the whole program. It's all the functions from the sample code that I need to write data, write commands, and initialize display. Then there is the display_bg() was the one we were talking about before. So if any, the display_bg function would be leaving the signals in the wrong state.
As for the 50ns delay... Sorry I forgot to change that, I did realize it wasnt 50ns when I figured the same as you did, I have the #define nop() _asm nop _endasm , (forgot to change out the delay(50), but it turns out to be 1 microsecond. I know my cpu speed is 20MHz , which is 50ns... So what else can get me 50ns?
Man that makes me feel dumb, talking about the delay(50) when I forgot to change it!...
I just get so occupied in other tasks and classes, I mess up sometimes... Not that it matters but I did get a 100 on my digital signal procs. exam.. and a 102 on my electronic 2 exam : )
But now to focus on this matter, so you said it, I dont get how to reset the RAM after I display an image... That's probably why the first image turns out to be the second image. I'm trying to figure it out from the datasheet, is it called GRAM?
Thanks, sorry for some mistakes.