主要内容

本页采用了机器翻译。点击此处可查看英文原文。

通信外设

配置并使用通信外设,例如 CAN、I2C、IPC、SCI、SPI、TCP、UDP 等。

使用 TI 的 C2000™ 微控制器上可用的通信外设(如 CAN、I2C、IPC、SCI、SPI 等)创建 Simulink® 模型。通过模型配置参数将 Simulink 模型配置为与支持的目标硬件进行对接。您可以使用硬件映射工具将模型中的任务和外设映射到硬件板配置。

模块

全部展开

C28x CAN Receive增强型控制器局域网接收邮箱
C28x CAN Transmit增强型控制器局域网传输邮箱
MCAN ReceiveRead data from CAN bus (自 R2021a 起)
MCAN TransmitSend serial data to CAN bus (自 R2021a 起)
MCAN Interrupt StatusOutput specific bits of MCAN interrupt register or entire register (自 R2021b 起)
C28x I2C Receive配置集成电路间通信 (I2C) 模块以从 I2C 总线接收数据
C28x I2C Transmit配置集成电路间通信 (I2C) 模块,使其向 I2C 总线传输数据。
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
C28x SCI Receive通过串行通信接口 (SCI) 从主机接收目标数据
C28x SCI Transmit通过串行通信接口 (SCI) 将目标数据传输到主机
C28x SPI Controller Transfer向 SPI 外设写入数据和从 SPI 外设读取数据
C28x SPI Receive通过目标设备上的串行外设接口 (SPI) 接收数据
C28x SPI TransmitTransmit data through Serial Peripheral Interface (SPI) on target
C2803x LIN ReceiveReceive data via local interconnect network (LIN) module on target
C2803x LIN TransmitTransmit data from target via serial communications interface (SCI) to host
C29x UART ReceiveReceive data from the Universal Asynchronous Receiver Transmitter (UART) port (自 R2025a 起)
C29x UART TransmitSend serial data to the Universal Asynchronous Receiver Transmitter (UART) port (自 R2025a 起)
MCAN ReceiveRead data from CAN bus (自 R2021a 起)
MCAN TransmitSend serial data to CAN bus (自 R2021a 起)
MCAN Interrupt StatusOutput specific bits of MCAN interrupt register or entire register (自 R2021b 起)
F2838x-M4 TCP ReceiveReceive data over TCP/IP network from remote host
F2838x-M4 TCP SendSend data over TCP/IP network to remote host
F28M35x/F28M36x TCP SendSend TCP packets to a TCP host on TCP/IP network
F28M35x/F28M36x TCP ReceiveReceive TCP packets from TCP host on TCP/IP network
F2838x-M4 UDP SendSend UDP packets to UDP host
F2838x-M4 UDP ReceiveReceive UDP packets from UDP host
F28M35x/F28M36x UDP SendSend UDP packets to UDP host
F28M35x/F28M36x UDP ReceiveReceive UDP packets from the specified UDP host
F2838x-M4 UART Receive从通用异步收发器 (UART) 端口接收数据
F2838x-M4 UART Transmit向通用异步收发器 (UART) 端口发送串行数据
F28M35x/F28M36x UART TransmitTransmit serial data to the Universal Asynchronous Receiver Transmitter (UART) port
F28M35x/F28M36x UART ReceiveReceive data from the Universal Asynchronous Receiver Transmitter (UART) port
F2838x-M4 Hardware InterruptTrigger downstream function-call subsystem from interrupt service routine
F28M3xx-M3 Hardware InterruptTrigger downstream function-call subsystem from interrupt service routine
F2837xD/F2838x/F2838x-M4 IPC ReceiveReceive data from either core while using separate model for each core
F2837xD/F2838x/F2838x-M4 IPC Transmit使用为每个内核单独建模的方式,将数据传输到任一内核。

工具

硬件映射将模型中的任务和外围设备映射到硬件板配置 (自 R2022b 起)

主题

疑难解答

External Interrupt Workflow for Texas Instruments C2000 Processors

This topic helps you with the workflow for external interrupts.

Troubleshooting External Mode Issues

Troubleshoot the problems when you try to execute TI C2000 Simulink model in External Mode.

Optimizing Baud Rate Settings for External Mode Communication

Optimize baud rates of SCI-A, on-board FTDI, and windows COM port for external mode communication.

精选示例