Location:
Search - STM32 SP
Search list
Description: 本例展示了如何实现2个SPI之间的在全双工(full-duplex)模式下通信,通过NSS软件管理,实现了由主向从,接着又从向主发送数据。
在本例程中,设置SPI1和SPI2为8bit数据帧,9Mbit/s传输速率。
在第一阶段,由主SPI1把SPI1_Buffer_Tx发送到SPI2,由从SPI2把SPI2_Buffer_Tx发送到SPI1。传输完成后,通过比较判断传输是否正确。
由于NSS管脚由软件管理,因此,可以在不改变硬件配置的情况下使SPI1由主变从,而SPI2由从变主。在第二阶段,由从SPI1把SPI1_Buffer_Tx发送到SPI2,由主SPI2把SPI2_Buffer_Tx发送到SPI1。传输完成后,通过比较判断传输是否正确。
在STM3210B-LK1上,如果以上4个传输都正确,则亮起LED1(LD4),否则亮起LED2(LD3)。-err
Platform: |
Size: 232448 |
Author: chen |
Hits:
Description: STM32的SPWM程序,可以出SPWM波-STM32 of SPWM program, you can out of SPWM Wave
Platform: |
Size: 583680 |
Author: 茂茂 |
Hits:
Description: STM32脉冲宽度调制产生5KHZ方波
信春哥,得永生!-STM32 PWM square wave generated 5KHZ Nobuharu brother, but have eternal life!
Platform: |
Size: 479232 |
Author: zq |
Hits:
Description: STM32产生的双极性SPWM波 可以用来控制电机和全桥逆变器-STM32 bipolar SPWM wave generated can be used to control the motor and full-bridge inverter
Platform: |
Size: 911360 |
Author: 茂茂 |
Hits:
Description: stm32板子的编程,其中的头文件的编写,板子有很多功能-stm32 board programming, including the preparation of the header files, the board has many functions
Platform: |
Size: 2475008 |
Author: 徐慧 |
Hits:
Description: SP 系列针式微型打印机中文使用手册可用stc51 stm32等单片机通讯(SP series of needle type micro printers)
Platform: |
Size: 793600 |
Author: Gscsd
|
Hits:
Description: 车载广告显示程序 1、多条广告信息显示 2、广告字体可自行设置 3、被劫报警求助信息显示功能 4、STM32下的UCOS-II系统任务级(Mobile advertising display program 1, more than 2 advertising, advertising information display fonts can be set 3, robbed alarm information display function of UCOS-II system under STM32, task level 4)
Platform: |
Size: 7311360 |
Author: destyni
|
Hits:
Description: stm32 关于SP!的编程案例 实现spi通信(STM32's programming case about SP! To implement SPI communication)
Platform: |
Size: 5638144 |
Author: NY806526329 |
Hits: