Other Parts Discussed in Thread: UNIFLASH
Hi All,
I've been using a MSP-EXP430FR5739 board to develop some code to read a potentiometer input and send it to UART.
A significant issue is that when the ADC has been set up and is functional, I can no longer access the board through Uniflash or CCS.This occured with multiple boards.
This leaves me unable to re-flash the board or sometimes not even access it through putty.
I have tried the reset button during connection attempts but I am no sure if this helps.
Did I implement the ADC peripheral incorrectly such that the board is inoperable? This code has other aspects to it such as PWM via timers.
ADC code below:
//--------ADC for Pot Control-------
// P3.0 set for analog input P3.0 -> A12
P3SEL0 |= BIT0;
ADC10CTL0 &= ~ADC10SHT0_H; // Clear ADCSHT
ADC10CTL0 |= ADC10SHT_2; // Change to 16 cycles
ADC10CTL0 |= ADC10ON; // Turn on ADC
ADC10CTL1 |= ADC10SSEL_2; // ADC clock source
ADC10CTL1 |= ADC10SHP; // Sampling timer
ADC10CTL2 &= ~ADC10RES; // Clear resolution
ADC10CTL2 |= ADC10RES; // 10-bit resolution
ADC10MCTL0 |= ADC10INCH_12; // Send A6 to ADC memory
Thanks