CY8CKIT-044 Blue LED

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

cross mob
Anonymous
Not applicable

I'm trying to spin up on PSoC (have been doing AVR), but I can't assign a  pin to P6[5], which is wired to the blue LED ("P6 cannot be used for routed connections"). Yet the sample project Touch Gestures has a pin attached to P6[5]. I can't see anything different in the configuration of the pin (e.g. Transparent mode). What do I need to do?

0 Likes
7 Replies
Anonymous
Not applicable

Welcome in the forum!

   

Strange behave! Can you post your complete project, 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.



Bob
 

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

 Yes. It's a Cypress-supplied project. The only change I made was to drag one of the LED pins onto the pin that drives the blue LED on the board.

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

Two things come togethere here: The routing capabilities in a PSoC4 are not as universal as in a PSoC5

   

and

   

The fixed-function components use dedicated pins for I/O which in your case do not match with the pins the LEDs are connected to.

   

That is a simple hardware-problem of the board, so if you are really in need, you will have to solve that externally or use a UDB-based PWM which will be routable to (nearly) any pin. Except port 6 which cannot be used for any routed connections.

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Restrictions pn port 4 -

   

 

   

   

 

   

There is no port 6 on a PSOC 4 -

   

 

   

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

 Thanks for the input. I believe the answers by both Bob and Dana point me in the right direction. The -044 Pioneer board has a CY8C4247AZI-M485, which is a 64-pin part that shows ports 0-7. The port 6 pins appear to be the voltage-tolerant pins that don't have the same routing capabilities as pins on other ports. I presume the reason the Cypress sample that drives the blue LED works is because it's being driven by a (UDB-based) PWM, whereas I tried to drive it from a flip-flop and an inverter.

   

I attempted to RT*M, but as a weekend hobbyist it's hard to find the time to plow through hundreds of pages of documentation to figure out this kind of stuff, especially when the board I'm using is new enough that there isn't much community knowledge about it. I'm accustomed to doing web searches for arcane AVR and Arduino info and finding results. Searching for "PSOC 4 port 6"? Not so much. So the advice from you folks in the community is invaluable. Thanks again!

   

It's a bit weird that the Cypress folks would wire the blue LED to a port 6 pin given that isn't generally re-routable. I'm curious why this was done; it might shed additional insight into the internals of the part. Nonetheless, it's a cool kit for people like me who learned digital design years ago (as in 40) but have been ended "on the dark side" doing nothing but software development.

0 Likes
Anonymous
Not applicable

Even, I'm interested in knowing the same. Why has the blue LED been fixed logic wired, while the other two LEDs are re-routable ?

   

Thanks!

0 Likes
Anonymous
Not applicable

You may connect PWM's "line_n" to port6[5] as long as you leave open PWM's "line" or connect it to port6[4]. These pins are dedicated for TCPWM #6.

   

 

   

Bob

0 Likes