dsPIC30f + Bluetooth module connection with PC bluetooth

Hi people,

I’m trying to connect a dspic30f microcontroller with a bluetooth module to pc bluetooth. I have the pic and laptop connected. I’m now able to receive character sent from the bluetooth module in microcontroller somehow i send one character, eg. let’s say Q. but i receive continuous Q characters in hyperterminal. The baudrate set in the pc bluetooth is 9600.

Here’s my code to configure UART. But i think it must be the hyperterminal configuration setting issue. Could someone please point me to the right direction?

void UART_receive(void)

{

//U1BRG = 191;

U1MODEbits.UARTEN = 1; //UART is enabled. UART pins are controlled by UART as defined by UEN<1:0> and UTXEN control bits.

U1MODEbits.ALTIO =0; //UART communicates using UxTX and UxRX I/O pins

U1MODEbits.ABAUD = 1; //input to capture module from UxRX pin

U1MODEbits.PDSEL = 0; //8 bit data, no parity

U1MODEbits.LPBACK = 1; //enable loopback mode

U1STAbits.UTXBRK = 0;

U1STAbits.UTXEN = 1;

U1STAbits.URXISEL = 0;

}

PS: i’m using LM400 Bluetooth module and the pinout diagram is available in this link

http://www.alphamicro.net/resources/LM% … 0Sheet.pdf

I’m using dspic30f3014.

Is it okay if i ignore the RTS and CTS pins? because i have no idea what i should do to these two pins.

Any comments offer will be much appreciated. Thanks a lot. Please help.

Here’s the code