The SPI (Serial Peripheral Interface) examples demonstrate SPI master and slave modules and events interface incorporated in DLN-series adapters.
SPI Master Configuration SoftwareConfigures SPI master interface - SPI mode, frequency, slave select pins, SPI data frames size and SPI delays. |
|
SPI Master Full-duplex Read/Write SoftwarePerforms synchronous full-duplex SPI transfer. |
|
SPI Slave Configuration SoftwareConfigures SPI slave interface - SPI mode, frame size and SPI slave events. |
|
SPI Slave Receive SoftwareYou can use "SPI Slave Receive" application to receive data from SPI slave device. |
Use "SPI Master Port Configuration" software application to configure the SPI master interface of your DLN-series adapter. You can also configure the SPI master interface by clicking the "Configure" button in SPI Master Read/Write program.
"SPI Master Port Configuration" software application allows you to configure the following SPI Master parameters:
At CPOL=0 the base value of the clock is zero.
At CPOL=1 the base value of the clock is one (inversion of CPOL=0).
Use "SPI Master Read Write" software application to write and obtain data through SPI Interface.
The following application components are available:
Use "SPI Slave Port Configuration" software application to configure the SPI slave interface of your DLN-series adapter. You can also configure the SPI slave interface by clicking the "Configure" button in SPI Slave Receive program.
"SPI Slave Port Configuration" software application allows you to configure the following SPI Slave parameters:
At CPOL=0 the base value of the clock is zero.
At CPOL=1 the base value of the clock is one (inversion of CPOL=0).
That is, CPHA=0 means sample on the leading (first) clock edge, while CPHA=1 means sample on the trailing (second) clock edge, regardless of whether that clock edge is rising or falling. Note that with CPHA=0, the data must be stable for a half cycle before the first clock cycle. For all CPOL and CPHA modes, the initial clock value must be stable before the chip select line goes active.
You can use "SPI Slave Receive" software to receive data from SPI slave device.
The following application components are available: