主要内容

外设管理

使用模块、硬件映射工具和配置参数设置配置 Infineon® AURIX™ TC4x 微控制器

在与目标硬件通信之前,首先应用模块设置、硬件配置参数和硬件映射工具设置。

模块

全部展开

Digital Port ReadRead GPIO pin(s) status (自 R2022b 起)
Digital Port WriteSet GPIO pin(s) status (自 R2022b 起)
Hardware InterruptTrigger downstream function-call subsystem from an interrupt service routine (自 R2022b 起)
EncoderMeasures rotation of motor in ticks (自 R2022b 起)
PWMGenerate pulse width modulated waveforms (自 R2022b 起)
QSPIWrite data to and read data from an SPI peripheral device (自 R2022b 起)
TMADCMeasure voltage of an analog input pin (自 R2022b 起)
DSADCMeasure voltage of analog input pin using delta-sigma conversion (自 R2023b 起)
SENTRead high-resolution sensor data over Single Edge Nibble Transmission (SENT) protocol (自 R2023b 起)
FCCDetect when analog input signal crosses 10-bit threshold value (自 R2024a 起)
ResolverMeasure position of resolver sensor (自 R2024a 起)
CDSPProcess output from ADC peripherals of Infineon AURIX TC4x (自 R2024a 起)
MCAN TransmitWrite data to CAN bus (自 R2024b 起)
MCAN ReceiveRead data from CAN bus (自 R2024b 起)
Byte PackConvert input signals to 8-, 16-, or 32-bit vector
Byte UnpackUnpack 8-, 16-, or 32-bit input vector to multiple output vectors
Byte ReversalReverse little-endian data for big-endian processor
Memory CopyCopy to and from memory section
CAN PackPack individual signals into CAN message
CAN UnpackUnpack individual signals from CAN messages
CAN FD PackPack individual signals into message for CAN FD bus
CAN FD PackPack individual signals into message for CAN FD bus
CAN FD UnpackUnpack individual signals from CAN FD messages
ADC InterfaceConvert analog signal on ADC input pin to digital signal
PWM InterfaceSimulate pulse width modulation (PWM) output from hardware
Digital IO InterfaceSimulate digital input and output pins on processor (自 R2021b 起)
Interprocess Data ReadReceive messages from another processor using interprocess communication channel
Interprocess Data WriteSend messages to another processor using interprocessor data write
Interprocess Data ChannelModel interprocessor data channel between two processors
Task ManagerCreate and manage task executions in Simulink model
Event SourceSimulate and playback recorded task events

工具

SoC 构建器Build, load, and execute multicore application models on Infineon AURIX TC4x hardware boards (自 R2024b 起)
硬件映射Map tasks and peripherals in a model to hardware board configurations (自 R2022b 起)
数字端口读取外设配置Map Digital Port Read peripherals in the Infineon AURIX model to peripheral registers in the MCU (自 R2022b 起)
数字端口写入外设配置Map Digital Port Write peripherals in the Infineon AURIX model to peripheral registers in the MCU (自 R2022b 起)
任务Map tasks in the Infineon AURIX to interrupt service routines on the hardware board (自 R2022b 起)
编码器外设配置Map encoder peripherals in the Infineon AURIX model to peripheral registers in the MCU (自 R2022b 起)
PWM 外设配置Map PWM peripherals in the Infineon AURIX model to peripheral registers in the MCU (自 R2022b 起)
QSPI 外设配置Map QSPI peripherals in the Infineon AURIX model to peripheral registers in the MCU (自 R2022b 起)
DSADC 外设配置Map DSADC peripherals in Infineon AURIX model to peripheral registers in MCU (自 R2023b 起)
TMADC 外设配置Map TMADC peripherals in the Infineon AURIX model to peripheral registers in the MCU (自 R2022b 起)
SENT 外设配置Map data transfer over SENT protocol in the Infineon AURIX model to peripheral registers in the MCU (自 R2023b 起)
FCC 外设配置Map FCC peripherals in the model to peripheral registers in MCU (自 R2024a 起)
Resolver 外设配置Map resolver peripherals in model to peripheral registers in MCU (自 R2024a 起)
CDSP 外设配置Map CDSP peripherals in model to peripheral registers in the MCU (自 R2024a 起)
MCAN 传输外设配置Map peripherals of MCAN Transmit block in the model to peripheral registers in MCU (自 R2024b 起)
MCAN 接收外设配置Map MCAN Receive peripherals in the model to the peripheral registers in MCU (自 R2024b 起)

模型设置

主题

精选示例