August 2008
Beginner to intermediate
304 pages
6h 2m
English
• SPI system connections
• SPI function set
• SPI test system
The serial peripheral interface master controller uses hardware slave selection to identify a peripheral device with which it wishes to exchange data (refer to Section 1.4 for full details of the signaling protocol). The available set of SPI driver functions are shown in Table 3.7
| Operation | Description | Example |
|---|---|---|
| SPI SETUP | Initializes SPI serial port | setup_spi(spi_master); |
| SPI READ | Receives data byte from SPI port | inbyte=spi_read(); |
| SPI WRITE | Sends data byte via SPI port | spi_write(outbyte); |
| SPI TRANSFER | Sends and receives via SPI | inbyte=spi_xfer(outbyte); |
| SPI RECEIVED | Checks if SPI data received | done=spi_data_is_in(); |
The test system has a slave transmitter ...
Read now
Unlock full access