Hi guys, I am making progress on my little project, as I got my LED blinking with help from here, and then got my LCD and temp sensor working. But I have gotten myself stuck again, and hopefully someone can point out my error. I have a PIC16F628A driving a Bluetooth breakout board and am trying to get it to transmit to my laptop and view it via RealTerm. Everything looks ok to me, but RealTerm shows nothing. Not sure why. The device is linked, but not connected (ie in Windows I can see the bluetooth transmitter and pair it).

My code is
Code:
'****************************************************************
 @ __config _INTRC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_OFF & _LVP_OFF & _CP_OFF
 DEFINE OSC 4
 DEFINE LOADER_USED 1
DEFINE HSER_RCSTA 90h
DEFINE HSER_TXSTA 20h
DEFINE HSER_SPBRG 25 ' 2400 Bauds
DEFINE HSER_CLOERR 1

TRISB.2 = 0             ' Set RB2 to output
'RCSTA = 010000       ' Enable serial port and continuous receive
'TXSTA = 100000       ' Enable transmit and asynchronous mode 

char Var byte  ' Storage for serial character
     
    start:
       Hserout ["Hello World", 13, 10] ' Send text followed by carriage return and linefeed
     
    mainloop:
       Hserin 10000, start, [char]  ' Get a char from serial port
       Hserout [char]       ' Send char out serial port
       Goto mainloop        ' Do it all over again
        
       End
and on the RealTerm I get CTS and DSR as green lights (both show the status of the main port), I set the baud rate to 2400 and nothing displays. Also tried 9600. I have tried lots of settings on RealTerm convinced that is the issue, but now am second guessing myself. Circuit itself is pretty simple, I am hooked up to RB1&2 for TX and RX, and the breakout board with the bluetooth has those nicely labeled. I should mention, that when via RealTerm I transmit, the blue light on the breakout board dims for 3-4s, telling me it is doing something. Just not sure what. And for completeness, the blue light blinks initially until I launch RealTerm and then is just constantly on, so I have a connection.

Any suggestions on how I can debug further?


UPDATE: I was checking out the breakout board with the bluetooth, and now suspect that.
http://www.mdfly.com/index.php?main_...roducts_id=769
I cannot get it to return an AT command via their own terminal program, so I think I found my culprit. I will still post this in case someone has some advice, or maybe this will help others.

Thanks!
Patrick