DolphinV4 API
1.6.1.0
|
Modules | |
SPI config parameters | |
SPI structures and constants | |
SPI functions |
The SPI module is used for communication between the DOLPHIN IC and a HOST using the SPI protocol. The SPI module supports communication where the DOLPHIN acts as SPI-Master and the HOST acts SPI-Slave.
The SPI module supports packet transmission. The size of one packet can be 1,2,3 or 4 bytes. The CS can't be modified during packet transmission. The maximum speed of one packet transmission is 2Mbit. Between two packets a certain processing delay is needed called interpacket delay. size of the interpacket delay depends on the following factors:
The interpacket delay + the packet transmission speed gives the real SPI communication speed. The following table shows the real SPI speed for different packet size @ 2MHz packet clock speed.
The initialization of the SPI module is done through Dolphin APIConfigurator. The generated settings are saved to the file EO3100I_CFG.h.
The SPI interfaces uses the following pins:
There are two possibilities how control CS (configured with spi_init with the parameters).
To manualy controll the CS the function spi_setCS is used. In automatic CS the CS raised and lowered between each packet automaticly.