Hello,
I'm back with some news : i tried to understand why Pommie's code is fully working with 18F4550 and same code ported to 18F2620 won't display anything.
Actually i found a partial response to that problem :
In order to have something displayed with 18F2620 code, ww variable
must be set as ROM char :
Code:
unsigned [COLOR="Red"]rom[/COLOR] char ww;
Doing this gets results with 18F2620, now something is been displayed,
but there are sliding pixels and lagging issues, so it is a very bad display.
Here are screen captures of Pommie's 18F4550 code result when passing "ww" has
rom char , and when setting ww as a regular unsigned char :
Code:
unsigned char XPos,YPos, ww;
( i of course get the same results if i use 18F2620 )
So in order to recap a bit,
here is the comparaison of results i got when using : 18F4550 vs 18F2620 :
18F4550 displays
properly when using ww as normal unsigned char.
18F2620 displays
nothing when using
ww as normal unsigned char.
18F4550 displays
badly when using ww as unsigned
rom char.
18F2620 displays
badly when using
ww as unsigned rom char.
So we can say that the problem comes in when the code return ww.
then something gets wrong inside Pic memory ...
Maybe we need to copy ww from ROM to RAM and then proceed the loop, i don't know how to do that ...
Can someone help me to solve this problem ?