-
CH11-KEA128-SPI
1. 硬件接线
(1)调试串口(UART_Debug)使用UART2,在“printf.h”文件中宏定义, 对应引脚为TX-PTD7,RX-PTD6
(在“uart.h文件中宏定义)。
(2)灯0~3(LIGHT_0~LIGHT_3)对应的引脚是PTC0~PTC3,高电平点亮(由硬件接法决定)
(3)SPI0_CLK对应的引脚是PTE0, SPI0_MOSI对应的引脚是PTE1,
SPI0_MISO对应的引脚是PTE2,SPI0_PCS对应的引脚是PTE3,
SPI1_CLK对应的引脚是PTG4, SPI1_MOSI对应的引脚是PTG5,
SPI1_MISO对应的引脚是PTG6,SPI1_PCS对应的引脚是PTG7。
(4)SPI0作为master,SPI1作为slave,SPI1接收SPI0发送的数据并产生中断。
用导线将PTE0与PTG4对接,将PTE1与PTG5对接,将PTE2与PTG6对接,将PTE3与PTG7对接。(1. Hardware wiring
(1) Debugging Serial Port (UART_Debug) uses UART2, macro-defined in "printf.h" file, corresponding pins are TX-PTD7, RX-PTD6.
(macro definition in the uart.h file).
(2) The pins corresponding to the lamp 0~3 (LIGHT_0~LIGHT_3) are PTC0~PTC3, and the high-level lighting is determined by the hardware connection.
(3) The pin corresponding to SPI0_CLK is PTE0, and the pin corresponding to SPI0_MOSI is PTE1.
The pin corresponding to SPI0_MISO is PTE2, and the pin corresponding to SPI0_PCS is PTE3.
The pin corresponding to SPI1_CLK is PTG4, and the pin corresponding to SPI1_MOSI is PTG5.
The pin corresponding to SPI1_MISO is PTG6, and the pin corresponding to SPI1_PCS is PTG7.
(4) SPI0 acts as master and SPI1 acts as slave. SPI1 receives data sent by SPI0 and generates interruption.
PTE0 and PTG4 are docked by wire, PTE1 and PTG5 are docked, PTE2 and PTG6 are docked, PTE3 and PTG7 are docked.)
- 2020-06-16 12:00:01下载
- 积分:1
-
UCOS一种只支持优先级抢占型调度的操作系统。它不支持同一个优先级有2个及以上的任务同时运作。
本文修改的UCOS支持不同优先级调度的同时,支持同一个优先级...
UCOS一种只支持优先级抢占型调度的操作系统。它不支持同一个优先级有2个及以上的任务同时运作。
本文修改的UCOS支持不同优先级调度的同时,支持同一个优先级有2个以上的任务以时间片轮转方式进行调度。
这个就是UCOS和修改的UCOS的区别。-UCOS only support a priority-based scheduling of the operating system to seize. It does not support the same priority level 2 and above have the task of operating at the same time. This article uCOS modified to support different priority scheduling at the same time, support the same priority level has two more tasks to the time slice approach to scheduling rotation. This is uCOS uCOS and modified difference.
- 2022-07-01 06:29:14下载
- 积分:1
-
单片机入门的书,很适合 初学者,U1=89C51
U2=555
U3=MAX232
U4=24C01
U6=X25045看门狗
X1=共阳数...
单片机入门的书,很适合 初学者,U1=89C51
U2=555
U3=MAX232
U4=24C01
U6=X25045看门狗
X1=共阳数码管 -Singlechip book entry, it is suitable for beginners, U1 = 89C51U2 = 555U3 = MAX232U4 = 24C01U6 = X25045 watchdog X1 = total yang digital tube
- 2022-01-28 18:03:24下载
- 积分:1
-
这是一个模式是别里的关于fisher算法实现的广义线性分类器
这是一个模式是别里的关于fisher算法实现的广义线性分类器-This is a model other fisher Lane on the algorithm of generalized linear classifier
- 2022-03-18 07:18:47下载
- 积分:1
-
winsock文件传输,界面很漂亮哦,能够在客户端和服务器之间传输文件。...
winsock文件传输,界面很漂亮哦,能够在客户端和服务器之间传输文件。-winsock file transfer, the interface is beautiful Oh, to the client and server to transfer files between.
- 2023-05-24 20:40:04下载
- 积分:1
-
矩阵作业
说明: matlab矩阵与数值计算的10个算例,清晰有注释,适合初学者(10 examples of MATLAB matrix and numerical calculation, clear and annotated, suitable for beginners)
- 2019-01-15 10:13:54下载
- 积分:1
-
ReadWrite
说明: 简单的文件读写源码
提供给入门者参考
(Read and write simple documents available to the entry-source reference)
- 2008-11-30 00:49:09下载
- 积分:1
-
array
c和c++动态数组的实现.visual studio 2008下编译通过(c and c++ realize dynamic array. visual studio 2008 under the compiler through)
- 2008-07-21 14:37:57下载
- 积分:1
-
【MATLAB】无线通信—各类信道衰落合集
Various channel fading in the field of wireless communication
- 2021-03-28 13:09:12下载
- 积分:1
-
Ftp
ftp上传ftp上传ftp上传ftp上传ftp上传ftp上传ftp上传ftp上传ftp上传ftp上传ftp上传ftp上传ftp上传(ftp upload ftp upload ftp upload ftp upload ftp upload ftp upload ftp upload ftp upload ftp upload ftp upload ftp upload ftp upload ftp upload)
- 2016-10-11 10:09:57下载
- 积分:1