-
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
-
signal
用LPC2148PWM功能实现的方波低频信号源,频率可调整到小数点后2位,频率值可通过串口接PC更改,并返回PC(LPC2148PWM function with the implementation of low-frequency square-wave signal source, frequency adjustable to 2 after the decimal point, the frequency value can be received through the serial changes in PC and PC return)
- 2009-03-18 10:34:53下载
- 积分:1
-
彩灯实验源代码,实验源程序,可供大家参考
彩灯实验源代码,实验源程序,可供大家参考-caidengshiyan
- 2022-01-26 01:14:35下载
- 积分:1
-
c++priemer第三版,中文完美翻译,超好,希望对大家有用
c++priemer第三版,中文完美翻译,超好,希望对大家有用-c++ priemer third edition, Chinese perfect translation, super good, I hope useful for everyone
- 2022-03-05 22:20:21下载
- 积分:1
-
Snake written by a small Java program can implement the basic functions of this...
用Java写的贪吃蛇的小程序,可以实现这个小游戏的基本功能。贪吃蛇我们都玩过,因此都程序功能不再多说-Snake written by a small Java program can implement the basic functions of this little game. Snake we all played, so all program features will not say
- 2022-08-23 18:05:51下载
- 积分:1
-
shot3dgao
说明: 可以生成三维地震数据,详细使用操作看说明(To synthetic 3D seismic data)
- 2020-04-16 00:14:57下载
- 积分:1
-
CFX默认空化模型CEL方法定义的CCL
说明: CFX默认空化模型CEL方法定义的CCL(CCL defined by CFX default cavitation model CEL method)
- 2021-03-02 15:39:34下载
- 积分:1
-
failed to translate
这个程序时多线程的 DOS 程序
-failed to translate
- 2023-04-06 11:50:03下载
- 积分:1
-
C++ Primer第五版中文版
C++prime中文第五版,希望能对你有帮助。(C++ Prime Chinese 5th Edition, I hope it will be helpful to you.)
- 2019-03-09 20:59:59下载
- 积分:1
-
PSMS PId
实现永磁同步电机的PID闭环控制,能够仿真出来,且波形较好(Realization of Permanent Magnet Synchronous Motor PID Closed Loop Control)
- 2017-09-27 12:49:20下载
- 积分:1