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

cross mob

Routing Output of PWM to Different Pins in PSoC 4 Devices - KBA226885

lock attach
Attachments are accessible only for community members.

Routing Output of PWM to Different Pins in PSoC 4 Devices - KBA226885

Community-Team
Employee
Employee
50 questions asked 10 questions asked 5 questions asked

Author: LinglingG_46         Version: **

Translation - Japanese: PSoC 4 PWM 出力を異なる複数のピンへ出力する - KBA226885 - Community Translated (JA)

Question:

How can the output of PWM be routed to different pins in PSoC 4 devices?

Answer:

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.

pastedImage_0.png

Project hardware connection schematic for control method 2:

For example, using Smart I/O to route the PWM output to Port 3.

pastedImage_5.png

The test project for these two methods are available with this knowledge base article

Attachments
0 Likes
610 Views
Contributors