登录
首页 » SCM » SPI是一个环形总线结构,由ss(cs)、sck、sdi、sdo构成,其时序其实很简单,主要是在sck的控制下,两个双向移位寄存器进行数据交换。 假设下面...

SPI是一个环形总线结构,由ss(cs)、sck、sdi、sdo构成,其时序其实很简单,主要是在sck的控制下,两个双向移位寄存器进行数据交换。 假设下面...

于 2022-02-06 发布 文件大小:28.58 kB
0 185
下载积分: 2 下载次数: 1

代码说明:

SPI是一个环形总线结构,由ss(cs)、sck、sdi、sdo构成,其时序其实很简单,主要是在sck的控制下,两个双向移位寄存器进行数据交换。 假设下面的8位寄存器装的是待发送的数据10101010,上升沿发送、下降沿接收、高位先发送。 那么第一个上升沿来的时候 数据将会是sdo=1;寄存器=0101010x。下降沿到来的时候,sdi上的电平将所存到寄存器中去,那么这时寄存器=0101010sdi,这样在8个时钟脉冲以后,两个寄存器的内容互相交换一次。这样就完成里一个spi时序。 -SPI bus is a ring structure, by ss (cs), sck, sdi, sdo composition, its timing is actually very simple, mainly under the control of the sck and two bi-directional shift register for data exchange. Assuming the following 8-bit register is loaded to send the data to be 10,101,010, rising to send, receive falling edge, high first sent. Well, the first rising edge to the time data will be sdo = 1 register = 0101010x. Falling edge comes, sdi on the level will be stored to the register, then register at this time = 0101010sdi, so 8 clock pulse later, the contents of two registers to exchange time. This will be completed in a spi timing.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 汽车行驶记录仪的数据初始化组件,主要通过RS232串口或者USB口写数据到单片机,详细协议及数据格式参见国标的相关文件,该系统已经通过的国家公安部的标准检测...
    汽车行驶记录仪的数据初始化组件,主要通过RS232串口或者USB口写数据到单片机,详细协议及数据格式参见国标的相关文件,该系统已经通过的国家公安部的标准检测-Vehicle Data Recorder initialization components, primarily through the RS232 serial or USB port to write data to the microcontroller, detailed agreement and data format See National Standard document, which has been adopted by the Ministry of National Standard Test
    2022-06-18 18:27:32下载
    积分:1
  • MCS
    MCS-51单片机结构。由ATMEL公司生产的89C51将EPROM改成了4K的闪速存储器,他们的结构大同小异,本章将对8051单片机的结构作一介绍。-MCS-51 single-chip structure. ATMEL Corporation by 89C51 production will be replaced with 4K of EPROM flash memory, they more or less the same structure, this chapter will be the structure of 8051 for an introduction.
    2022-03-21 21:44:47下载
    积分:1
  • C51 is a classic single
    c51 是经典的单片机,简单,精通51单片机,在学习其他的单片机 很易上手-C51 is a classic single-chip, simple, fluent in 51 single-chip, single-chip microcomputer in the learning of other very易上手
    2022-07-26 06:18:52下载
    积分:1
  • 51单片机浮点子程序库(大型),直接嵌入,方便使用.
    51单片机浮点子程序库(大型),直接嵌入,方便使用.-51 single-chip floating-point subroutine library (large), direct embedding, user-friendly.
    2022-03-17 08:04:21下载
    积分:1
  • 在80C51上用汇编语言实现的数字钟程序,具有闹铃、秒表和设置时间等动能。...
    在80C51上用汇编语言实现的数字钟程序,具有闹铃、秒表和设置时间等动能。-80C51 used in assembly language procedures for the realization of the digital clock with alarm, stopwatch and time settings, such as kinetic energy.
    2022-03-16 23:00:12下载
    积分:1
  • Keil uVision3 example code NOMOD51This file is part of the C51 Compiler package...
    Keil uVision3例证代码NOMOD51 This file is part of the C51 Compiler package Copyright (c) 1988-2005 Keil Elektronik GmbH and Keil Software, Inc. Version 8.01-Keil uVision3 example code NOMOD51This file is part of the C51 Compiler package Copyright (c) 1988-2005 Keil Elektronik GmbH and Keil Software, Inc. Version 8.01
    2022-05-31 01:26:37下载
    积分:1
  • 80C51 single
    采用80C51单片机为控制核心,利用超声波传感器检测道路上的障碍,控制电动小汽车的自动避障,快慢速行驶,以及自动停车,并可以自动记录时间、里程和速度,自动寻迹和寻光功能。整个系统的电路结构简单,可靠性能高。 采用的技术主要有: 通过编程来控制小车的速度; 传感器的有效应用; 新型显示芯片的采用.-80C51 single-chip microcomputer used for the control of the core, the use of ultrasonic sensors detect obstacles on the road, control of electric cars automatic obstacle avoidance, fast low traffic speeds, as well as the automatic parking, and can automatically record time, mileage and speed, automatic track finding and searching optical function. Circuit the whole system of simple structure, high reliability. The technologies used are: programmed to control the speed of car the effective application of the sensor new display chip used.
    2023-05-11 19:05:04下载
    积分:1
  • Keil C51中文使用手册
    Keil C51中文使用手册-Keil C51 Chinese Manuals
    2022-05-06 01:44:58下载
    积分:1
  • By SCM P89V51RB2 car in the seesaw to find the equilibrium point, loading angle...
    由P89V51RB2单片机控制小车在翘翘板上寻找平衡点,装载倾角传感器.-By SCM P89V51RB2 car in the seesaw to find the equilibrium point, loading angle sensor.
    2022-02-19 23:55:58下载
    积分:1
  • J240128ALCD显示器的资料和C驱动源码
    J240128ALCD显示器的资料和C驱动源码-J240128ALCD display information source and C Drive
    2022-05-26 17:01:23下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载