Pic->Bluetooth->Hyperterminal

Status
Not open for further replies.

forever99482

New Member
Hi,

I'm currently using the MCP3551 demo board (PIC18F4550) for my project. I've worked with CCS C compiler in the past before, but now, I have to work to microchip C18 compiler...

I've soldered the bluetooth module to the demo board, and programmed the following few lines to the pic(in the main, got the original file from microchip):

void main(void)
{
InitializeSystem();
OpenUSART (USART_TX_INT_OFF &
USART_RX_INT_OFF &
USART_ASYNCH_MODE &
USART_EIGHT_BIT &
USART_CONT_RX &
USART_BRGH_HIGH,
50);
(48MHz, 57600 baud rate for the bluetooth module)

while(1)
{
putsUSART('u');

}//end while
CloseUSART();
}//end main

I've setup the bluetooth donggle on my laptop, and it paired fine, but when I run hyperterminal, nothing comes out from it. Could it be the spbrg which is wrong?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…