TCPWM PIN assignment when using another TCPWM component as timer counter

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

cross mob
Anonymous
Not applicable

Now My project use two TCPWM as pwm and another two TCPWM component as timer, my tcpwm pin is fixed with P1.0 and P1.2 on my hardware, which are TCPWM[0].lineout and TCPWM[1].lineout in cydwr file pin assignment. But now I found my pwm0 is assigned to CYREG_TCPWM_CNT3 and pwm1 is assigned to CYREG_TCPWM_CNT2, two timer counter occupied CYREG_TCPWM_CNT1 and CYREG_TCPWM_CNT0 in code. So the problem seems the pin assignment is conflicted to the code generated by PSOC creator?

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I suppose that this is n ot an error. Make a test: Rename your TCPWMs having meaningful names to easily distinguish their associated pins. Change the API names accordingly. Then check again for errors. If still in doubt post your project. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.

   

 

   

Bob

0 Likes