完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,我在MPLABX和和声上迈出了第一步,当然也有一些开始的痛苦。用PIC16等和汇编,我有简单的包含所有寄存器定义的文件。这里我想在PIC32上检查和重置TMR3如果标志,但是很明显应该怎么做。我已经搜查过了。H PLM库(定时器),但我找不到任何可以做的工作。然后我试着直接从数据手册中使用注册的ADN标志定义,但是这也不起作用。我已经考虑了一些我可以/应该包括的文件,但是它也空了。
以上来自于百度翻译 以下为原文 HI folks, I am doing first steps on MPLABX&HARMony, of course with some starting pain. With old PIC16 etc and assembly I had simple include file with all register definitions. Here Im' trying to check and reset TMR3 IF flag on PIC32, but it is nto obvious how that should be done. I've scoured through PLM library ( timers) but I couldn't find there anything that would to the job. Then I tried using registed adn flag definitions from data book directly, but that doesn't work either. I've greeped around for some files that I could/should include, but came empty on that also... |
|
相关推荐
8个回答
|
|
|
|
|
|
嗨,如果你开始使用和声,一定要使用开发者网站。它包括例子、教程和动手练习:HTTP://www. McCHIPSeDealErr.com你也可以考虑这本书:HTTP://www. McCHIP.COM/FoMss/FunPt/101741i建议你购买PIC32板中的一个能够尝试的例子,如PIC32 MZ启动器套件或好奇PIC32 MZ EFFRAGER
以上来自于百度翻译 以下为原文 Hi, If you start with Harmony, make sure to use the developer website. It includes examples, tutorials and hands on exercises : http://www.microchipdeveloper.com You may also wan to consider this book : http://www.microchip.com/forums/FindPost/1017641 I recommend that you buy one of the PIC32 boards to be able to try the Out Of the box examples like PIC32MZ starter kit or the curiosity PIC32MZ EF Regards |
|
|
|
SysSytInSurcestAtUsCube(InthoSoCyTimeSeri3);OrPiBixInStudioFraseCurrand(ItnIdIy0,InthoSoCytoTimeRi3);您可以使用这些函数查找帮助文件中的其余库。但是不像PIC16,MIPS核心中没有原子位操作。您需要使用与每个控制寄存器一起使用的“设置”“清除”和“反转”寄存器。
以上来自于百度翻译 以下为原文 SYS_INT_SourceStatusClear(INT_SOURCE_TIMER_3); or PLIB_INT_SourceFlagClear(INT_ID_0, INT_SOURCE_TIMER_3); You can use those function to find the rest of the libraries in the Help file. You could of coures set the bits directly. BUT unlike a PIC16 there is no atomic bit operations in the MIPS core. You would need to use the "SET" "CLEAR" and "INVERT" registers that go with each control register. |
|
|
|
我认为OP是在汇编程序中编程的。如果你要升级到一个32位的设备,现在是学习C的时候了。
以上来自于百度翻译 以下为原文 I think the OP is trying to program in assembler. If you're going to step up to a 32 bit device, it really is time to learn C. |
|
|
|
他不是第一个在PIC32上进行全自动ASM编程的人。几个月前,有人在做这样的事情。我记得他成功了。
以上来自于百度翻译 以下为原文 He is not the first to program in full ASM on a PIC32. There was a thread a few months back from someone doing just that. As I recall he succeeded. |
|
|
|
嗨,对于PIC32,汇编程序与XC32编译器一起安装。与XC32编译器一起,还有一个小例子,包括3个汇编示例,其中之一演示了一些端口操作。每个设备类型都有一个设备支持头文件,还安装了与C编译器相比,它具有所有寄存器和位场名称的定义,对应于数据表中的描述,它是用于C编程、汇编编程的相同文件,也被和声所使用。在C代码中,设备头文件包括:在汇编代码中包含了.lab& lt;xc.h & gt;它是以完全相同的方式完成的:{包含& lt;xc.h & gt;实际的设备支持头文件具有与设备类型相同的名称,例如PIC32 MX10F016B.HIT存储在某处,如:C//程序文件。(x86)/Microchip/XC32/V205/PIC32 MX/Cube/PROCEDAN也是一个用户手册:C//程序文件(X86)/Microchip/XC32/V205/DOCS/MPLAB-ASMLIK332用户指南.PDF MysIL
以上来自于百度翻译 以下为原文 Hi, For PIC32, the assembler is installed together with XC32 compiler. Together with XC32 compiler, there is also a small selection of examples, including 3 assembly examples, one of those demonstrate some Port operations. There is a device support header file for each device type, also installed together with the C compiler. It have definitions of all registers and bitfield names, corresponding to descriptions in Datasheet. It is the same file is used for C programming, assembly programming, and it is also used by Harmony. Harmony have its own abstractions on top of what is defined in the device header file. In C code, the device header file is included by: #include In assembly code, it is done exactly the same way: #include The actual device support header file have the same name as the device type, e.g. pic32mx110f016b.h it is stored somewhere like: C:/program files (x86)/Microchip/xc32/v205/pic32mx/include/proc There is also a user manual: C:/program files (x86)/Microchip/xc32/v205/docs/MPLAB-ASMLINK32-User-Guide.pdf Mysil |
|
|
|
我将一个项目从C32迁移到XC32,它处理中断。但是出现了以下错误:C//Project文件(x86)/Microchip /XC32/V2.05/PIC32 MX/IPLA/LEGA-C/Purial/Stury.H:267:“不可中断”的未定义引用,我读了关于链接器脚本的一些内容,但是我遇到了一些问题。S,随着项目中链接器脚本的更新,在高级
以上来自于百度翻译 以下为原文 I'm migrating a project from c32 to xc32, which handles interruptions. but the following error appears. c:/program files (x86)/microchip/xc32/v2.05/pic32mx/include/lega-c/peripheral/system.h:267: undefined reference to `INTDisableInterrupts' I read something about linker script, but I had some problems, with the update of the linker script in the project thanks in advanced |
|
|
|
当问问题时,告诉你使用的是什么类型的设备!ErneToMA在消息8中报告的错误消息与链接器脚本没有什么关系。相反,错误消息是由所有PIC32设备类型不可用的预编译库文件引起的,即使您已经下载并安装了“遗留PLB”,因为编译器已经找到:C//程序文件(x86)/微。芯片/ XC32/V2.05/PIC32 MX//Real/C/Leal/Surviv/St.H.267,似乎是“遗留PLIB”可用的源代码。您可以找到缺少的函数的源代码:InDeBable中断,并作为项目的一部分编译。或者,读“XC32编译器用户指南”,它在DOCSDIAL中。托利,并使用:Sy-BuuthTiNyDabable中断();和类似的函数,但之后你必须改变:St.h也。迈西尔
以上来自于百度翻译 以下为原文 When asking questions, tell what device type you are using! Error message reported by ernie toma in message #8 have little to do with linker script. Instead, error message is caused by precompiled library files not available for all PIC32 device types, even if you have downloaded and installed "Legacy Plb" Since compiler have found: c:/program files (x86)/microchip/xc32/v2.05/pic32mx/include/lega-c/peripheral/system.h:267 there seem to be source code for "Legacy Plib" available. You may locate source code for the missing function: INTDisableInterrupts, and compile as part of project. Alternatively, read "XC32 Compiler User's Guide", it is in the docs directory, and use: __builtin_disable_interrupts(); and similar functions, but then you will have to change: system.h also. Mysil |
|
|
|
只有小组成员才能发言,加入小组>>
5162 浏览 9 评论
2000 浏览 8 评论
1928 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3172 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2226 浏览 5 评论
731浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
629浏览 0评论
527浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-23 00:44 , Processed in 1.254583 second(s), Total 91, Slave 74 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号