Microchip
直播中

陈芮雪

8年用户 227经验值
私信 关注
[问答]

想要在PIC32MX550F256L中产生超过2个PWM频率

您好,感谢您阅读我的帖子。我需要在PIC32 MX550F256L中生成5个不同频率的PWM信号,在和谐V1.08中,同时配置OC只允许两个定时器用作“OC时基定时器”,除了和声之外,还有其他方式使用其他定时器作为“OC时基定时器”,或任何其他方式产生PWM信号的5个不同的频率。最好的问候,Sunil Kumar

以上来自于百度翻译


      以下为原文

    Hello,
Thank You for reading my post.
I need to generate PWM signals of 5 different frequencies in PIC32MX550F256L, in hARMony v1.08 while configuring OC only two timer are allowed to use as 'OC timebase timer', apart from harmony is there any other way to use other timers as 'OC timebase timers', or any other way to generate PWM signals of 5 different frequencies.

Best Regards,
Sunil Kumar

回帖(4)

王雪

2018-12-20 16:32:48
你可以根据有多少个OC模块生成多个PWM信号,但是你是正确的,只有2个定时器源(Time2和Time3)可以用于任何给定的OC模块。它与和谐无关,OpxCon注册为PIC32 MX5XX/6XX/7XX设备只有这两个选项,所以你只在所有OC输出中只存在2个独特的频率。

以上来自于百度翻译


      以下为原文

    You can generate multiple PWM signals depending on how many OC modules are available, but you are correct, there are only 2 timer sources (Timer2 and Timer3) that can be used for any given OC module.  It's got nothing to do with harmony, the OCxCON register for PIC32MX5xx/6XX/7XX devices only have those two options, so you're stuck with only 2 unique frequencies across all OC outputs.
举报

张娜

2018-12-20 16:47:49
好奇的是,PIC24有更广泛的选择。

以上来自于百度翻译


      以下为原文

    Curious, PIC24 had a much wider choice.
举报

王雪

2018-12-20 16:53:33
同意,肯定有点奇怪。PIC32的外围设备不是基于PIC24的吗?

以上来自于百度翻译


      以下为原文

   


Agreed, it's definitely a little odd.  Weren't the peripherals of the PIC32s based off the PIC24?
举报

张娜

2018-12-20 17:07:48
我希望如此,但是…看起来他们只借用了16位定时器——在32位架构上

以上来自于百度翻译


      以下为原文

    I hoped so but... looks like they only borrowed the 16bit timers - on a 32bit architecture
举报

更多回帖

发帖
×
20
完善资料,
赚取积分