Writer

SPI Writer

    Writer

Library

Basic/SPI

Parameters

Writer_0

NameLabelDescriptionData TypeValid Values

busmode

Bus mode

Structure

busmode/master

Master

Number

0
1

SS

Slave Select pin

Defines the pin on which the slave is connected

br

Maximum SPI speed

Defines the maximum speed of communicating supported by the connected device

Scalar

dataorder

Data order

Defines if data is shifted in Most Significant Bit (MSBFIRST) or Least Significant Bit (LSBFIRST) first

Structure

dataorder/msbfirst

Most Significant Bit first

Number

0
1

dataorder/lsbfirst

Less Significant Bit first

Number

0
1

clockphase

Clock phase

Defines whether data is shifted in and out on the rising or falling edge of the data clock signal

Structure

clockphase/rising

Rising

Number

0
1

clockphase/falling

Falling

Number

0
1

clockpolarity

Clock polarity

Defines whether the clock is idle when high or low

Structure

clockpolarity/high

High

Number

0
1

clockpolarity/low

Low

Number

0
1

mbc

Message byte count

Scalar

Writer_1

NameLabelDescriptionData TypeValid Values

use_open_port

Use opened serial port

if this checkbox is checked ON, the block uses the serial communication channel opened by the ArduinoConfiguration block.
If the model is connected to multiple Arduino boards, it should be unchecked, and the actual communication port should be provided as a block parameter.

Number

0
1

com_port

Communication port

String

Ports

NameTypeDescriptionIO TypeNumber

Port 1

activation

input

1

Port 2

explicit

input

1

Diagram

Writer