完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用MPLABX IDE组件调试来运行我的代码,并有几个快速问题:1。如何显示程序步骤,即执行步骤的总数不是PC?我的专有汇编程序总是显示这一点。2。你能用你所给的名字改变监视窗口中的变量的内存位置吗?(例如VAREY1=0x20)显示“VARE1”而不是“0x20”。3。这是一个很长的例子:当使用ADC时,你能将测试值“注入”到调试器中,这将有助于测试吗?谢谢您。
以上来自于百度翻译 以下为原文 I'm using MPLABX IDE assembly debug to run through my code and have a few quick questions: 1. How do you display the programme steps, i.e. the total number for steps executed not the PC? My proprietary assembler shows this at all times. 2. Can you change the memory location for a variable in the watch window with the name you've given it - (e.g. var_1 equ 0x20) to show "var_1" not "0x20". 3. This is a long shot: when using the ADC can you somehow "inject" test value into the debugger that will help in testing? Thank you. |
|
相关推荐
7个回答
|
|
有什么特别的照片吗?1和3可以在模拟器上完成,但不能在调试器上完成。
以上来自于百度翻译 以下为原文 Any Particular PIC? 1 and 3 can be done on the Simulator, But not the Debugger. |
|
|
|
如果将项目设置从“可重定位模式”改为“绝对模式”,MPLABX不支持古老的“绝对模式”,它更倾向于使用更现代的“可重新定位模式”,其中变量使用“DB”、“DW”、“DT”等保留,而不是KL。使用“等”指令的错误。
以上来自于百度翻译 以下为原文 This should work if you change the project setting from "relocatable mode" to "absolute mode". MPLABX doesn't support the ancient "absolute mode" that well, it's more geared to using the more modern "relocateable mode", where variables are reserved using "db", "dw", "dt", etc. directives, not the kludge of using "equ" directives. |
|
|
|
HiWell,你总是可以使用“CBOD”,它的工作少,容易出错,而且不那么笨拙。正如我所看到的,它是为康斯坦斯。FWIW,我总是使用绝对的ASM,所以我可以修整不必要的分页和银行。无论如何,它只对小的东西(lt;1k)更大的东西,它的“C”。
以上来自于百度翻译 以下为原文 Hi Well, you can allways use "cblock", its less work, less error prone, and less clunsy then "equ". As I see it EQU is for constants. FWIW I allways use absolute ASM, so I can trimm down unnecessary paging and banking. Anyhow, its only for small stuff (< 1K) for bigger stuff its 'C'. |
|
|
|
|
|
|
|
|
|
|
|
第1项是秒表吗?计数执行的周期数(在断点之间),显示为循环和时间。在模拟器上工作,如果你在硬件调试器上也很幸运,这取决于PIC、调试器、月相……(我喜欢ASIC在小图片上的绝对模式)。通常没有空闲的周期来改变页面,这取决于编译器/链接器在哪里放置的东西。绝对模式把它告诉的东西,而不必说服链接器,请试着把它放在那里…但这是一个调试的PITA,因为MPLABX似乎并没有很好地支持它,可能只是出于哲学原因。
以上来自于百度翻译 以下为原文 Item number 1 would be the stopwatch? Counts number of cycles executed (between breakpoints), displays as cycles and as time. Works on the simulator and if you're lucky on the hardware debuggers too, depending on PIC, debugger, phase of the moon... (and I like absolute mode for ASM on small PICs. Usually no spare cycles to muck about changing pages depending on where the compiler/linker happens to have put stuff. Absolute mode puts stuff where its told to, without having to persuade the linker to please try and put that there... But it's a pita for debugging because mplabx doesn't seem to support it well, presumably for philosophical reasons only) |
|
|
|
啊。我现在意识到我正在使用模拟器和调试器互换。我应该说我正在使用模拟器:这只是我正在使用调试功能来完成。我如何“注入”测试值到ADC?我正在模拟16F1827。我能在现有项目中更改为绝对模式吗?谢谢,我来试试CBROG。秒表!谢谢,这正是我所需要的。
以上来自于百度翻译 以下为原文 Ah. I now realise that I was using simulator and debugger interchangeably. I should have said that I am using the simulator: it's just that I was using the debug functions to step through. How do I "inject" test values into the ADC? I'm simulating the 16F1827. Can I change to absolute mode in an existing project? Thanks, I'll try cblock. The stopwatch! Thank you, it's excellent just EXACTLY what I needed. |
|
|
|
只有小组成员才能发言,加入小组>>
5166 浏览 9 评论
2000 浏览 8 评论
1928 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3174 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2226 浏览 5 评论
734浏览 1评论
615浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
505浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
631浏览 0评论
528浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-24 14:37 , Processed in 1.284116 second(s), Total 90, Slave 74 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号