Quick update and questions:
So I went down the path of bit-bashing to read/write to the Tag. I was writing it in VB.NET and found that bit shifting was not working in VB.NET, annoying, but good because it made me learn C#.
I am using the IO60P16 for the input/output and finally got all the code written (the messages being sent are DNP messages so I had CRC-16 DNP checks along the way) and got to testing and found that it read/writes really slowly.
I timed it at about 5ms for a read/write of a pin. With 128bytes to read/write, that time adds up real fast.
So I have decided to try and get it working off the pins on the mainboard.
Problem, I am struggling to get it to work.
I keep getting a Microsoft.SPOT.Hardware exception error.
So, using a cerbuino Net, can anyone get me starting on defining the pins on the mainboard and writing and reading to them.
This is what I have so far.:
public partial class Program
Cpu.Pin pwr_pin = GHI.Hardware.FEZCerb.Pin.PB11; //D0
Cpu.Pin rst_pin = GHI.Hardware.FEZCerb.Pin.PB10; //D1
Cpu.Pin clk_pin = GHI.Hardware.FEZCerb.Pin.PB12; //D2
Cpu.Pin dat_pin = GHI.Hardware.FEZCerb.Pin.PC14; //D3
pwr = new OutputPort(pwr_pin, false);
clk = new OutputPort(clk_pin, false);
rst = new OutputPort(rst_pin, true);
pwr = new IO60P16.OutputPort(io60p16 , IO60P16.IOPin.Port0_Pin0, false);
clk = new IO60P16.OutputPort(io60p16, IO60P16.IOPin.Port0_Pin1, false);
rst = new IO60P16.OutputPort(io60p16, IO60P16.IOPin.Port0_Pin2, true);
//dat_pin set to port1_pin3
rs232.serialPort.DataReceived += new GT.Interfaces.Serial.DataReceivedEventHandler(Port_DataReceived);