Documentation search search close
CONTENTS
https://www.speedgoat.com/help/slrt/page/icon_documentation.jpg
v10.0.1.x for R2026a
View other versions

Serial - Write HW FIFO v1

Serial - Write HW FIFO v1 — The Serial Write HW FIFO driver block configures the data that will be sent to a Serial Receiver.

Library

Simulink Real-Time - Speedgoat

Description

The Serial Write HW FIFO v2 driver block can write up to 256 bytes of data present in the I/O module hardware buffer.

Ports

Inputs
data

A vector of 129 elements which represents the Serial HW FIFO. First element of this vector indicates how many bytes have to be written to the FIFO. Subsequent elements form the data.

enable

A global switch which enables (1) or disables (0) the read operation.

Parameters

Configurable I/O Module ID

This parameter associates a code module block with a configurable I/O module setup block. Set this value to match the Module ID defined in the setup block of the required configurable I/O module.

Channel Vector

A vector of channels this driver block entity will access. You can specify channels in the range 1-N (N = the number of channels implemented in your specific configuration file defined in the Setup block). The width of this vector also defines the subsequent size of some of the following parameters if scalar expansion applies. With a single block, all the channels of the block are synchronized.

TX-FIFO mode

From the list, choose

  • Halt model on buffer overflow

  • If required, waits until buffer is free

  • Ignore buffer overflow

This parameter defines how the block reacts on TX-FIFO conditions.

Sample Time

Defines the base sample time at which this driver block gets its sample hit. This parameter can also be set to -1 for inherited sample time. The units are in seconds.