This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Internally connecting CC254x pins

Other Parts Discussed in Thread: CC2540

Hi,

I need to internally connect (i.e. through the firmware) pins P0_0 and P0_1 of the CC2540. I'm not sure it's possible though. I couldn't find any tip in the swru191 User's Guide. 

Thank you in advance for any help

Artem 

  • Hey Artem,

    I'm not exactly sure what functionality you want when you saying you want to internally connect the pins.

    This can be done in a sense but you aren't going to be "connecting" them internally but instead you will need to change the code to read or write from the pin that fits the functionality you are wanting. How are you using these pins? ADC inputs, GPIO?

    For instance, if you have them set up as GPIO outputs you would simply write whatever output you want on these pins to the corresponding bits in the P0 register (bits 0 and 1). If they were inputs then you would read from the specific bit you want but there is no way to guarantee you would get the same value from both pins unless they are connected to the same source externally.

    -Matt

  • The pins are right next to each other. You can short them. Why would you ever want to do this though? It sounds like a really bad plan.