主要内容

Model Configuration Parameters

Model configuration parameters control model behaviour, simulation, code optimizations, interfaces, code style, build options, and other aspects of the generated code. When you create a new model, it contains the default configuration set that specifies the default values for the model configuration parameters. You can view and update the configuration parameters by following these steps.

Hardware Implementation Pane Overview

Default Hardware Implementation Pane

Configuration parameters

Configure hardware board to run Simulink® models.

  1. In the Simulink Editor, select Modeling > Model Settings.

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

  3. Set the Hardware board parameter to Renesas RH850 U2A Based.

  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. To apply the changes, click Apply.

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

Hardware Board Settings

ParameterDescriptionDefault Value

Device Series

Select the device series for the Renesas RH850 U2A Based hardware board.

U2A16

Processing Unit

Select the processor unit for the device series.

PE0

Task Profiling on Processor

ParameterDescriptionDefault Value

Show in SDI

Display task profiling results in Simulink Data Inspector.

Off

Save to file

Save profiling results to a file.

Off

Overwrite file

Overwrite the profiling file if it exists.

Off

Simulation Settings

ParameterDescriptionDefault Value

Set random number generator seed

Enable to set a seed value for the random number generator.

Off

Seed value

Specify the seed value for the random number generator.

default

Cache input data at task start

Enable to cache input data at the start of each task.

Off

Project folder

Specify the project folder for simulation data and files.

Soc_prj

Browse

Browse to select the CDF folder.

 

Build options

ParameterDescriptionDefault Value

Build action

Defines how Embedded Coder® responds when you build your model.

Build, load, and run

Configuration description file (CDF)

Select the Configuration description file (CDF).

<Select RH850 CDF File>

ImportClick Import to import a CDF file. 
Browse

Browse to select the CDF file.

 

Refresh

Refresh the configuration file. 

Generate MCAL code for all modules

Generate MCAL code for all modules.

Off
Disable parallel build

Disable parallel build for code and driver sources.

Off

Programmer

ParameterDescriptionDefault Value

Communication interface

Select the programming interface.

CSI

Auto select hardware

Automatically selects the hardware.

on

Select hardware

Select the hardware. 

Refresh

Refreshes the list of available hardware. 

Clocking

ParameterDescriptionDefault Value

MCU clock setting configurations

Select the CDF arxml file to configure MCU clock settings.

Select CDF arxml file in Build Options

MCU clock setting configurations

Displays the main system clock frequency for the CPU. Requires selection of CDF arxml file.

Select CDF arxml file in Build Options

High speed peripheral clock CLK_HSB (MHz)

Displays the high speed peripheral clock frequency (CLK_HSB). Requires CDF arxml file selection.

Select CDF arxml file in Build Options

Connectivity

ParameterDescriptionDefault Value

SCI/USART

Select the UART interface.

r_sci_b_uart

COM Port

Select the COM port for communication.

COM1

Baud rate

Defines the rate at which data is transferred over UART interface. (in bits/s).460800

External Mode

ParameterDescriptionDefault Value

Communication interface

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

XCP on Serial

Verbose

Sets to view external mode execution progress and updates.

on

Set logging buffer size automatically

Automatically set the number of bytes to preallocate for the buffer in the hardware during simulation.

on

Logging buffer size (in bytes)

Specify the memory buffer size for XCP-based External mode simulation.

1000
Maximum number of contiguous samplesSet the maximum number of contiguous samples for data logging in external mode.8

TSG3

ParameterDescriptionDefault Value

Configure TSG30

Enables configuration options for TSG30.

Off

TSG3 mode

Sets the operating mode for TSG3.

HT PWM

Trigger ADC event

Selects the event that triggers ADC sampling.

None

Update duty cycle event

Selects the event for updating the duty cycle.

Valley

Reload duty cycle counter event

Selects the event for reloading the duty cycle counter.Valley

Carrier frequency (KHz0)

Sets the carrier frequency for PWM generation.8

U Phase duty ratio (Percentage)

Sets the duty ratio for U phase as a percentage.50

V Phase duty ratio (Percentage)

Sets the duty ratio for V phase as a percentage.50

W Phase duty ratio (Percentage)

Sets the duty ratio for W phase as a percentage.50

Positive dead time (Raw counts)

Sets the positive dead time in raw counter values.50

Inverse dead time (Raw counts)

Sets the inverse dead time in raw counter values.50

Configure TSG31

Enables configuration options for TSG31.Off

TSG3 mode

Sets the operating mode for TSG3.HT PWM

Trigger ADC event

Selects the event that triggers ADC sampling.None

Update duty cycle event

Selects the event for updating the duty cycle.Valley

Reload duty cycle counter event

Selects the event for reloading the duty cycle counter.Valley

Carrier frequency (KHz0

Sets the carrier frequency for PWM generation.8

U Phase duty ratio (Percentage)

Sets the duty ratio for U phase as a percentage.50

V Phase duty ratio (Percentage)

Sets the duty ratio for V phase as a percentage.50

W Phase duty ratio (Percentage)

Sets the duty ratio for W phase as a percentage.50

Positive dead time (Raw counts)

Sets the positive dead time in raw counter values.50

Inverse dead time (Raw counts)

Sets the inverse dead time in raw counter values.50