Hello.
I’m using LaunchPad MSP-EXP430FR2355 and I have a problem. When setting all pins of port 3 to output and in HIGH position (register P3OUT = 0XFF), then I see 3.3V on all pins of port 3, except for pin P3.3. Below is the code, tried 2 options using "driverlib.h" and without this library. In both cases, all pins on port 3 work, except for P3.3. Replace developed kit did not bring results.
My two code example (all don’t works)
Example 1 --------------------------------------------------------------- #include <msp430.h> #include "driverlib.h" int main(void) { WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer //PA.x output GPIO_setAsOutputPin(GPIO_PORT_P3, GPIO_PIN0 + GPIO_PIN1 + GPIO_PIN2 + GPIO_PIN3 + GPIO_PIN4 + GPIO_PIN5 + GPIO_PIN6 + GPIO_PIN7 ); //Set all PA pins HI GPIO_setOutputHighOnPin(GPIO_PORT_P3, GPIO_PIN0 + GPIO_PIN1 + GPIO_PIN2 + GPIO_PIN3 + GPIO_PIN4 + GPIO_PIN5 + GPIO_PIN6 + GPIO_PIN7 ); PMM_unlockLPM5(); while(1); } --------------------------------------------------------------- Example 2 --------------------------------------------------------------- #include <msp430.h> int main(void) { WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer PM5CTL0 &= ~LOCKLPM5; //Disable the GPIO power-on //default high-impedance mode //to activate previously //configured port settings //All port 3 must work in GPIO mode P3SEL0 = 0x00; P3SEL1 = 0x00; P3DIR = 0xFF; //setting all pins of port 3 to output P3OUT=0xFF; //On all pins of port 3 = Output is HIGH while(1); } ---------------------------------------------------------------
I cannot understand why there is no 3.3V on the P3.3 pin.
Thanks!