I tried a basic program to change my mode from mode 0 to mode 3and it doesnt work. dont know whats wrong. since i am using pic millenium board and there are ports on it i used port C (PIN_C6) to transmit and PINC_7 to receive. I then tried to search for bluetooth devices using my bluetooth dongle and if the parani had changed its mode to 3 the dongle should have discovered the parani esd200 which obviously it didnt. the code given below doest give me any error and I have programmed it onto my PIC16F877A but it doesnt work
#include <16F877A.H>
#fuses XT,NOWDT,NOPROTECT,BROWNOUT,PUT,NOLVP
#use delay (clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, parity=N,bits=8)
#include<stdio.h>
#include <lcd.c>
void main()
{
printf("AT+BTMODE,3 /n");
while(10
}