Engee documentation

BA-IS-XX SPI

Page in progress.

SPI operation with usage of the RITMeX BA-IS-XX I/O module.

ba is xx spi ru

Description

The block is used for SPI operation with usage of the RITMeX BA-IS-XX I/O module.

The diagram below shows the SPI operation modes with different phases.

ba is xx spi 1 ru

Ports

Input

TX - data to be sent via SPI
vector

Details

Can be an array depending on the value of the Number of words parameters.

Data type

UInt8.

Output

RX - data received via SPI
vector

Details

Can be an array depending on the value of the Number of words parameter.

Data type

UInt8.

Parameters

Module number - unique module identification
1 (by default) | 2 | 3 | 4 | 5 | 6 | 7 | 8

Details

Used to uniquely identify a module when more than one I/O module of the same type is installed in a real-time machine.

Module numbers are signed on the housing of the RITM.

Channel number - SPI channel number
1 (by default) | 2 | 3 | 4 | 5 | 6 | 7 | 8

Mode - SPI operating mode
Master (by default) | Slave.

*`Polarity'' — SCK line polarity
`Active High (by default)
| `Active Low'.

Phase - phase value for data transmission
Phase 1 (by default) | `Phase 2'.

Number of words - number of words to send and receive via SPI
1 (By default) | 2 | `3 | `4 | `5 | `6 | `7 | `8 | `9 | `10 | `11 | `12 | `13 | `14 | `15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32

  • SPI frequency divider* — frequency value of SCK signal in Master mode (from 100 kHz to `5 MHz)
    `2 (By default)
    | 1 ` | `3 | `4 | `5 | `6 | `7 | `8 | `9 | `10 | `11 | `12 | `13 | `14 | `15 | 16 | 17 | 18 | 18 | 19 | 20 | 21 | 22 | 23 | 23 | 24 | `25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50

  • SPI Frequency* - SPI frequency value in MHz
    `5.0 (By default).

Calculation Step - calculation step in seconds with which SPI data is exchanged
`-1 (By default).