当前位置:网站首页>SPI protocol
SPI protocol
2022-06-26 01:15:00 【Oh, Yu è】
About SPI
SPI It was first proposed by Motorola , At first there was no written standard . It is a serial peripheral interface (Serial Peripheral Interface) Abbreviation , It's a high speed 、 full duplex 、 Synchronous communication bus . And MCU Communication only takes up four pins , Namely :MOSI、MISO、SCK、CS.
SPI Hardware layer
- MOSI:master out slave in Abbreviation , Both host output and slave input
- MISO:master in slave out Abbreviation , Both host input and slave output
- SCLK:serial clock Abbreviation , Clock line
- CS:chip select Abbreviation , Existing line selection , Sometimes it is written as NSS
SPI Protocol layer
- Clock polarity CPOL Refer to SPI When communication is idle ,SCLK The level signal of the signal line .
- CPOL=0 when ,SCLK Low level in idle state
- CPOL=1 when ,SCLK High level in idle state
- Clock phase CPHA It refers to the sampling time of data .
- When CPHA=0 when ,MOSI or MISO The signal line on the data line will be at SCLK Clock line “ Odd edge ” Be sampled
- When CPHA=1 when ,MOSI or MISO The signal line on the data line will be at SCLK Clock line “ Even edge ” Be sampled


The mode selection should be determined according to the slave chip
SPI Points that the agreement should pay attention to
- Before the slave machine is used, it is necessary to CS The film selection line is pulled down , Must be raised after use
- Pay attention to the validity of data , Whether the data is sent on the rising edge or the falling edge , Whether the data is received on the rising edge or the falling edge
边栏推荐
猜你喜欢

Nacos registry

New library launched | cnopendata China new house information data

返回值为Object型方法调用equals()

Anaconda beginner's notes

QT cmake pure C code calls the system console to input scanf and Chinese output garbled code

Return value is object type method call equals()

Endnote IEEE Transactions on industrial electronics/tie/tpel reference format template

Summary of push-pull output and open drain output of STM32 and failure of analog IIC driving mlx90615

Unified gateway

idea配置
随机推荐
Mpu6050 reads the ID incorrectly and 0xd1 occurs (the correct ID should be 0x68 or 0x69). Solution.
DGUS新升级:全面支持数字视频播放功能
Classic interview questions: mouse drug test and Hamming code
FPGA notes -- implementation of FPGA floating point operation
Px4 system terminal for pixhawk
C thread pool control semaphore
Freertos+stm32l+esp8266+mqtt protocol transmits temperature and humidity data to Tencent cloud IOT platform
接口的幂等性——详细谈谈接口的幂等即解决方案
react + router 框架下的路由跳转后缓存页面存初始参数
Download and install flume
Dgus new upgrade: fully support digital video playback function
idea配置
ETCD数据库源码分析——集群通信初始化
Anaconda beginner's notes
在线小工具分享(不定时更新,当前数量:2)
Online gadget sharing (updated from time to time, current quantity: 2)
Is it safe for flush software to buy stocks for trading? How to open an account to buy shares
Recognize map
2022年电气试验考试试题模拟考试平台操作
Cartoon shader