切换到宽版
爱科技/爱创意/爱折腾/爱极致;技术知识分享平台,点击进入新版数码之家网站
  • 3642阅读
  • 30回复

[另类]有没有熟悉PIC单片机的大神 ,请教一个问题! [复制链接]

上一主题 下一主题
离线supercaby
 

发帖
52
M币
134
专家
1
粉丝
3
只看楼主 倒序阅读 我要置顶 楼主  发表于: 2018-03-29
此悬赏帖已过期
最佳答案:20 M币,热心助人剩余点数: 4 M币。
在国外一站点下载了一个程序,按照说明编译之后无论仿真还是实际电路都不能运行,请高手帮忙看看!谢谢  !!!!!
源程序:
[attachment=12623548]
原理图:
[attachment=12623537]
说明:


Software Development Environment


This software was developed with the MPLAB IDE from MicroChip.
If you plan to use this ESC design and build one yourself you will need to download the MPLAB IDE. There are too many ESC options for all the versions to be available on this Web page. With the earlier aircraft design I provided a few 'common' versions of the software, however, with this ESC I have assumed that anyone building the ESC will select the options and assemble the code for themselves.
After you have installed the MPLAB IDE proceed as follows:
  • Create a directory somewhere on your Windows system. the MPLAB IDE does not like path names that are too long (greater than 30 characters or so) - so stick to a simple short name. For example: C:\PIC\CarESC
  • Copy the caresc.asm, linear.inc and power.inc files from the links below into your diectory.
  • Start the MPLAB IDE.
  • Select Project->Project Wizard.
  • Click Next.
  • Select 'PIC12F675' as the device, click 'Next'.
  • Select 'Microchip MPASM Toolsuite' as the Active Toolsuite, click 'Next'.
  • Enter a name for your project and then use the 'Browse' facility to set the Project Directory to the directory you created at the first step, click 'Next'.
  • Add the 3 files that you copied to the project directory to the project by double clicking each file name in the left hand pane, the files will appear in the right hand pane. Do NOT check the boxes next to the files. Click 'Next'.
  • Click 'Finish'.
  • The workspace will open and you will see a project window that shows one Source File and two Header Files.
  • You should now be able to assemble the PIC code by pressing F10 - this will produce a file called 'caresc.hex'.
  • To alter the paramaters double click on 'caresc.asm' in the project window and the assembler source will now appear in a new window, make the changes you require in this window.
  • After you have made you changes press F10 to assemble the code.

The MPLAB IDE has full support for simulation that permits you to fully check the operation of the ESC. However, the use of these facilities is beyond the scope of this document. Users who just want to build a 'custom' version by modifying standard parameters of the ESC should have no problem just using the IDE to assemble the code.



离线supercaby

发帖
52
M币
134
专家
1
粉丝
3
只看该作者 1楼 发表于: 2018-03-29
请登录后查看
[ 此帖被supercaby在2018-03-29 20:51重新编辑 ]
本文内容包含图片或附件,获取更多资讯,请 登录 后查看;或者 注册 成为会员获得更多权限
离线supercaby

发帖
52
M币
134
专家
1
粉丝
3
只看该作者 2楼 发表于: 2018-03-29
请登录后查看
本文内容包含图片或附件,获取更多资讯,请 登录 后查看;或者 注册 成为会员获得更多权限
离线iamwgh1

发帖
123
M币
-48
专家
3
粉丝
8
只看该作者 3楼 发表于: 2018-03-29
请登录后查看
离线cxw0102

发帖
1704
M币
6660
专家
15
粉丝
108
只看该作者 4楼 发表于: 2018-03-29
请登录后查看
离线北极风

发帖
37
M币
673
专家
1
粉丝
7
只看该作者 5楼 发表于: 2018-03-29
请登录后查看
离线supercaby

发帖
52
M币
134
专家
1
粉丝
3
只看该作者 6楼 发表于: 2018-03-29
回 cxw0102 的帖子
请登录后查看
离线supercaby

发帖
52
M币
134
专家
1
粉丝
3
只看该作者 7楼 发表于: 2018-03-29
回 iamwgh1 的帖子
请登录后查看
离线supercaby

发帖
52
M币
134
专家
1
粉丝
3
只看该作者 8楼 发表于: 2018-03-29
回 北极风 的帖子
请登录后查看
离线supercaby

发帖
52
M币
134
专家
1
粉丝
3
只看该作者 9楼 发表于: 2018-03-29
请登录后查看
本文内容包含图片或附件,获取更多资讯,请 登录 后查看;或者 注册 成为会员获得更多权限
快速回复
限80 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个