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.

Use debug reserved pins in msp430L092

Other Parts Discussed in Thread: MSP430L092

Hi,

I am using a MSP430L092 with MSP-TS430L092 development board.

I'm doing a program that reads an analog input and display the value in 6 bits in parallel with 6 digitals outputs. 

In this board are some pins(P2.0,2.1,2.2 and 2.3) that are defined by default as alternative function. I need to use this pins as digital outputs. When trying to change the functionality of this pins attacking the registers P2SELX and try to debugging, the program break

Are any way to use this pins as digial output? Or are them reserved ?

Thanks and Regards

Sorry for my bad English

void main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer

init_clk(); //Define the clock of the system


P1DIR |= BIT4 + BIT5 + BIT6; //6 outputs: 1.4,1.5,1.6,2.0,2.1,2.2
P2DIR |= BIT0 + BIT1 + BIT2;


P1SEL0 = 0x00;
P1SEL1 = 0x00;
P1OUT = 0x00;
P2SEL0 = 0x00; // in this point the program break
P2SEL1 = 0x00;
P2OUT = 0x00;
P2REN=0x00;

...

  • >When trying to change the functionality of this pins attacking the registers P2SELX and try to debugging, the program break
    - If you change function of debug pins, obviously debug does not work anymore. You can't have both I/O and debug function on those pins.
  • Yes obvios, but my question is: I can use this pins as digital output using the debugger in Code composer? Or if I using the development board this pins are necesary for the debug and not are available to use in my program.
    In the datasheet they appear as JTAG test pins. I want to use this pins as digitals outputs, no as JTAG test.

**Attention** This is a public forum