Kuroneko is your receiver working as most significant bit is received first?
We have enough instructions after receiving a token now that going at 10Mb/s rather than 5Mb/s may not be worth it.
However I will for sure give this a test when I get hold of some real target hardware.
It may be possible to use a FIFO for the Rxed tokens, prior to "unscrambling them".
In theory some of the Rx tokens should not be entered into the Rx FIFO and delivered to the applications.
However it practice it may be OK if they are. Provided they are acted on and removed prior to finding their way to the application. It just means that things like link RESET commands from the far end will not be acted on as quickly because they have to travel up the FIFO.
I really don't want to use another COG to do this processing.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
heater said...
Kuroneko is your receiver working as most significant bit is received first?
The transmitter sends a 9 bit value MSB first. It's received in the same order. The first byte is the actual payload (8x wc), the last bit the control bit (wz). If you look at the code, it's easy to latch onto it and either add it to the data (to form a 9 bit value, ATM done like this to keep the SPIN test happy) or make some controlled decisions.
add addr, addr ' make space for bit 9
if_c_ne_z or addr, #1 ' add bit 9
Post Edited (kuroneko) : 12/16/2009 2:06:10 PM GMT
Comments
At cost of 2 additional instructions at setup time, 9th bit can be accounted:
Patterns must be written in a way that they match 1 in 9th bit, and ptn_9th_bit_one contains ones in positions that match 9th bit.
Kuroneko is your receiver working as most significant bit is received first?
We have enough instructions after receiving a token now that going at 10Mb/s rather than 5Mb/s may not be worth it.
However I will for sure give this a test when I get hold of some real target hardware.
It may be possible to use a FIFO for the Rxed tokens, prior to "unscrambling them".
In theory some of the Rx tokens should not be entered into the Rx FIFO and delivered to the applications.
However it practice it may be OK if they are. Provided they are acted on and removed prior to finding their way to the application. It just means that things like link RESET commands from the far end will not be acted on as quickly because they have to travel up the FIFO.
I really don't want to use another COG to do this processing.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
Post Edited (kuroneko) : 12/16/2009 2:06:10 PM GMT