RFWord question
Rayman
Posts: 14,640
in Propeller 2
Should RFWord read sequential words from hub?
Was hoping so but it appears to instead read the upper words of sequential longs.
I.e., skipping every other word....
Was hoping so but it appears to instead read the upper words of sequential longs.
I.e., skipping every other word....
Comments
That quote was cut from the P2 Assembly Instruction Set document which is linked somewhere in this forum. My copy may well be out of date now?
It doesn't seem to be working right, but maybe I'm doing something wrong...
Is your data in HUB long aligned? Place an alignl on a blank line before the declaration for hubLine1.
Here's the data in HUB:
This paints screen all black because it's only reading the upper words...
I would say that was long aligned, with an orgh and an alignl that's double precision alignment.
I would guess you should be reading $ffff, $0000, $ffff, $0000, etc ?
Do you get anything if you change the declaration to $ffff0000 ?
Better yet, set them to some none 0 and none ff values, say $0001fefe.
If I pick different colors, it works...
Read this, it may be connected?
forums.parallax.com/discussion/162569/streamers-absolute-addressing
What do you get for $AAFFFFAA? $AA00,$00AA?
It's all very confusing at this stage. And trying to remember what is and what isn't, and what will be.
Another 15 minutes and the clocks go back ... I can stay up later tonight (morning)!
$AAFFFFAA works fine. $FFFF0000 or $FFFFFFFF or $0000FFFF don't work...
It seems like it hangs with those...
I'm not sure it's my hardware anymore...
I think you will need Chip to clarify the current and future correct operation.
What about $FE patterns ?
RFWORD should read sequential words from hub. You need to do a RDFAST first, though, to get the hub FIFO interface in the read mode.
This worked at one time, but I might have broken it. I will look at it tonight.
I think either P2 or LCD just plain froze up.
Very strange. Since I'm doing setword I don't think what actually gets read should make any difference and yet $FFFF_FFFF makes it hang up...
Still could be some hardware issue, I'm using a lot of jumper wires right now...
On an FPGA?
I tested RFBYTE/RFWORD/RFLONG and they all worked as expected.
Seems I have some crosstalk between wires...
I added an extra ground wire, added a bypass cap and moved some wires around and it's all better now.
Sorry for the false alarm.