Hi,
i am fairly new to MSP430 programing. i am trying to use 2 peripherals (1 GPS, 1 BT) which both use a standard serial port interface on a CC430. i have the following code working and talking to one of the devices just fine:
PMAPPWD = 0x02D52;
P1MAP5 = PM_UCA0RXD;
P1MAP6 = PM_UCA0TXD;
PMAPPWD = 0;
P1DIR |= BIT6;
P1SEL |= BIT5 + BIT6;
UCA0CTL1 |= UCSWRST;
UCA0CTL1 |= UCSSEL_2;
UartBaudSettings();
UCA0CTL1 &= ~UCSWRST;
if i now wanted to use another device, lets say on pins P1.3 and P1.4, can i just remap the UART port pins on the fly? i.e. just issue:
PMAPPWD = 0x02D52;
P1MAP3 = PM_UCA0RXD;
P1MAP4 = PM_UCA0TXD;
PMAPPWD = 0;
or do i have to reset anything?
even if this would work, this still wouldn't give me the ability to talk to both devices at the same time. is there a way to have 2 simultaneous USART's on a CC430?
thanks in advance,
-r