Can you please post your complete project or a shortened version that shows the error so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Attached is the project. When you run it you will see that all of TCPWM goes on and off in certain time interval, just P1.4 does not.
Did you check that on your board nothing else is connected to that pin?
It is not a connection issue. It is connected motor driver IC, but I have 2 boards and the both of them behaves in the same way.
If I just run the PWMs without cycle stop and start, then I have the proper signal on pin 1.4.
I think that there is something wrong with the library/drivers provided by Cypress, but I could not trace where exactly the problem is. It looks like there is any collision after I invoke xxxStop() and after that xxxStart() .
To be 100% correct, it is not only TCPWM Start/Stop cycling.
The issue happens when I call void Motor1ABInit() function, where I set manually pin1.4 (AEN_1) low.
I do with all the other PWM outputs the same, but they are ok with this. Only pin1.4 locks in '0'.
If I make this (comment the line):
// AEN_1_Write(LOW); // disable driver
APHASE_1_Write(LOW); // set direction to LOW
BEN_1_Write(LOW); // disable driver
BPHASE_1_Write(LOW); // set direction to LOW
Sleep_1_Write(LOW); // disable driver
then it is working as expected. But as you see I do not comment BEN_1_Write and it is working ok.