Hi All
I have a little issue.
Have designed and have my first rev of our board up and running with the EMX module.
Connected to the module we have two CC1101 from Texas Instruments sharing the same SPI bus.
The power on reset sequence of the CC1101 have CHIP READY signal on the SO pin of the SPI. So to check if the chip have started and are ready we need to toggle the CS signal and then monitor the SO Signal.
if i write:
OutputPort ChipSelectRadio0 = new OutputPort((Cpu.Pin)GHI.Hardware.EMX.Pin.IO15, true);
OutputPort misoRadio0 = new OutputPort((Cpu.Pin)GHI.Hardware.EMX.Pin.IO24, true);
bool misoState = misoRadio0.Read();
ChipSelectRadio0.Write(false);
misoState = misoRadio0.Read();
ChipSelectRadio0.Write(true);
misoState = misoRadio0.Read();
My SO signal is always true, if I use my logic analyzer and remove all of the misoRadio0 code I can see that the chip is ready and the SO signal «follow» my CS signal.
My Question, is there a way to read the pin level directly, bypassing all between Micro framework codes? If yes how?
I am used to working at a lower level so all this is a bit new