-
SPI是一个环形总线结构,由ss(cs)、sck、sdi、sdo构成,其时序其实很简单,主要是在sck的控制下,两个双向移位寄存器进行数据交换。
假设下面...
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.
- 2022-02-06 05:39:49下载
- 积分:1
-
这是一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID 参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制...
这是一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID 参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制,一般不采用浮点数运算,而将所有参数全部用整数,运算 到最后再除以一个2的N次方数据(相当于移位),作类似定点数运算,可大大提高运算速度,根据控制精度的不同要求,当精度要求很 高时,注意保留移位引起的“余数”,做好余数补偿。这个程序只是一般常用pid算法的基本架构,没有包含输入输出处理部分。-This is a typical PID process, as in the use of SCM control cpu, please slightly simplified, specific PID parameters to be specific targets identified by experiments. As SCM processing speed and ram resource constraints, generally do not use floating-point operations, and will use all the parameters of all integers, and the final calculations to divide one of the Nth 2 data (the equivalent displacement), will count for a similar operation, it will greatly increase the computing speed, control Accuracy of different requirements and high precision, displacement caused reservations to the attention of the "I", which I do several compensation. This procedure is commonly used algorithm pid the basic structure does not include input and output processing.
- 2022-03-19 08:10:44下载
- 积分:1
-
ARM2410 step motor controlARM2410 step motor controlARM2410 step motor controlAR...
ARM2410 step motor control ARM2410 step motor control ARM2410 step motor control -ARM2410 step motor controlARM2410 step motor controlARM2410 step motor controlARM2410 step motor controlARM2410 step motor controlARM2410 step motor controlARM2410 step motor controlARM2410 step motor controlARM2410 step motor controlARM2410 step motor controlARM2410 step motor controlARM2410 step motor controlARM2410 step motor control
- 2022-08-24 04:52:23下载
- 积分:1
-
是protel的讲义,应该有利于大家的学习
是protel的讲义,应该有利于大家的学习-Yes protel lectures, should be conducive to our learning
- 2023-07-20 05:00:04下载
- 积分:1
-
无线模块nRF24L01程序实现发送与接收功能…
无线模块nrf24l01程序,实现发送与接收功能。-Wireless module nrf24l01 procedures implementation to send and receive functions.
- 2022-03-20 00:57:32下载
- 积分:1
-
本程序介绍了msp430的按键程序,对初学者很有用!
本程序介绍了msp430的按键程序,对初学者很有用!-This procedure introduced the MSP430 keystroke procedures, useful for beginners!
- 2022-04-01 15:24:35下载
- 积分:1
-
在cygnal020开发板下的lcd(菜单)部分显示程序设计,利用数据表的结构,将菜单设计方法简化,便于菜单项修改。但是占用存储空间较大。...
在cygnal020开发板下的lcd(菜单)部分显示程序设计,利用数据表的结构,将菜单设计方法简化,便于菜单项修改。但是占用存储空间较大。-In cygnal020 under development board lcd (menu) of the display program design, use of the data table structure design methods to simplify the menu, easy to modify menu items. However, larger storage space occupancy.
- 2022-12-17 19:20:03下载
- 积分:1
-
语音芯片API8108的中文资料,本人花了很多功夫才找到的很好的资料,需要的可以下载试用...
语音芯片API8108的中文资料,本人花了很多功夫才找到的很好的资料,需要的可以下载试用-Voice Chip API8108 the Chinese data, I spent a lot of effort to find good information on the needs of a trial can be downloaded
- 2022-01-28 05:20:24下载
- 积分:1
-
A simple
简单的"祝你生日快乐"歌曲
芯片为mega8-A simple
- 2023-04-13 10:10:04下载
- 积分:1
-
传感器应用实例电路设计150例,资源共享,敬请使用!
传感器应用实例电路设计150例,资源共享,敬请使用!-Sensor circuit design application 150 cases, resource sharing, please use!
- 2022-01-25 20:13:08下载
- 积分:1