完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
复习PIC18F45 K50的数据表。这可以有多达4个PWM输出,然而,数据表更倾向于“转向”,只使用一个CCPRXL寄存器用于一个PWM。有没有一种方法,使用汇编字指令,在RB7、RB6和RB5上输出3种不同的PWM信号?或者,这是否需要使用多个定时器以及多个CCPRXL寄存器?
以上来自于百度翻译 以下为原文 Reviewing the data sheet for the PIC18F45K50. This can have up to 4 PWM outputs, however, the datasheet is more geared towards "Steering" utilizing only one CCPRxL register for a single PWM. Is there a way, using assembly word instructions, to output 3 different PWM signals on RB7, RB6, and RB5 ? or does this require the use of multiple timers as well as multiple CCPRxL registers? |
|
相关推荐
6个回答
|
|
嗨,PIC18F45 K50主要是USB设备。无论你使用C还是ASM都不会改变PWM……有可能做SWW PWM是你需要的频率很低。否则,选择一个更为新近的PIC18会更容易。他们有更多的定时器,可编程引脚(PPS)…PIC18F45 K40是一个很好的候选人…假设你不需要USB…问候
以上来自于百度翻译 以下为原文 Hi, PIC18F45K50 is mostly a USB device. whether you use C or ASM will not change PWM... It is possible to do SW PWM is the frequency you need is low. Otherwise, it would be easier to select a more recent PIC18. they have much more timers, programmable pins (PPS)... PIC18F45K40 is a good candidate...assuming you don't need USB... Regards |
|
|
|
这个PIC有两个PWM模块,所以你可以产生两个不同的PWM信号(忽略转向的东西)。由于只有一个偶数定时器,两个PWMs将是相同的频率,但可以是不同的占空比。也可以使用输出比较功能与定时器1和3来产生PWM信号,但它们将是固定的50%占空比。大量的PWM材料。
以上来自于百度翻译 以下为原文 This PIC has two PWM modules, so you can generate two different PWM signals (ignoring the steering stuff). Since there's only one even-numbered timer, both PWMs will be the same frequency, but can be different duty cycles. You can also use the output compare function with timers 1 and 3 to generate PWM signals, but they will be a fixed 50 % duty cycle. As RISC said, this PIC is a poor candidate for doing a lot of PWM stuff. |
|
|
|
OP不提供太多的上下***,但是PIC16(L)F18855具有七个PWM,并且可以合成一个具有1476(***)的第八。我确信,对于大多数应用来说,还有足够多的PWM的选择。有很多选择有四个PWM。使用零件搜索。这是你的朋友
以上来自于百度翻译 以下为原*** OP doesn't give much context, but the PIC16(L)F18855 has seven PWMs and you can synthesize an 8th with AN 1476 (NCO + CLC). I'm sure there are other choices with enough PWMs for most applications. There are lots of choices with four PWM. Use the parts search. It's your friend. GP |
|
|
|
PIC16F1777具有12个PWM(这有点恼人地出现在三个不同的变体中)有四个时间源。
以上来自于百度翻译 以下为原文 The PIC16F1777 has 12 PWMs (which somewhat annoyingly come in three different variants) with four time sources. |
|
|
|
谢谢。没有注意到那一个。“18855”有三个PWMs变体,如果你考虑合成(AN1476)一个变体。CCPX和PWMy是两个原生变体。我喜欢很多时间源的想法,所以你可以做一些组合:(减少最大电流/增加电流变化频率)。因为‘18855’有三个偶数定时器(2,4,6 - 0不计数),而且我需要其中的一个来做别的事情,所以我用两个阶段。做了一个可测量的差异在涟漪。
以上来自于百度翻译 以下为原文 Thanks. Had not noticed that one. The '18855 has three variants of PWMs if you consider the synthetic (AN1476) one a variant. The CCPx and PWMy are the two native variants. I like the idea of lots of time sources so you can do some combination of: (reduce the maximum current / increase the current change frequency). Since the '18855 has three even Timers (2,4,6 - 0 doesn't count) and I need one of them for something else, I use two phases. Made a measurable difference in the ripple. GP. |
|
|
|
订购了16F1777和16F1779。这两个都有一个内部的DAC,也是我需要的一部分。不幸的是,我有一些18F45 K50的,我需要找到一个替代用途。我有2个不同的PWM模块工作,只是让第三工作是一个痛苦。我想我可能忽略了什么。谢谢你的输入。
以上来自于百度翻译 以下为原文 Placed an order for the 16F1777 and 16F1779. Both of these have an internal DAC also, part of which I require. Unfortunately I have a few 18F45K50's that i will need to find an alternative use for. I have the 2 different PWM modules working, just getting the 3rd to work was is being a pain. Thought I may have overlooked something. Thanks for the input. |
|
|
|
只有小组成员才能发言,加入小组>>
5003 浏览 9 评论
1921 浏览 8 评论
1850 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3066 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2143 浏览 5 评论
571浏览 1评论
427浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
473浏览 0评论
366浏览 0评论
IPECMD命令烧录AVR128DA48芯片,报找不到芯片错误
851浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-15 09:30 , Processed in 1.410630 second(s), Total 89, Slave 72 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191