I have PICAXE 18X and want to talk to a device using SPI 4 wire. I tried the spiin/spiout commands and gave me syntax error with this line. I then used the Shiftout_LSB routines in the manual, copied are they are in manual and PICAXE wired to suit but cannot get it to work. The prog downloads to PICAXE and prog seems to run but device not responding to SPI. I have downloaded the latest editor 5.1.4 and when I download to PICAXE tells me Firmware 8.6
Does the spiin/spiout only work on PICAXEs with dedicated SPI port?. Also the hspiout commands.
With the shiftout_LSB how is it possible to receive the shiftin_LSB data from the device at the same time? I was wanting to read the status of the device to see if it was receiving the shiftout_LSB command.
Also the manual routines seem to set the sdata bit then pulsout the sclk which would give a rising and falling clock edge and so clock in MOSI and clock out MISO ???. I would be grateful if someone could clarify what is meant to be happening, thanks
Does the spiin/spiout only work on PICAXEs with dedicated SPI port?. Also the hspiout commands.
With the shiftout_LSB how is it possible to receive the shiftin_LSB data from the device at the same time? I was wanting to read the status of the device to see if it was receiving the shiftout_LSB command.
Also the manual routines seem to set the sdata bit then pulsout the sclk which would give a rising and falling clock edge and so clock in MOSI and clock out MISO ???. I would be grateful if someone could clarify what is meant to be happening, thanks