Bluetooth Module, SKKCA-21, Cytron


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166

    Default Re: Bluetooth Module, SKKCA-21, Cytron

    arson88, For starters I don't see any receive routine in your version done with PicBasic or the MicroChip version done in assembly. I do however see there is a receive portion of code in the C version as well as some LCD display constants. I DO think you need to do some more homework on the interface requirements of the Cytron SKKCA-21 module before you start your coding. I personally don't have the time to research the specifications of the device you are trying to communicate to with the Pic. You need to do your own homework on the project. The people here are willing to help you as much as they can but if you don't know anything about the device you are trying to connect, how can you justify other people spending the time pouring over the spec's if you can't?

    Dave Purola,
    N8NTA

  2. #2
    Join Date
    Apr 2011
    Posts
    5

    Thumbs down Bluetooth Module, SKKCA-21, Cytron

    This BT module requirement is fairly simple:

    Bluesoleil, a BT software is needed to establish communication first. No communication can be made until both SKKCA-21 and PC with BT dongle is paired.

    [spoiler]http://www.cytron.com.my/usr_attachm...6.2.227.10.zip[/spoiler]

    PIC Basic Pro Coding:



    [spoiler]
    Code:
    INCLUDE "modedefs.bas"  ' Serial communication mode definition file
            DEFINE OSC 20           ' Oscillator speed is set to 20MHz
            TRISB = %11111111
            TRISC = %10000000       ' RC.7 => USART RX pin set to input
            PortC = 0
            SPBRG = 10              ' Baud Rate = 115200
              
            '    Variable definition
            '    ===================
            '
            count01     VAR BYTE    ' variable to store TXREG content    
            stop01      VAR BYTE 
            TXSTA.2 = 1             ' High speed
            TXSTA.5 = 1             ' Enable transmit 
            RCSTA.7 = 1             ' Bit 7, SPEN, Enable USART   
            RCSTA.4 = 1             ' Bit 4, CREN, Enable Continuous Receive 
            stop01 = 0
            mainloop:
             
                    
            IF (PortB.7 = 1) THEN 
            
            FOR count01 = 0 TO 9
            
            TXREG = count01 + $30             ' Transmit Data                       
            
            PAUSE 2000
            HIGH PortD.2
            PAUSE 2000
            LOW  PortD.2
            
            Next
           
            ENDIF 
              
            GOTO mainloop
            
            END
    [/spoiler]

    Someone please close this thread.......

  3. #3
    cheekangteh's Avatar
    cheekangteh Guest

    Default Re: Bluetooth Module, SKKCA-21, Cytron

    hi, can someone provide me sample coding PIC for SKKCA-21 in CCS??

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts