- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
PSoC 4 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AC,
I've believe I've solved this issue using SW.
Refer to: Example: Multi-Stepper-Motor-Control-using-minimal-resources
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use two digital de-multiplexors to route the signals to different pins.
Happy coding
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AC,
I've believe I've solved this issue using SW.
Refer to: Example: Multi-Stepper-Motor-Control-using-minimal-resources
"Engineering is an Art. The Art of Compromise."