-
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
-
MAgent-master
说明: 大规模对抗代码,有追逃,有需要的可以看看(Python code about Against. You can download if you need.)
- 2020-06-18 16:20:02下载
- 积分:1
-
Time of use based on spot
说明: 一种利用内点法确定实时最优电价的程序,以30节点为例进行说明,效果明显(An internal point method is used to determine the real-time optimal electricity price)
- 2020-12-27 11:29:02下载
- 积分:1
-
BO_Study
为BI开发学习手册,内容为BO的产口培训手册。(BI developers study manual, training manual for the BO production mouth.)
- 2012-06-22 10:57:26下载
- 积分:1
-
鱼c小甲鱼零基础学python全套课后题
说明: 小甲鱼python教程的习题及答案,比较详细(Exercises and answers for the small turtle python tutorial, more detailed)
- 2020-03-21 22:09:40下载
- 积分:1
-
echarts-dpzs
说明: 数据可视化大屏,用于大屏幕展示,充满科技风的大屏展示效果(Data visualization large screen, for large screen display, full of technology display effect)
- 2019-03-15 14:20:55下载
- 积分:1
-
圆形按钮的宽屏焦点图 基于jquery内核
带有圆形按钮的宽屏焦点图 基于jquery内核,自右向左平滑滚动的图片切换,右上角小圆点即为控制按钮,点击后大图片对应切换显示,整体设计上,十分唯美的视觉效果,如演示截图所示.
- 2022-03-28 22:24:15下载
- 积分:1
-
实验二 定时器实验
让定时器准确计时,熟练掌握应用编程软件,熟悉程序编写。(The test timer accurate timing, proficiency in the application programming software, familiar with the programming.)
- 2018-06-17 17:34:02下载
- 积分:1
-
根据渗流力学原理,通过分析油井的不稳定试井数据求取地层参数;附带有数据。...
根据渗流力学原理,通过分析油井的不稳定试井数据求取地层参数;附带有数据。-According to seepage mechanics, through the analysis of instability in oil well test data to strike a formation parameter incidental data.
- 2022-04-13 01:52:35下载
- 积分:1
-
C# 调用外部的EXE文件
C# 调用外部的EXE文件,程序中主要是使用System.Diagnostics.Process.Start(textBox1.Text);来执行外部的exe文件。
private void button1_Click(object sender, EventArgs e)
{
openFileDialog1.Filter = "exe文件(*.exe)|*.exe";//设置打开文件的格式
if (openFileDialog1.ShowDialog() == DialogResult.OK)//判断是否选择了exe而文件
textBox1.Text = openFileDialog1.FileName;//显示选择的文件
}
private void button2_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start(textBox1.Text);//执行exe文件
}
- 2023-06-03 22:35:03下载
- 积分:1