完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个PIC32 MX设备,我想产生一个干净的100 ns脉冲。此脉冲应在MPLAB编译器任意时间异步设置。有人知道怎么做吗?问候,莫
以上来自于百度翻译 以下为原文 I have a PIC32MX device and I would like to generate a clean 100 ns pulse. This pulse should be set asynchronously at any time by the MPLAB compiler. Does anyone know how to do it? Regards, Mo |
|
相关推荐
6个回答
|
|
当用80MHz系统时钟运行时,100ns仅是8个时钟周期:使用输出比较外围模块和定时器。16位模式就足够了,对于定时器和OC模块都是如此。请求,问候,Mysil
以上来自于百度翻译 以下为原文 Hi, 100 ns is just 8 clock cycles when running with 80 MHz system clock: Use the Output Compare peripheral module together with a Timer. 16 bit mode is sufficient, both for the timer and OC module. PIC32MX1xx and 2xx devices also have a Reference Clock, which may be trimmed to provide a wide range of frequencies. Regards, Mysil |
|
|
|
谢谢。将输出模块与一个定时器一起输出,使之成为同步脉冲?换句话说,产生的脉冲不会在特定的时间重复,软件不能控制脉冲的时间吗?或者,你可以用软件来指定脉冲的精确时间吗?问候,莫
以上来自于百度翻译 以下为原文 Thanks. Wouldn't Output Compare peripheral module together with a Timer make it a synchronous pulse? In other words wouldn't the generated pulse be repeating at specific times and the software can't control the timing of the pulse? Or is that the case that you could specify the exact timing of the pulse with software? Regards, Mo |
|
|
|
可以配置输出比较模块以输出单个脉冲。
以上来自于百度翻译 以下为原文 You can configure the output compare module to output a single pulse. |
|
|
|
时间从来都不是精确的。你的脉搏需要什么准确度和准确度?什么是可接受的上升/下降时间?脉搏的持续时间有多精确?
以上来自于百度翻译 以下为原文 Timing is never exact. What precision and accuracy do you need for the timing of your pulse? What are acceptable rise/fall times? How accurate the duration of the pulse must be? |
|
|
|
脉冲宽度~100 ns、上升/下降时间~10-20 nCSCs,您可以通过C代码在特定的时间进行配置吗?
以上来自于百度翻译 以下为原文 The pulse width ~ 100 ns, rise/fall times ~ 10-20 ns Could you configure it to happen at any specific time by the C code? |
|
|
|
你真的需要解释什么是“特定时间”。它是指“下一个星期日”、“今天”、“大约1点30分”或“在指定时间内的10 ns以内”。没有规范的工程就像没有目标的射击,那么什么是“100纳秒”。200纳秒好吗?150?你想要的精度越高,它就越难获得,并且在某个时刻它变得不可实现。你当然可以用C代码产生一些精确的脉冲,但是我们怎么知道解决方案会满足你的要求呢?
以上来自于百度翻译 以下为原文 You really need to explain what is "specific time". Does it mean "next Thrusday", "today", "around 1:30", or "within 10 ns of the specified time". Engineering without specifications is like shooting without target. Then what is "~ 100 ns". Is 200 ns Ok? 150? The more precision you want, the harder it gets, and at some point it becomes unachievable. You certainly can produce some sort of pulse with some accuracy with C code, but how do we know that the solution is going to meet your requirements? |
|
|
|
只有小组成员才能发言,加入小组>>
5178 浏览 9 评论
2003 浏览 8 评论
1931 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3177 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2228 浏览 5 评论
738浏览 1评论
622浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
509浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
636浏览 0评论
533浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-27 02:37 , Processed in 1.185059 second(s), Total 57, Slave 51 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号