CY8CKIT-049-42xx different output pin behaviour

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

cross mob
GuNo_288966
Level 4
Level 4
25 replies posted 10 replies posted 10 questions asked

Hi,

   

I am using the prototyping kit do control two stepper motors.

   

The motor drivers need a short pulse of a few microseconds to make a step. In my project there are 2 digital output pins, both set to "strong drive", connected to the same control register. One is routed to P0.1, the other is routed to P1.7. Both are wired to the "step" input of two identical motor drivers.

   

When I make a short pulse by writing to the control register, P0.1 rises immediately and drops immediately, creating a nice rectangular pulse. P1.7 stays at 0V.

   

Then I introduced a delay of 100us between the rise and fall commands. P0.1 still shows a nice rectangular pulse, but P1.7 needs about 50us to rise to 5V, then stays at 5V, after 100us it falls to 0V immediately.

   

I swapped the motor controllers, still the same behaviour.

   

Then I changed the pin mapping from  P1.7 to P0.2, rewired my board. Now both pins show the same nice rectangular signals.

   

What is the difference between P0.1 and P1.7? Is P1 "weaker" than P0? I can not find anything in the data sheets.

   

Best regards,

   

Turtle

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Under ...\Program Files (x86)\Cypress\ you will find the complete documentation for all your installed Cypress Kits including the schematics. This shows that P1_7 is used with a capacitor as bypass for SAR reference. Remove the cap or use another pin.

   

 

   

Bob

0 Likes

Thanks, Bob, I had only looked at the tables 4.1 and 4.2 and have overlooked the schematics with the capacitors.

0 Likes