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.
Hello,
how can I set up pin 4.0 to work as an output for the MCLK?
Regards
Tobi
Hello Tobi,
there are two options in this case. Usually for such basic things we have dedicated code examples e.g. in our Code Composer Studio, in this case within the clock system related code examples (MCLK output, SMCLK and ACLK output).
The generic source of such information is the datasheet. It is within the device Input/Output Diagrams section, in case of the MSP430FR6989 it's chapter 6.11.24.
Please see here also the table for P4.0
As you can see here, to select MCLK for P4.0, you need to set the P4.0 to output by P4DIR.0 setting to 1, set both P4SEL registers for P4.0 also to 1, and the LCD function needs to be disabled.
The sme way you can find out the required settings for any pin functionality for each and every pin of the device.
Best regards
Peter
Hi Tobi,
under the assumption your question has been answered sufficiently I am closing the thread.
Best regards
Peter
**Attention** This is a public forum