lpc832 PWM on multiple pins simultaneously

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

lpc832 PWM on multiple pins simultaneously

跳至解决方案
375 次查看
aaronm
Contributor III

Hi, I'm working with an LPC832 by itself on a custom board - it's not an evaluation kit; SDK version 2.13.0 from 1/18/23 - and I can't get more than one PWM signal to work at a time.  The one pin that does work works fine and as expected, but the two other pins I want to run PWM on don't send a signal: I'm using an oscilloscope to watch for them on the output pins.  All three are configured the same way.

I see in the Pins page, Peripherals panel the following section - see image - and now I'm wondering if only one PWM signal is allowed at a time.  Is that what is meant by "routable to 16 pins, 1 signal" in the attached image?  If not, how do I get more than one PWM signal simultaneously?

Thanks!

标签 (1)
0 项奖励
1 解答
362 次查看
aaronm
Contributor III

Never mind.  I figured it out: I had too many "states" defined - bottom of the SCT peripheral configuration page - and those conditions were never reached.  I removed states "1" and "2" and combined all PWM Signals in state 0.  It now works as expected.  I'll be the first to admit I'm just poking around, here, and don't really know what I'm doing.  But at least it's now working.

Screenshot 2023-03-08 at 1.28.49 AM.png

在原帖中查看解决方案

0 项奖励
1 回复
363 次查看
aaronm
Contributor III

Never mind.  I figured it out: I had too many "states" defined - bottom of the SCT peripheral configuration page - and those conditions were never reached.  I removed states "1" and "2" and combined all PWM Signals in state 0.  It now works as expected.  I'll be the first to admit I'm just poking around, here, and don't really know what I'm doing.  But at least it's now working.

Screenshot 2023-03-08 at 1.28.49 AM.png

0 项奖励