Other Parts Discussed in Thread: MSP-FET
Dear Embedded Community,
My application requires sending data on P3.2. This should appear on pin 69 of the CPU.
It does but this is also pulled high or low from time to time. I've seen it with a scope.
My code goes something like this:
// Stop watchdog timer
WDTCTL = WDTPW + WDTHOLD;
// Light up CPU pin 69
P3SEL = 0x00;
P3DIR = 0x0f;
P3OUT = 0x04;
// Stop
for (;;);
And the scope shows this:
These pulled-low events are on-going even after the CPU has hit the endless loop.
Pin 69 is described on the datasheet as "General-purpose digital I/O / slave out/master in of USCI_B0/SPI mode /I2C clock—USCI_B0/I2C mode".
I only want it for "General-purpose digital I/O". Am I getting "I2C clock" too? If so, how can I turn this off?
I'm going a bit mad so any insight would be very welcome!
All the best,
David