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.

MSP430G2553: MSP430G2553 for controlling a FET gate

Part Number: MSP430G2553

Hello

I am using one of the MSP430 pins for controlling a FET. I am using the code below, however it seems that I does not work (I am checking my circuit with ans oscilloscope)

Would please take a look at this piece of code and advice if there is something wrong.

ps: from the FET data sheet, the threshold voltage for the gate is 0.5 - 1 volt

Thank you


void CirciutOn() { // Configure external power supply control pin P1IE &= ~EXTERNAL_POWER_PIN; // Disable interrupt P1REN &= ~EXTERNAL_POWER_PIN; // Disable pullup/pulldown resistor P1SEL &= ~EXTERNAL_POWER_PIN; P1SEL2 &= ~EXTERNAL_POWER_PIN; P1OUT &= ~EXTERNAL_POWER_PIN;//P1.1, output as low, external power supply is enabled P1DIR |= EXTERNAL_POWER_PIN; // P1.1, set the direction as output } void CirciutOff() { P1IE &= ~EXTERNAL_POWER_PIN; // Disable interrupt P1REN &= ~EXTERNAL_POWER_PIN; // Disable resistors, get 3V out P1SEL &= ~EXTERNAL_POWER_PIN; // Normal, output P1SEL2 &= ~EXTERNAL_POWER_PIN; // Normal, output P1OUT |= EXTERNAL_POWER_PIN; // HIGH OUTPUT, turn off Amp P1DIR |= EXTERNAL_POWER_PIN; // P1.1, set the direction as output }

**Attention** This is a public forum