This code is only to turn the module on and off , but everytime i try to build it, it gives me an error, i couldn't figure out what the error is , and froom all the examples that i saw on the net , they seem very simillar to the one i wrote.void main() {
//TURNING ON THE GM-862
PORTB = 0;
TRISB = 0x00;
Delay_ms(2000);
PORTB = 255;
TRISB = 0x00;
Usart_Init(9600);
Delay_ms(15000);
//TURNING OFF THE GM-862 AFTER 15 SECONDS
Usart_Write('A');
Usart_Write('T');
Usart_Write('#');
Usart_Write('S');
Usart_Write('H');
Usart_Write('D');
Usart_Write('N');
Usart_Write('\n');
Usart_Write('\r');
}
please can anyone check what might be the error, thanks
Sevan