I am trying to change the value of the TX_REF pin to output 1V as is suggested by the manual. I am writing to the CONTROL 2 register and placing a 10 in bits 18 and 17 however my output voltage on TX REF is still 5V, not 1V.
I am not sure what I am doing wrong.
Code is below:
GPIO_setOutputHighOnPin(GPIO_PORT_P6, GPIO_PIN0);
uint8_t i;
uint8_t wreg2[4]={0x23,0x04,0x00,0x00};
GPIO_setOutputLowOnPin(GPIO_PORT_P1, GPIO_PIN4);
for (i=0; i<4; i++)
{
while(!USCI_A_SPI_getInterruptStatus(USCI_A1_BASE,USCI_A_SPI_TRANSMIT_INTERRUPT));
USCI_A_SPI_transmitData(USCI_A1_BASE, wreg2[i]);
}
GPIO_setOutputHighOnPin(GPIO_PORT_P1, GPIO_PIN4);
}