登录
首页 » Others » STM32 CAN总线双机通讯程序示例(中断接收)

STM32 CAN总线双机通讯程序示例(中断接收)

于 2020-12-02 发布
0 377
下载积分: 1 下载次数: 1

代码说明:

1、该程序为STM32 CAN 双机通讯实例,接收数据时通过中断程序进行接收的。2、Node的主芯片为STM32F103ZET,node2的芯片为STM32F103C8. 双机均工作在正常模式下。为了能够完整的完成双机通讯,还需要配备CAN接收器。本例程中采用的是TJA1050 CAN控制芯片.可从网上购买,约6元左右。3、在运行过程中,只能某一STM32发送(程序中没有设置数据重发,因此在两个节点的主程序中都有发送程序的话,会进行总线总裁,失败方无法再次发送发送数据)。大家可以再我的基础上进行修改。4、该程序没有设置错误处理程序,大家可以进行完善

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 基于四层电梯控制器的设计报告
    VHDL语言编写四层电梯控制器,里面有主程序,代码还有实验报告,完整版,可以实现现实电梯的所用功能。
    2020-12-11下载
    积分:1
  • 小波变换程序
    一些经典的小波分析MATLAB程序,从经典97到二维小波、小波滤波器、小波去噪、小波霍夫曼压缩编码、小波神经网络、小波特征提取图像匹配等
    2021-05-07下载
    积分:1
  • ecshop商业模板 高仿小米商城源码,小米手机商城源代码模板价值百元
    程序介绍:ECSHOP精仿小米商城网站模板,程序基于ECSHOP 2.7.3最新版仿制。虽然是以前的老模板,但对于一些做手机类,数码类商城的朋友还是挺适用的。安装方法:第一种安装方法:1.解压文件夹至空间目录2.进入http://你网站域名/install/index.php 进行安装即可;3.安装时数据库前缀设置为:ecs_ (重要) 4.安装完成后,进入后台,恢复后台备份数据文件,5.恢复后的后台管理:admin 密码 admin123第二种安装方法:1.解压文件夹至空间目录2.入http://你网站域名/bak 输入用户名:admin 密码:123456 进行帝
    2021-05-07下载
    积分:1
  • Matlab车道线检测
    用matlab实现道路分割,包含了分割检测等多种算法 ,有效地实现了道路分割
    2020-12-03下载
    积分:1
  • 传热学非稳态热传导问题网格划分数值计算(传热学第四版chapter4 4-6)C++源文件
    传热学第四版 高等教育出版社 杨世铭 陶文铨 编著 第四章非稳态热传导例题4-6的数值解法的C++源文件,老师要做的大作业,结果可以做出例题里面的等温线图,给以后要做大作业的同学提供一个参考
    2020-12-12下载
    积分:1
  • 基于matlab的三维重建代码
    三维重建 的matlab 代码 可以入门使用,希望对你有帮助
    2020-12-03下载
    积分:1
  • 稀疏自编码深度学习的Matlab实现
    稀疏自编码深度学习的Matlab实现,sparse Auto coding,Matlab codetrain, m/7% CS294A/CS294W Programming Assignment Starter CodeInstructions%%%This file contains code that helps you get started ontheprogramming assignment. You will need to complete thecode in sampleIMAgEsml sparseAutoencoder Cost m and computeNumericalGradientml For the purpose of completing the assignment, you domot need tochange the code in this filecurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencodtrain.m∥%%========%6% STEP 0: Here we provide the relevant parameters valuesthat willl allow your sparse autoencoder to get good filters; youdo not need to9 change the parameters belowvisibleSize =8*8; number of input unitshiddensize 25number of hidden unitssparsity Param =0.01; desired average activation ofthe hidden units7 (This was denoted by the greek alpharho, which looks like a lower-case pcurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod4/57train.,m∥in the lecture notes)1 ambda=0.0001%o weight decay parameterbeta 3%o weight of sparsity penalty term%%==:79 STEP 1: Implement sampleIMAGESAfter implementing sampleIMAGES, the display_networkcommand shouldfo display a random sample of 200 patches from the datasetpatches sampleIMAgES;display_network(patches(:, randi(size(patches, 2), 204, 1)), 8)%为产生一个204维的列向量,每一维的值为0~10000curer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod5/57train.m/v%中的随机数,说明是随机取204个 patch来显示%o Obtain random parameters thetatheta= initializeParameters ( hiddenSize, visibleSize)%%=============三三三三====================================97 STEP 2: Implement sparseAutoencoder CostYou can implement all of the components (squared errorcost, weight decay termsparsity penalty) in the cost function at once, butit may be easier to do%o it step-by-step and run gradient checking (see STEP3 after each stepWecurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod6/57train. m vb suggest implementing the sparseAutoencoder Cost functionusing the following steps(a) Implement forward propagation in your neural networland implement the%squared error term of the cost function. Implementbackpropagation tocompute the derivatives. Then (using lambda=beta=(run gradient Checking%to verify that the calculations corresponding tothe squared error costterm are correctcurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod7/57train. m vl(b) Add in the weight decay term (in both the cost funcand the derivativecalculations), then re-run Gradient Checking toverify correctnessl (c) Add in the sparsity penalty term, then re-run gradiChecking toverify correctnessFeel free to change the training settings when debuggingyour%o code. (For example, reducing the training set sizecurer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod8/57train m vl/number of hidden units may make your code run fasterand setting betaand/or lambda to zero may be helpful for debuggingHowever, in yourfinal submission of the visualized weights, please useparameters web gave in Step 0 abovecoS七grad]sparseAutoencoderCost(theta, visibleSize,hiddensize, lambda,sparsityParam, beta,patches)二〓二二二二二二二〓二〓二〓二〓=二====〓=curer:YiBinYUyuyibintony@163.com,WuYiUniversityning, MATLAB Code for Sparse Autoencod9/57train.m vlll96% STeP 3: Gradient CheckingHint: If you are debugging your code, performing gradienchecking on smaller modelsand smaller training sets (e. g, using only 10 trainingexamples and 1-2 hiddenunits) may speed things upl First, lets make sure your numerical gradient computationis correct for a%o simple function. After you have implemented computeNumerun the followingcheckNumericalGradientocurer:YiBinYUyuyibintony@163.com,WuYiUniversityDeep Learning, MATLAB Code for Sparse Autoencode10/57
    2020-12-05下载
    积分:1
  • 最小二乘法实现曲线拟合及Matlab实现
    采用最小二乘曲线拟合,可寻求有限测量数据及其伴随误差的变化规律。曲线拟合先确定拟合模型,再确定函数的所属类。多项式拟合先将其化为双曲线、S型曲线、倒指数曲线、对数曲线等拟合曲线,再求解拟合多项式系数。并用Matlab编制程序,对测量数据进行拟合与仿真。
    2021-05-07下载
    积分:1
  • 龙贝格积分MATLAB.m
    【实例简介】基于龙贝格算法的积分,可计算一维和二维积分 学数值计算的兄弟们可以看看 精度可以自己设定 具体文件里有说明
    2021-12-09 00:38:17下载
    积分:1
  • 数字图像处理图片素材
    图像处理学习者和研究者使用的图像素材,标准库
    2020-11-28下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载