Using Arduino Config

Target Category: Arduino

The Arduino Config block lets you configure settings for the Arduino.

Boot Init Code: Specifies user C code to initialize the chip.

Control Clk Prescale: Chooses the prescale factor for the PWM-based control clock. If the PWM is also used as an output peripheral, this setting must match the setting of the PWM block in the diagram.

Control Clk Src: Chooses periodic sampling interrupt source for the main control loop in Embed.

CPU: Specifies the CPU types. It is important to select the exact CPU type for the specified target.

CPU Speed: Indicates the speed of the CPU.

Ctrl Clk Count Mode: Chooses the count mode for the PW-based control clock. If the PWM is also used as an output peripheral, this setting must match the setting of the PWM block in the diagram.

Multiple of Crystal Freq: Indicates the multiple of crystal frequency.

Virtual Comport: Chooses the serial communications port that corresponds to your Arduino. If you do not know the correct serial port number, start the Arduino IDE and click Tools > Port to find it.