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.
Hi Experts,
Our customer is working on MSP430FR2533 and using CCS as IDE. He is using driver lib APIs for his firmware. He is confused how to select GPIO MODULE FUNCTION in the API
GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_P1, GPIO_PIN5, GPIO_SECONDARY_MODULE_FUNCTION );
Kindly give us guidance how to decide function priority either it is PRIMARY, SECONDORY or TERNERY.
Thank you so much in advance.
Kind regards,
Gerald
Refer to data sheet (SLAS942E) Table 6-17. The P1SEL.x column shows a 2-bit number denoting the function setting. These bits refer to P1SEL1.x and P1SEL0.x respectively.
E.g. P1.5 function TA1.1 requires setting "10" = 2, so this is the SECONDARY function. This entry also says you should set P1DIR.5=1, so the pin should be set as Output.
Agree with Bruce that we need to use PxSEL and PxDIR to configure the GPIO function as below
For the third parameter of function GPIO_setAsPeripheralModuleFunctionOutputPin is used to configure the PxSEL that you can see it just have three values as below
That means three different value of PxSEL.
**Attention** This is a public forum