TMS320F28335与10位数模转换器TLC5615的SPI通讯问题2(SPI协议篇)

本文详细介绍了TMS320F28335 DSP通过SPI与10位数模转换器TLC5615进行通讯的协议配置,包括SPI的工作模式、时钟模式选择,并提供了初始化代码示例。在实际应用中遇到输出波形异常的问题,通过检查硬件连接,发现地线未正确连接导致,纠正后波形恢复正常。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  • 这一篇将介绍TMS320F28335中SPI通讯协议的介绍,SPI即串行外围设备接口,全双工同步串行通讯总线。它一共有四根线进行连接,SPISOMI:SPI从输出主输入引脚,SPISIMO:SPI主输出从输入引脚,SPISTE:SPI从发送使能引脚,SPICLK:SPI串行时钟引脚。
    具有两种工作模式,分别为主工作模式和从工作模式。
    四种时钟模式(由时钟模式和时钟相位控制)
    1、Falling edge without phase delay: SPICLK active-high. SPI transmits data on the falling edge of theSPICLK signal and receives data on the rising edge of the SPICLK signal.
    无相位延迟的下降沿:SPICLK为高电平有效,在SPICLK的下降沿发送数据,在SPLCLK的上升沿接收数据。
    2、Falling edge with phase delay: SPICLK active-high. SPI transmits data one half-cycle ahead of the falling edge of the SPICLK signal and receives data on the falling edge of the SPICLK signal.
    3、Rising edge without phase delay: SPICLK inactive-low. SPI transmits data on the rising edge of the SPICLK signal and receives data on the falling edge of the SPICLK signal.
    4、Rising edge with phase delay: SPICLK inactive-low. SPI transmits data one half-cycle ahead of the falling edge of the SPICLK signal and receives data on the rising edge of
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值