4_Keil_XMC1300-转速计算

所属分类:单片机开发
开发工具:C/C++
文件大小:6068KB
下载次数:4
上传日期:2018-01-03 21:48:34
上 传 者dorrit1021
说明:  通过对xmc1300中POSIF模块的设置,实现对电机转速的计算。
(The calculation of motor speed is realized by setting the POSIF module in xmc1300.)

文件列表:
4_Keil_XMC1300-转速计算 (0, 2017-07-12)
4_Keil_XMC1300-转速计算\IMG_7357.JPG (1383504, 2017-06-21)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1 (0, 2017-06-19)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\EventRecorderStub.scvd (339, 2017-06-19)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\ExtDll.iex (19, 2017-06-15)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\ExtDll_1.iex (19, 2013-11-28)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\JLinkLog.txt (2073957, 2017-06-19)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\JLinkLog_1.txt (24419, 2016-03-24)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\JLinkSettings.ini (650, 2013-11-28)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\JLinkSettings_1.ini (650, 2013-11-28)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.axf (280292, 2017-06-19)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.build_log.htm (1848, 2017-06-19)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.build_log_1.htm (2514, 2016-03-25)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.hex (5991, 2017-06-19)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.htm (30986, 2017-06-19)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.lnp (398, 2017-06-19)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.map (58634, 2017-06-19)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.plg (2589, 2013-11-28)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.sct (479, 2017-06-08)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.uvgui.shangaus (140325, 2013-11-28)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.uvgui_1.shangaus (140325, 2013-11-28)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.uvguix.TF (169498, 2017-06-19)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.uvguix.summerzhongzai (144630, 2017-04-20)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.uvguix_1.summerzhongzai (144630, 2017-04-20)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.uvopt (9611, 2013-11-28)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.uvoptx (9786, 2017-06-16)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.uvproj.saved_uv4 (15767, 2013-11-28)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.uvproj_1.saved_uv4 (15767, 2013-11-28)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder.uvprojx (15857, 2017-06-15)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder_1.axf (300260, 2016-03-25)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder_1.hex (5075, 2016-03-25)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder_1.htm (30235, 2016-03-25)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder_1.lnp (386, 2016-03-25)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder_1.map (57178, 2016-03-25)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder_1.plg (2589, 2013-11-28)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder_1.sct (479, 2016-03-22)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder_1.uvguix.TF (84392, 2017-06-11)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder_1.uvopt (9611, 2013-11-28)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder_1.uvoptx (8488, 2017-06-11)
4_Keil_XMC1300-转速计算\Keil_XMC1300-POSIF-Decode1\Keil_XMC1300-POSIF-Decoder_Keil_XMC1300-POSIF-Decoder.dep (6170, 2017-06-19)
... ...

1.目的: 这个程序使用POSIF0和CCU40级联,POSIF0工作在正交编码模式,CCU40工作在外部计数模式。 通过P1.2、P1.1模拟A、B信号,CCU40工作在边沿对齐模式进行计数,达到周期值时产生中断。 2.实验器材: - J-Link驱动安装到 PC - J-Link v4.59或更高版本 - XMC1300 Boot Kit (XMC1300 CPU Card) 3.实验步骤: - 连接 XMC1300 CPU板到 USB 创建此工程的步骤: 1) 在DAVE3.0中创建一个 Empty Main Project 2) 初始化时钟 3)设定分频初始值 4) 初始化Systick时钟、CCU40和POSIF0模块 5) 初始化配置: Systick:更新系统时钟寄存器的值、使能周期中断、启动时钟 CCU40:周期寄存器、比较寄存器配置,事件0上升、下降沿触发计数。 POSIF0:配置正交编码模式、输入A、B信号端口P1.2、P1.1。 6) 初始化P1.2、P1.1为IO输出口模拟A、B信号,P0.0、P0.6对应LED显示前面信号的工作状态. 8) 建立中断处理程序,在中断中改变P0.6电平状态。 4.实验结果: 1. 时钟运行时,P0.0、P0.6对应LED交互闪烁,计数到周期值100后,进入周期匹配中断,P0.6对应LED改变状态。

近期下载者

相关文件


收藏者