263 of 307
ZBasic System Library 253 ZX Microcontroller Family In this example idata is not initialized before calling SPICmd(). If your SPI device needs specific data written to it during the read phase idata would need to be initialized before the call. Compatibility The use of a zero value to indicate that no data buffer is being supplied is not supported in BasicX compatibility mode. Also, in BasicX compatibility mode, both writeCnt and readCnt are Byte values and, thus, limited to a maximum of 255. See Also CloseSPI, OpenSPI