当前位置:网站首页>Gd32f4xx MCU drives MCP2515 to expand can interface
Gd32f4xx MCU drives MCP2515 to expand can interface
2022-06-22 16:20:00 【madao1234】
1、GD32F4xx SPI
GD32F4xx Series of MCU Only 2 individual CAN Interface , If more CAN Interfaces are mostly used mcp2515 The chip performs SPI turn CAN Interface to use . Let's first introduce GD32F4xx MCU Of SPI peripherals .
1.1 SPI brief introduction
SPI (Serial Peripheral Interface, Serial peripheral interface ), Provides the basis for SPI Data sending and receiving function of the protocol , It can work in master or slave mode .
SPI It's a synchronous data bus , That is, it uses a separate data line and a separate clock signal , To ensure the synchronization between the sender and the receiver . The clock signal tells the receiver to sample the signal on the data line at the exact time . The side that provides the clock signal is called the host (Master), The other side is the slave (slave). In the use of SPI When communication , There is usually only one host , But it can be controlled by multiple slaves . The data acquisition time can be the rising edge or falling edge of the clock signal .
1.2 SPI Pin
| Pin name | Direction | describe |
|---|---|---|
| SCK | Input / Output | host :SPI Clock output ; Slave :SPI Clock input |
| MISO | Input / Output | host : Data receiving line ; Slave : Data transmission line |
| MOSI | Input / Output | host : Data transmission line ; Slave : Data receiving line |
| NSS | Input / Output | Software NSS Pattern ( That is, through other IO The port controls the slave CS Pin ): Don't use ; from |
边栏推荐
- Make the text template in pycharm project support jinjia2 syntax
- jmeter关联登录302类型的接口
- 使用 zipfile、openpyxl、flask 批量导出excel zip
- Merge sort of sorting
- [Shanda conference] definitions of some basic tools
- 二叉树练习第二弹
- Cross border integration, creativity and innovation to help improve the influence of cultural tourism night tour
- 信创研究:国产数据库聚焦信创市场,华为Gauss有望成为最强
- SAP ABAP 内部表:创建、读取、填充、复制和删除-06
- Program substitution function
猜你喜欢

SAP ABAP 数据字典教程 SE11:表、锁定对象、视图和结构 -03

jmeter关联登录302类型的接口

ironSource Luna 推出苹果搜索广告限时优惠,注册即享3个月免费服务

Gbase "library" special training of innovation and application Committee of Beijing fintech Industry Alliance

Pod type

Unity游戏优化(第2版)学习记录8

Discover the number of media new users can insert

Linux安装mysql

Simulation of vector

Program substitution function
随机推荐
ArcGIS JS之 4.23之IIS本地部署与问题解决
3. Classe abstraite (forme)
[VTK] model rotation and Translation
Conversion between numeric types and strings
The difference between nvarchar and varchar
【小程序项目开发-- 京东商城】uni-app开发之轮播图
转:杰克·韦尔奇:战略就是要少点沉思,敏于行动
Adding an unknown type of MCU to jflash
解决mysql远程登录报权限问题
数睿数据荣获第二届ISIG中国产业智能大会两项年度大奖
ironSource Luna 推出苹果搜索广告限时优惠,注册即享3个月免费服务
How to open a futures account? Is it safe to open an online futures account?
[Shanda conference] software performance optimization and bug repair
【山大会议】软件性能优化及bug修复
3.抽象类(shape)
Deploy odoo to the server and configure it as a service
Uni develops wechat applet to customize automatic camera detection (portrait + ID card)
SAP ABAP BAPI-016
数睿数据受邀参与南通企业数字化转型研讨会
School enterprise alliance is on the way! Huawei cloud gaussdb has come to universities again