The Picaxe Basic manual says about the spiout command:
- sclk is a variable/constant (0-7) which specifies the i/o pin to use as clock.
- sdata is a variable/constant (0-7) which specifies the i/o pin to use as data.
That did not work on my 28X1 - the reason being that actually it's not I/O pins (i.e. portc) but regular output-only pins (portb). Guess that should be fixed. I haven't tried it (my SPI slave doesn't have an SDO) but I suspect the sdata pin on the spiin command must be a portc pin though?
Wolfgang
'
- sclk is a variable/constant (0-7) which specifies the i/o pin to use as clock.
- sdata is a variable/constant (0-7) which specifies the i/o pin to use as data.
That did not work on my 28X1 - the reason being that actually it's not I/O pins (i.e. portc) but regular output-only pins (portb). Guess that should be fixed. I haven't tried it (my SPI slave doesn't have an SDO) but I suspect the sdata pin on the spiin command must be a portc pin though?
Wolfgang
'