Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 4 Forum Discussions

AC
Level 1
Level 1
5 replies posted 5 sign-ins 5 likes given

Hi All,

I am using a PSoC 4 BLE chip (model CY8C4247LQI-BL483 56-QFN), and I have 4 stepper motors (digital output pins) that need to be connected to 4 PWM components. However, I need both a PWM component and a Timer Counter component for each stepper motor, which gives an error because that amounts to 8 TCPWM components while the maximum is 4.

So instead, I am trying to just use 1 digit output pin that would be able to dynamically change its port/pin number in code (main.c). This way, I will only need to use 1 PWM and 1 Timer Counter component. How should I accomplish this?

Thanks,

AC

0 Likes
1 Solution
Len_CONSULTRON
Level 9
Level 9
500 solutions authored 1000 replies posted 750 replies posted

AC,

I've believe I've solved this issue using SW.

Refer to: Example: Multi-Stepper-Motor-Control-using-minimal-resources 

Len
"Engineering is an Art. The Art of Compromise."

View solution in original post

2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You can use two digital de-multiplexors to route the signals to different pins.

 

Happy coding

Bob

0 Likes
Len_CONSULTRON
Level 9
Level 9
500 solutions authored 1000 replies posted 750 replies posted

AC,

I've believe I've solved this issue using SW.

Refer to: Example: Multi-Stepper-Motor-Control-using-minimal-resources 

Len
"Engineering is an Art. The Art of Compromise."