--
MarekPalka - 02 Nov 2006
Port C7 - 0 is used as an output of Etrax and port C15-8 is used as input. With first trigger etrax sends what kind of action(M) it would like to do:
PC 7 |
6 |
PC 5 - 0 |
R/~W |
reserved |
device number |
Device number:
- FPGA : 0
- DSP : 1
- MDC add on board :2
- ...
In second trigger higher part of address(A3) is sent,in fifth lower part(A0).
If this is write mode then etrax is sending values (D3 ... D0) which has to be write to device.
At the end FPGA is sending valid(with data in read mode).
Comunication can be at any point reseted.
To read value from device: ./rwv2 r 0 1 # 0 - device, 1 - address.
To write value to device: ./rwv2 w 0 1 a # 0 - device, 1 - adress ,a - value.