Part Number: MSP430FR2633
Hello,
In section 7.1.2 (external oscillator), page 75 of the MSP430FR2633 manual, it states it is possible to use XIN and XOUT as general purpose I/O. It says it is possible if the appropriate XT1BYPASS mode is selected. I am trying to simply to set the pins (2.0 and 2.1, XOUT and XIN respectively) as input/output pins with no luck. www.ti.com/.../msp430fr2633.pdf
Using the MSP430 driver lirbary, I called CS_bypassXT1(), but I am not sure if this is sufficient..
Code below:
#include "driverlib.h"
int main(void) {
WDT_A_hold(WDT_A_BASE);
CS_bypassXT1();
GPIO_setAsOutputPin(GPIO_PORT_P2,GPIO_PIN0); //brown p2.2
GPIO_setOutputHighOnPin(GPIO_PORT_P2,GPIO_PIN0); //brown p2.2
int i;
while(1){
GPIO_toggleOutputOnPin(GPIO_PORT_P2,GPIO_PIN0);
for( i = 0; i < 20000; i++ );
}
}
Any help is much appreciated.
Best,
Robert