Configuration between SKKCA-21 & PIC 16F877A

Bluetooth, XBee, RF......

Configuration between SKKCA-21 & PIC 16F877A

Postby cheekangteh » Fri Apr 06, 2012 2:47 pm

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%20Control

May 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
cheekangteh
Apprentice
 
Posts: 36
Joined: Mon Dec 26, 2011 5:20 pm

Re: Configuration between SKKCA-21 & PIC 16F877A

Postby cheekangteh » Fri Apr 06, 2012 2:53 pm

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)
cheekangteh
Apprentice
 
Posts: 36
Joined: Mon Dec 26, 2011 5:20 pm

Re: Configuration between SKKCA-21 & PIC 16F877A

Postby cheekangteh » Mon Apr 09, 2012 9:00 am

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
cheekangteh
Apprentice
 
Posts: 36
Joined: Mon Dec 26, 2011 5:20 pm

Re: Configuration between SKKCA-21 & PIC 16F877A

Postby cheekangteh » Mon Apr 09, 2012 9:36 am

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
cheekangteh
Apprentice
 
Posts: 36
Joined: Mon Dec 26, 2011 5:20 pm

Re: Configuration between SKKCA-21 & PIC 16F877A

Postby cheekangteh » Mon Apr 09, 2012 12:08 pm

hi, sorry... if found the explanation the code.
http://www.microautomate.com/PIC/pic-se ... cation.php
thanks.
cheekangteh
Apprentice
 
Posts: 36
Joined: Mon Dec 26, 2011 5:20 pm


Return to Wireless Device

Who is online

Users browsing this forum: No registered users and 43 guests

cron