Main Content

STM32F3xx ベースのボード

ADC、符号化器、タイマー、UART などの周辺装置を構成して使用する

STM32F3xx プロセッサベースのボードで利用可能な ADC、符号化器、タイマー、UART などの周辺装置を使用して Simulink® モデルを作成します。STM32F3xx プロセッサベースのボード用のモデルを準備することで、STM32CubeMX プロジェクトを Simulink と一緒に使用して、コードを生成し、そのコードをハードウェアに展開できます。モデル コンフィギュレーション パラメーターを使用して、サポートされているターゲット ハードウェアとのインターフェイスを作成するように Simulink モデルを構成します。

ブロック

すべて展開する

Analog to Digital ConverterConvert analog signal on ADC input pin to digital signal (R2021b 以降)
UART/USART ReadRead data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (R2022a 以降)
UART/USART WriteWrite serial data from the Universal Asynchronous Receiver Transmitter (UART/USART) port (R2022a 以降)
Digital Port ReadRead GPIO pin status (R2021b 以降)
Digital Port WriteSet GPIO pin status (R2021b 以降)
Hardware InterruptTrigger downstream function-call subsystems from interrupt service routine (R2021b 以降)
EncoderMeasure rotation of encoder in counts (R2022b 以降)
PWM OutputGenerate square waveform on enabled channels using timer module (R2021b 以降)
TimerStarts timer counter and provides current counter value (R2022b 以降)
Timer CaptureOutput the capture compare register value (R2022b 以降)
Byte Pack入力信号を uint8 ベクトルに変換
Byte Unpack uint8 ベクトルを入力信号に変換
Byte Reversal入力語のバイト順を反転
Memory CopyCopy data from and to memory section
Idle TaskCreate free-running task (R2024a 以降)
Protocol EncoderEncode input data into a uint8 byte stream by specifying the packet structure (R2023a 以降)
Protocol DecoderDecode a uint8 byte stream by specifying the packet structure (R2023a 以降)

トピック