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

PSoC™ 4 Forum Discussions

YSJE_3566666
Level 4
Level 4
50 questions asked 25 replies posted 100 sign-ins

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
NoriakiT_91
Employee
Employee
100 likes received 50 likes received 25 likes received

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
NoriakiT_91
Employee
Employee
100 likes received 50 likes received 25 likes received

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