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;
...