1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
亲爱的先生,我正在使用PIC18F620作为应用程序。实现的基本思路如下:我使用RA0(PIN 24)通道,VREF+VDD,VREF-GND采样温度传感器。我给ADC采集时间30U,ADC转换时间30Us。转换数据为UPDA。TED在一个文件寄存器中。这是一个无限循环。使用UART1链路实现2MbPS的RS485总线。一个命令被发送到我的硬件(引脚32),这触发了一个UART中断,它在中断服务程序中用一个应答(PIN 32)来服务。一旦中断服务完成,我就回到正常的轮询模式。在上面的过程中,在一些(不是全部)的最近的硬件中,我是GEtiN。当中断服务完成时,ADC的转换数据的LS小写(8个计数)中的波动。这一点即使在直接从可编程直流电源发出信号时也得到了证实。在这方面,请告知以下内容:1。当UART通信被高优先级中断服务程序服务时,ADC转换是否继续?2。由于ADC的其他引脚未被使用,它们应该是数字模式还是模拟模式?TrISA配置应该是什么?三。ADC(引脚24)与UART(PIN 31和32)的接近是否是噪声的一个因素?4。在我所连接的一些微控制器中,额定电流下降了4mA,所有其他因素保持不变。在调查中,我们发现受影响的微控制器来自不同的批次。IC可能导致电流变化的原因是什么?谢谢和问候,
以上来自于百度翻译 以下为原文 Dear sir, I am using a PIC18F6520 for my application. The basic idea of implementation is as follows. I am sampling a temperature sensor using the RA0 (pin 24) channel, Vref+ = VDD, Vref- = GND. I am giving 30us for ADC acquisition time, and 30us for ADC conversion time. The converted data is being updated in an File register. This is placed in an infinite loop. An RS485 bus at 2Mbps is implemented using the UART1 link. A command is sent to my hardware (pin 32), this triggers a UART interrupt, which is serviced with a reply (pin 32) in the interrupt service routine. Once the interrupt servicing is completed, I go back to normal polling mode. In the above process, in some (not all) of the recent hardware, I am getting a fluctuation in the LS nibble (8 counts) of the ADC's converted data whenever the interrupt servicing is being done. This is confirmed even when directly giving signal from a programmable DC source. In this regard, please advise on the following: 1. Does the ADC conversion continue while the UART communication is being serviced by high priority Interrupt Service Routine? 2. Since the other pins of the ADC are not in use, should they be in digital mode or analog mode? Also what should be TRISA configuration? 3. Is the proximity of the ADC (pin 24) to the UART (pin 31 & 32) a contributing factor to the noise? 4. In some of the recent microcontrollers that I have wired, the nominal current has decreased by ~4mA, all other factors remaining the same. On investigating we found that the affected microcontrollers are from a different batch. What may be the change in the IC to cause the change in current? Thanks and regards, |
|
相关推荐
1个回答
|
|
是的,不管中断如何,ADC转换都继续。但是如果发生这种情况,中断会延长你的捕获时间。
以上来自于百度翻译 以下为原文 Yes, the ADC conversion continues regardless of interrupts. But the interrupt will lengthen your acquisition time if that's when it happens. |
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
776浏览 1评论
665浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
594浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
675浏览 0评论
575浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 23:58 , Processed in 1.199452 second(s), Total 76, Slave 60 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号