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.

How to read programmatically TEST/SBWTCK pin state?

Other Parts Discussed in Thread: MSP430AFE251

Hello, everyone!

Is it possible to read programmatically TEST/SBWTCK pin state in MSP430AFE251?

I mean program inside mcu flash ...

  • No.

    teh TEST pin is a direct hardware switch that affects the digital port logic and cannot be read from the MSP. However, you may indirectly check it: turn one of the 4-wire GPIO pins into output and output 0, then read the input register whether it is 0. Then turn it into output high and read again. If output and input don't match in both occasions, then JTAG is active and the digital I/O won't reach the pin.
    However, I'm not sure what happens when SBW is active and the TEST pin is used for SBWTCK rather than TEST functionality.

**Attention** This is a public forum