Page 296 of 346 Start Back Next End ZBasic System Library 284 ZBasic Microcontrollers 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