福彩3D走势图

常见问题FAQ

SPI接口协议介绍与应用说明发布时间:2018-1-12    被阅览数:次

SPI总线介绍


  SPI(Serial Peripheral Interface,串行外设接口)是由Motorola提出的一种全双工同步串行通信接口,它可以使MCU与各种外围设备以串行方式进行通信以交换信息,通信波特率可以高达5Mbps。SPI接口主要应用在EEPROM、FLASH、实时时钟、网络控制器、LCD显示驱动器、AD转换器,数字信号处理器、数字信号解码器等设备之间。


  SPIJIEKOUYIBANSHIYONG4TIAOXIAN:

福彩3D走势图  (1)MOSI:ZHUSHEBEISHUJUSHUCHU,CONGSHEBEISHUJUSHURU

福彩3D走势图  (2)MISO:ZHUSHEBEISHUJUSHURU,CONGSHEBEISHUJUSHUCHU

福彩3D走势图  (3)SCLK:SHIZHONGXINHAO,YOUZHUSHEBEICHANSHENG

  (4)NSS:CONGSHEBEISHINENGXINHAO,YOUZHUSHEBEIKONGZHI


SPI接口协议介绍与应用说明

SPI设备连接示意图


  SPI接口主要优点:

  ● ZHICHIQUANSHUANGGONGCAOZUO

  ● CAOZUOJIANDAN

  ● SHUJUCHUANSHUSULVJIAOGAO


福彩3D走势图  SPIJIEKOUZHUYAOQUEDIAN:

  ● XUYAOZHANYONGZHUJIJIAODUODEXIAN(MEIGECONGJIDOUXUYAOYITIAOPIANXUANXIAN)

  ● ZHIZHICHIDANGEZHUJI

  ● MEIYOUZHIDINGDELIUKONGZHI

  ● MEIYOUYINGDAJIZHIQUERENSHIFOUJIESHOUDAOSHUJU


SPI接口工作特点


  1、SPI接口采用主-从模式(Master-Slave)控制方式

  两个SPI设备之间的通信必须由主设备(Master)来控制从设备(Slave)。主设备可以通过提供时钟信号以及对从设备进行片选来控制多个从设备。从设备本身并不产生时钟信号,其时钟信号由主设备提供。


SPI接口协议介绍与应用说明


  2、SPI接口采用同步方式(Synchronous)传输数据

福彩3D走势图  ZHUSHEBEIHUIGENJUJIANGYAOJIAOHUANDESHUJULAICHANSHENGXIANGYINGDESHIZHONGMAICHONG,SHIZHONGMAICHONGZUCHENGSHIZHONGXINHAO,SHIZHONGXINHAOTONGGUOSHIZHONGJIXINGHESHIZHONGXIANGWEIKONGZHILIANGGESPISHEBEIJIANHESHISHUJUJIAOHUANYIJIHESHIDUIJIESHOUDAODESHUJUJINXINGCAIYANG, LAIBAOZHENGSHUJUZAILIANGGESHEBEIZHIJIANSHITONGBUCHUANSHUDE。


福彩3D走势图  SPIYOUSIZHONGSHUJUCHUANSHUMOSHI,RUXIABIAOSUOSHI,ZHUYAOCHABIEZAIYU:SHUCHUCHUANXINGTONGBUSHIZHONGJIXING(CPOL)HEXIANGWEI(CPHA)KEYIJINXINGPEIZHI。


SPI mode CPOLCPHAComments
000时钟的空闲状态为低电平;上升沿采样
101时钟的空闲状态为低电平;下降沿采样
210时钟的空闲状态为高电平;下降沿采样
311时钟的空闲状态为高电平;上升沿采样


  3、SPI接口数据交换(Data Exchanges)

  SPISHEBEIJIANDESHUJUCHUANSHUYOUBEICHENGWEISHUJUJIAOHUAN。SPIXIEYIGUIDINGYIGESPISHEBEIBUNENGZAISHUJUTONGXINGUOCHENGZHONGJINJINZHICHONGDANGFASONGZHEHUOZHEJIESHOUZHE,ZAIMEIGESHIZHONGZHOUQINEI,SPISHEBEIDOUHUIFASONGBINGJIESHOUYIGEbitDAXIAODESHUJU,XIANGDANGYUGAISHEBEIYOUYIGEbitDAXIAODESHUJUBEIJIAOHUAN。

福彩3D走势图  CONGSHEBEIYAOJIESHOUDAOZHUSHEBEIFAGUOLAIDEKONGZHIXINHAO,BIXUZAICIZHIQIANNENGGOUBEIZHUSHEBEIFANGWEN,SUOYIZHUSHEBEIBIXUSHOUXIANDUICONGSHEBEIJINXINGPIANXUAN。

  ZAISHUJUCHUANSHUDEGUOCHENGZHONG,MEICIJIESHOUDAODESHUJUBIXUZAIXIAYICISHUJUCHUANSHUZHIQIANJINXINGCAIYANG。RUGUOZHIQIANJIESHOUDAODESHUJUMEIYOUBEIDUQU,NEIMEZHEIXIEYIJINGJIESHOUWANCHENGDESHUJUJIANGYOUKENENGHUIBEIDIUQI,YINCI,YINGYONGCHENGXUYIBANDOUHUIZAISPICHUANSHUWANSHUJUHOUJINXINGDUQU。


SPI协议


  福彩3D走势图SPI接口允许同时在两线(MOSI和MISO)发送和接收数据。时钟极性(CPOL)和时钟相位(CPHA)是定义SPI所使用的时钟格式的主要参数。根据时钟极性(CPOL),SPI时钟可以反转或不变。时钟相位(CPHA)用于改变采样相位。

  RUGUOCPHA=0,NEIMEJIANGYUDIYIGESHIZHONGBIANYANJINXINGSHUJUCAIYANG。

福彩3D走势图  RUGUOCPHA=1,NEIMEWULUNSHIZHONGBIANYUANSHANGSHENGHUOXIAJIANG,JIANGYUDIERGESHIZHONGBIANYANJINXINGSHUJUCAIYANG。


  MAICHONGCHUANSHUQIANHEWANCHENGHOUDOUBAOCHIZAIDIDIANPINGZHUANGTAI,JICPOL=0。ZAIDIYIGEBIANYAN(SHANGSHENGYAN)CAIYANGSHUJU,DIERGEBIANYAN(XIAJIANGYAN)SHUCHUSHUJU,JICPHA=0。


SPI接口协议介绍与应用说明.gif


福彩3D走势图  MAICHONGCHUANSHUQIANHEWANCHENGHOUDOUBAOCHIZAIDIDIANPINGZHUANGTAI,JICPOL=0。ZAIDIERGEBIANYAN(XIAJIANGYAN)CAIYANGSHUJU,DIYIGEBIANYAN(SHANGSHENGYAN)SHUCHUSHUJU,JICPHA=1。


SPI接口协议介绍与应用说明.gif


  MAICHONGCHUANSHUQIANHEWANCHENGHOUDOUBAOCHIZAIGAODIANPINGZHUANGTAI,JICPOL=1。ZAIDIYIGEBIANYAN(XIAJIANGYAN)CAIYANGSHUJU,DIERGEBIANYAN(SHANGSHENGYAN)SHUCHUSHUJU,JICPHA=0。


SPI接口协议介绍与应用说明.gif


  MAICHONGCHUANSHUQIANHEWANCHENGHOUDOUBAOCHIZAIGAODIANPINGZHUANGTAI,JICPOL=1。ZAIDIERGEBIANYAN(SHANGSHENGYAN)CAIYANGSHUJU,DIYIGEBIANYAN(XIAJIANGYAN)SHUCHUSHUJU,JICPHA=1。


SPI接口协议介绍与应用说明.gif


福彩3D走势图  SPIDUSHUJUSHIXU:


SPI接口协议介绍与应用说明.gif


  SPIXIESHUJUSHIXU:


SPI接口协议介绍与应用说明.gif


SPI总线在英创主板平台上的应用


  ZHICHISPIJIEKOUDEXINPIANDOUKEYIZHIJIEHEYINGCHUANGZHUBANLIANJIE,BINGZHIXINGXIANGYINGDEGONGNENG。LINIANLAI,DALIANGYONGHUSHIYONGYINGCHUANGZHUBANJINXINGSPIYINGYONGHESHUJUCHULI,YINGCHUANGYELEIJILEFENGFUDEGONGCHENGJINGYAN。XIAMIANZHENGLICHULEYINGCHUANGWANGZHANFABIAODEXIANGGUANJISHUWENDANGGONGYONGHUCANKAO。SUIRANYOUYIXIEFANGANWENDANGZHONGTIDAODEYINGCHUANGZHUBANSHIJIAOLAODEXINGHAO,YONGHUZAIXINCHANPINKAIFADESHIHOUWEIBIHUISHIYONGZHEIXIELAOZHUBANCHANPIN,DANSHIWENZHONGDERUANYINGJIANSHIYONGJIQIAO、BIANCHENGJIQIAOHEFANGFADENGJISHUXIJIE,SHIZHIDEYONGHUCANKAOHUOZHEZHIJIESHIYONGDE。


  应用方案





  使用方法与技巧







Go Top
澳门AG 澳门AG 狗万足彩app 3d捕鱼 3d捕鱼 神扑克 万人斗地主 万人棋牌