hi all,
I have a strange problem (or question) concerning the pin-numbering
of DOUT’s.
I builded a testing board to test IO pins. The DIN works fine, PIN-numbering as expected.
I use 10wire ribbon cables and DIL headers with smashTV’s PCB’s, one DIN and one DOUT
board are connected to the core.
I wrote a simple program that just displays the DIN-pin (pressed button) and switches
the pin with the same number DOUT. The strange thing is, that the DOUT registers
seem to have swapped LSB/MSB:
DOUT 0 -> DOUT 7
DOUT 1 -> DOUT 6
..
DOUT 7 -> DOUT 1
..
DOUT 8 -> DOUT 15
..
DOUT 15 -> DOUT 8
I checked the wiring back and forth, even checked
the datasheet of the stuffed registers (SN74HC595N),
where the outputs are numbered A-H, and the forward
output is H’. nothing explains this behaviour. my only
explanation is, that the registers seem to assign the
bits from H-A, not to A-H, which looks very strange to
me.
has somebody experienced something similar? or any
explanation? I could handle this in software, but
I would like to know what is going down there.
wiring is:
LED 0 -> J3::D0
LED 1 -> J3::D1
…
LED 8 -> J4::D0
etc.
DIN::J1 -> DOUT::J1 -> CORE::J8/J9 (10wire ribbon cable, DIL headers)
thanks in advance,
this
