Author: LinglingG_46 Version: **
Translation - Japanese: PSoC 4 PWM 出力を異なる複数のピンへ出力する - KBA226885 - Community Translated (JA)
How can the output of PWM be routed to different pins in PSoC 4 devices?
There are two ways to change the output of PWM to non-dedicated pins. These methods apply only to those devices that have resources universal digital blocks (UDB) or Smart I/O.
Method 1: Connect the mux select signals to a control register using a bus. The control register is then used to select the input for the demultiplexer.
Method 2: Use the Smart I/O Component to route the fixed-function peripherals to non-dedicated pins on the same port. The output can be routed by passing through one of the LUTs in the Smart I/O Component.
Project hardware connection schematic for control method 1:
For example, using control register to route the PWM output to four pins: P0.2, P0.4, P0.6, and P0.7.
Project hardware connection schematic for control method 2:
For example, using Smart I/O to route the PWM output to Port 3.
The test project for these two methods are available with this knowledge base article