Model Configuration Parameters for BBC micro:bit

Hardware Implementation Pane Overview

Default Hardware Implementation Pane

Configure hardware board to run Simulink® models.

  1. In the Simulink Editor, select Simulation > Model Configuration Parameters.

  2. In the Configuration Parameter dialog box, click Hardware Implementation.

  3. Set the Hardware board parameter to BBC micro:bit.

  4. The parameter values under Hardware board settings are automatically populated to their default values.

    You can optionally adjust these parameters for your particular use case.

  5. Click Apply to apply the changes.

For more information on selecting a hardware support package and general configuration settings, see .

Build Options

ParameterDescriptionDefault Value

Build action

Defines how Simulink Coder™ responds when you build your model.

Build, load, and run

Clocking

ParameterDescriptionDefault Value

CPU Clock (MHz)

The CPU clock frequency in MHz.

16

I2C

ParameterDescriptionDefault Value

Serial clock (SCL) pin

Sets serial clock (SCL) pin.

I2C_SCL0

Serial data (SDA) pin

Sets serial data (SDA) pin.

I2C_SDA0

SPI

ParameterDescriptionDefault Value

Master output slave input (MOSI) pin

Sets the pin that connects the master output to the slave input.

MOSI

Master input slave output (MISO) pin

Sets the pin that connects the slave output to the master input.

MISO

Clock (SCK) pin

Sets serial clock (SCK) pin.

SCK

SCI

ParameterDescriptionDefault Value

Baudrate (in Hz)

Defines how fast the data is sent over a serial line.

115200

Receive pin

Sets the receiving pin of UART.

USBRX

Transmit pin

Sets the transmitting pin of UART.

USBTX

Data bits length

Sets the number of data bits to transmit.

8

Parity

Sets the type of parity checking to identify low-level errors.

None

Stop bits

Sets the number of stop bits to indicate end of a packet.

1

External Mode

ParameterDescriptionDefault Value

Communication interface

Sets the transport layer used to exchange data between host computer and hardware.

serial

Serial port

Sets the serial port on hardware board.

COM20

Verbose

Sets whether to view external mode execution progress and updates.

on