What does tcpwm.line[4]:0 mean on PSoC4000S?

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

cross mob
YongseokJeon
Level 4
Level 4
Distributor
50 replies posted 50 questions asked 25 replies posted

What does tcpwm.line[4]:0 mean?

I wonder about [4] and :0 .

It seems that [4] means TCPWM block number (0 to 4), but I don't know about :0.

Please let me know about both [4] and :0.

TCPWM.JPG

0 Likes
1 Solution
NoriTan
Employee
Employee
25 sign-ins 5 questions asked 10 sign-ins

You are right. [4] means the TCPWM block number.

The suffix :0 indicates the index of the "line" outputs of the 4th TCPWM block. In this case, only one index :0 is used because the "line" output can be connected to the P2.0 pin.

For example, the "line" output of the 0th TCPWM block can be connected to P2[4] or P3[0]

GS004123.pngGS004122.png

The alternate pin functions table indicates the tcpwm[0].line can be connected to one of these pins using the suffix :0 and :1

GS004121.png

Regards,

Noriaki

View solution in original post

1 Reply
NoriTan
Employee
Employee
25 sign-ins 5 questions asked 10 sign-ins

You are right. [4] means the TCPWM block number.

The suffix :0 indicates the index of the "line" outputs of the 4th TCPWM block. In this case, only one index :0 is used because the "line" output can be connected to the P2.0 pin.

For example, the "line" output of the 0th TCPWM block can be connected to P2[4] or P3[0]

GS004123.pngGS004122.png

The alternate pin functions table indicates the tcpwm[0].line can be connected to one of these pins using the suffix :0 and :1

GS004121.png

Regards,

Noriaki