My uPP DMA setting:
Window Address = 0x80004000
Byte Count = 0x8010
Line Count = 3
Line Offset Address = 0x8010
And the problem is:
first line the data from uPP is ok but the second line the data from uPP is wrong.
I found when fist line finished (by setting Line Count = 1), DMA Current Address become 0x7FFFC010 instead of 0x8000C010.
if I set Line Offset Address = 0x7000, DMA Current Address become 0x8000B000, that's no problem.
My question is:
Is the Line Offset Address using twos complement, or there is a bug in my codes?
what should I do to find my problem and correct it?