we have been able to display character values on the hyper terminal using UART-USB communication.
we are using msp430f5438a controller and MSP-EXP430F5438 experimenter board.
we are not able to display integer and floating point values.
the code is as shown below.
#include "msp430f5438A.h"
int main(void)
{
unsigned int count;
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
// initialize Timer_A module
TA1CCTL0 = CCIE; // CCR0 interrupt enabled
TA1CCR0 = 32768;
TA1CTL = TASSEL__ACLK + MC__UP + TACLR; // ACLK, up mode, clear TAR
// initialize USCI module
P5SEL |= BIT6 + BIT7; // P5.6,7 = USCI_A1 TXD/RXD
UCA1CTL1 |= UCSWRST; // **Put state machine in reset**
UCA1CTL1 |= UCSSEL__ACLK; // AMCLK 32,768kHz / 1200= 27.3
UCA1BR0 = 27; // 32,768kHz/1200=27
UCA1BR1 = 0; // 32,768kHz%1200=0.3
UCA1MCTL = UCBRS_2; // 32,768kHz 1200 Modulation
UCA1CTL1 &= ~UCSWRST; // **Initialize USCI state machine**
for(count='A' ; count<='Z' ;count++)
{
while(!(UCA1IFG&UCTXIFG));
UCA1TXBUF = count;
}
__bis_SR_register(LPM3_bits+GIE); // Enter LPM3, enable interrupts
}
we have tried for integer and float value display but are not successful
thank you