Configuration between SKKCA-21 & PIC 16F877A

Posted:
Fri Apr 06, 2012 2:47 pm
by cheekangteh
hi,
i get the sample coding from project PR6-A
http://www.cytron.com.my/viewProduct.php?pcode=PR6-A&name=Bluetooth%20(SKKCA-21)%20Remote%20ControlMay i know what is the meaning of each code bellow?
- CODE: SELECT_ALL_CODE
void init(void) // subroutine to initialize
{
SPBRG=0x0A; // set baud rate as 115200 baud
BRGH=1;
TXEN=1;
CREN=1;
SPEN=1;
TRISD = 0b00000000;
seg = 0b00000000;
}
SPBRG is set for baud rate, and what function for BRGH? TXEN? CREN? SPEN?
kindly advice. thanks
Re: Configuration between SKKCA-21 & PIC 16F877A

Posted:
Fri Apr 06, 2012 2:53 pm
by cheekangteh
and how can we determine the configuration between SKKCA-21 and PIC 16F877A is already establish ?
Both of receive and transmit LED light up (in very small light), once the power on. (this case occur when pic control the skkca-21)
For what i know is, normally the receive and transmit LED only light on when it get the signal and sending signal. (this case occur when the skkca-21 is control by computer)
Re: Configuration between SKKCA-21 & PIC 16F877A

Posted:
Mon Apr 09, 2012 9:00 am
by cheekangteh
hi,
may i get the link for this configuration tutorial? i have no idea how to configure SKKCA-21 & PIC 16F877A. on internet it is lack of this source code.
or may i get the code in ccs c programming?
may i know what these coding mean?
BRGH=1;
TXEN=1;
CREN=1;
SPEN=1;
your kindness will be very appreciated. thanks a lot
Re: Configuration between SKKCA-21 & PIC 16F877A

Posted:
Mon Apr 09, 2012 9:36 am
by cheekangteh
sorry, and how can i set for those configuration in c code ? (in hi-tech c compiler)
Baud Rate = 115200 bps
Data bits = 8
Parity = none
Stop Bit = 1
for what i know, i only know set the baud rate to 115200 bps that is "SPBRG=0x0A". other than this i have no idea. kindly advice. and very sorry that take yours time. sorry
Re: Configuration between SKKCA-21 & PIC 16F877A

Posted:
Mon Apr 09, 2012 12:08 pm
by cheekangteh
hi, sorry... if found the explanation the code.
http://www.microautomate.com/PIC/pic-se ... cation.phpthanks.