Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22233

MSP430FR6989: I can't output MCLK on pin PJ.1

$
0
0

Part Number:MSP430FR6989

Hello,

I want to output the clock MCLK on pin PJ.1 but it doesn't work. I use IAR with driverlib on MSP-EXP430FR6989.

In my code, I wrote :

// Set PJ.0, PJ.1 and PJ.2 as Primary Module Function Input, SMCLK, MCLK and ACLK.
GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_PJ,GPIO_PIN0 + GPIO_PIN1 + GPIO_PIN2,GPIO_PRIMARY_MODULE_FUNCTION);
GPIO_setAsOutputPin(GPIO_PORT_PJ,GPIO_PIN0);
GPIO_setAsOutputPin(GPIO_PORT_PJ,GPIO_PIN1);
GPIO_setAsOutputPin(GPIO_PORT_PJ,GPIO_PIN2);

The device runs  but I have nothing on these pins. Did I make a mistake ?

Thanks for your reply.


Viewing all articles
Browse latest Browse all 22233

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>