完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,我需要一些帮助和想法。现在,我正在使用PIC32mx250f128b来控制8种不同的激光器,我需要在纳米秒和微秒之间的周期性周期。我会有两个信号。例如,第一个信号是10微秒的周期,当这个信号是“1”时,我希望这样,在我想要2,4和6等之后,激光器1,3和5在纳秒的周期中保持“1”。我使用两个定时器来控制每个信号的上下。但是不能正常工作,我有点幼稚编程图片,我真的不知道如何使用中断请一些帮助,我可以在这里张贴我的超级和惊人的程序。
以上来自于百度翻译 以下为原文 Hi everybody I will need some help and ideas. Rigth now i am using a PIC32mx250f128b to control 8 diferent lasers, i need periodical periods between the nanosecs and the microsecs. The main idea is, as you can see in my super image. i will have two signals . The first signal as a period of 10 microseconds for instance, and when this signal is at "1" i want that, the laser 1, 3 and 5 stay at "1" in a period of nano seconds, after i want the 2,4 and 6 and etc.. i am using two timers to control the up and down of each signal. But doesnt work properly, i am a bit noob programming pics, and i really dont know how to use the interrupt Please some help, i can post here my super and amazing program. Attached Image(s) |
|
相关推荐
1个回答
|
|
如果你打算做一些非常复杂的事情,比如你正在描述的项目,你需要在走路之前先学会爬行。正如你所说的,你不熟悉中断,你需要先做这件事。事实上,在这之前,你需要了解什么是轮询操作。只有到那时,你才能理解你将如何完成这些纳秒脉冲时间-其中8个听起来像!另一个重要的项目是你的PIC计时速度有多快?这肯定会影响你如何处理中断和上下文切换来处理纳秒输出线。
以上来自于百度翻译 以下为原文 If you are going to do something very involved such as the project you are describing, you need to first learn to crawl before you walk. As you said you are not familiar with interrupt, you need to do this first. Actually before this, you need to understand what a polling operation is before even going there... Only then will you be able to understand how you will accomplish these nanosecond pulse times - and 8 of them it sounds like! Another important item is how fast are you clocking your PIC? This will definitely affect how you handle interrupts and context switches to address output lines in nanoseconds... |
|
|
|
只有小组成员才能发言,加入小组>>
5212 浏览 9 评论
2019 浏览 8 评论
1944 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3192 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2246 浏览 5 评论
760浏览 1评论
647浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
567浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
659浏览 0评论
557浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-12 05:27 , Processed in 1.079670 second(s), Total 48, Slave 41 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号