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.

Can Debug Data (DD) and Debug Clock (DC) be used as regular GPIOs?

Other Parts Discussed in Thread: CC2430

Hey.

I own a CC2430 microcontroller, and have 2 questions please:

1. Is it possible to configure in the code the DD and DC pins (P2_1 & P2_2) as output/input pins, and have them still function as DD and DC when I want to debug the board?

2. Is it possible to connect P2_1 & P2_2 to external devices (for example, to configure one of them as an output pin and to connect it to a BJT base, and/or to configure one of them as input and connect it to an IC), and also to connect them to a connector so I will still be able to connect the DD and DC lines from the SMARTRF to that connector and debug the board?
Or it isnt possible?

3. If the answer to '2' is "its possible", then when I debug the board, then these external devices that are connected to the DD and DC pins, will receive "random" sequences of High and Low?

Thank you very much.

 

  • The debug interface uses the I/O pins P2_1 as
    Debug Data and P2_2 as Debug Clock during
    Debug mode. These I/O pins can be used as
    general purpose I/O only while the device is
    not in Debug mode. Thus the debug interface
    does not interfere with any peripheral I/O pins.

     

    This from datasheet to CC111x. I think, it's same for your controller too

  • Hey, Thank you very much.

    I read it also in the CC2430 datasheet so it indeed answers my #1 question.

    Do you know about Questions #2 and #3?

    Regarding connecting P2_1 & P2_2 to both DC and DD of SMARTRF and to external devices (BJT base / ICs)?

    Thanks.

  • 2 - yes it's possible. you can connect anything to anything. just make sure that it would work.

    3 - of course, they will and not only them: CC Debugger and Debug interface of controller will also receive signals from external peripheals ,connected to debug interface

  • Just make sure your BJT and other IC can handle the random toggling from DD/DC while using the pins for debugging. Also note that when using the pins for GPIO, if you e.g. use one of them as input pin, and you try to debug your code, you will not be able to sense the pin levels correctly as the pin is used for debug interface. So this may complicate your debugging somewhat. However, as long as you're keeping the software easy and not doing very advanced things with the I/O you should manage with the reduced debugging capabilities for these two pins.
  • Thank you all guys!

    you helped me out alot.