我试图最大化我可以在SPC560P40L1CEFAR(64引脚)上同时使用的独特16位PWM输出的数量。我从规范中收集了以下信息,其中一些似乎是冲突的。
1个Flex PWM单元
8个互补或独立的渠道
4个PWM子模块
PWMX引脚可以选择从每个子模块输出第三个PWM信号
我计算10个PWM输出通道:
A0,A1 A2,B0,B1,B2,B3,X0,X1,X2;
B2和X2都只能在引脚52上使用
哪些输出通道对应哪些子模块?哪些通道不能产生独特的PWM信号?
我还注意到SPC560P(34L和40L)规格第24页的一个悖论。它在同一页面上说:
不用于PWM生成的通道可用于输入捕获功能。
然后几行说:
不支持PWMA,PWMB和PWMX通道的捕获功能
这是否意味着我需要使用定时器引脚来代替PWM引脚进行输入捕捉?
#pwm #spc56
以上来自于谷歌翻译
以下为原文
I am trying to maximize the number of unique 16-bit PWM outputs that I can use simultaneously on the SPC560P40L1CEFAR (64 pins). I have gathered the following informa
tion from the specification, and some of it appears to be conflicting.
1 Flex PWM unit
8 complementary or independent channels
4 PWM submodules
PWMX pin can optionally output a third PWM signal from each submodule
I count 10 PWM output channels though:
A0, A1 A2, B0, B1, B2, B3, X0, X1, X2;
B2 and X2 are both only available on pin 52
Which output channels correspond to which submodules? And which channels cannot produce unique PWM signals?
I also noticed a paradox on page 24 of the SPC560P (34L and 40L) specification. On the same page it says:
Channels not used for PWM generation can be used for input capture functions.
A few lines down it then says:
Capture capability for PWMA, PWMB, and PWMX channels not supported
Does this mean I need to use timer pins for input capture instead of the PWM pins?
#pwm #spc56