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.

MSP430F6638: Clock setting and working of GPIO_setAsPeripheralModuleFunctionInputPin

Part Number: MSP430F6638
Other Parts Discussed in Thread: MSP430F5438A, MSP430F5438

1) Please Guide me how can i set clock by using driverlib.

2) I have study the example code but i didn't understand the meaning of GPIO_setAsPeripheralModuleFunctionInputPin. so..

    what is the working of GPIO_setAsPeripheralModuleFunctionInputPin function?

thanks

  • Hi

    1. Due to the MSP430F5438A and MSP430F6638 are same family so you can refer to the code example for MSP430F5438 dev.ti.com/.../node
    2. This function is used for configure the GPIO to the input second function of the GPIO. For example GPIO_setAsPeripheralModuleFunctionInputPin(
    GPIO_PORT_P6,
    GPIO_PIN0
    );
    is to set P6.0 to ADC input channel.
  • Hi Gary

    Thank you for your reply.

    but In My controller(MSP430F6638) there are multiple outputs at the same pin... what to do?  

    Can we use "GPIO_setAsPeripheralModuleFunctionInputPin" function with MSP430F6638 controller. because as i read the document of driver library it says "Note that MSP430F5xx/6xx family doesn't support these function modes."

  • Hi Mohit

    The "Note that MSP430F5xx/6xx family doesn't support these function modes." means MSP430F5xx/6xx family don't support the third parameter of this function. We can just use the function like this and don't need add the third parameter:
    GPIO_setAsPeripheralModuleFunctionInputPin(
    GPIO_PORT_P6,
    GPIO_PIN0
    );

**Attention** This is a public forum