rfPIC Serin problem


Closed Thread
Results 1 to 40 of 53

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    thank you very much for the reply..

    i have one more question..im testing the rfPIC development kit right now with the demo program..we are trying to test the rf12F675 by using oscilloscope by conneting the probe to the pin output which is pin GP5 and GP0. however, we see no signals output from the transmitter except the analog voltage value 1.29 mv which i think comes from the power supply.

    any suggestion how to test it? we have checked the connection circuit many times..but it still give us the same result

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    You must have a different rfPIC development kit than the one I have. GP0 on mine connects
    to POT0. GP5 to the RFENA pin?

    Here are the pin definitions in the Microchip demo tx code example;

    #define POT0 GPIO, 0 ; (Analog Input) Potentiometer GP0
    #define POT1 GPIO, 1 ; (Analog Input) Potentiometer GP1
    #define TXD GPIO, 2 ; (Output) Transmit Data
    #define PB3 GPIO, 3 ; (Input Only) Push button switch GP3
    #define PB4 GPIO, 4 ; (Input) Push button switch GP4
    #define RFENA GPIO, 5 ; (Output) RF Enable

    I also have a full schematic in .PDF format on my CD that verifies this.

    Have you tried placing the scope on GP2?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Nov 2007
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    yup we did try..but we dont get the expected signal..

    am i right if im expecting a modulated signal came out from the output channel? so i should be able to see an analog modulated signal with ASK. but, we only see a digital signal 0 1 which i think comes from the power supply that we used.

    im sorry..i gave the wrong information. we are using the same develoment kit as yours

    thank you

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    we only see a digital signal 0 1
    You should be seeing a digital signal if you're placing a scope probe on GP2. This is a digital
    I/O-pin connected to pin #14 DATAask on your tx board. That's your outbound data being
    used to control the PA.

    Read the data sheet, section 9.4, ASK Modulation and you'll see why an I/O-pin
    would be connected to pin #14.

    You can find a modulated signal on the antenna output, but you'll be loading it with your
    scope probe.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Nov 2007
    Posts
    9


    Did you find this post helpful? Yes | No

    Default

    Hi
    I would like to test whether my rfpic12f675 an rfrxd0420 works according to the demo for the development kit. The part for LED indicators on the Pickit Flash 1, it says that when my GP buttons on transmitter are pressed, LED will be lite up. Does that mean that we can just verify this through the dev kit? The LED on my board sometimes toggle when I press the switches, and I thought I should have got a 7 LEDs to light up.
    I'm confused at the part where I need to use PIC16f676 for the rxrfd420, do I need to connect the pins RA5 to RC 2 to the PIC itself? Can anyone help me please.

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Read the rfPIC Dev Kit Quick Start Quide. It has blow-by-blow instructions. The link above
    will take you directly to the page where you can download this if you don't already have it.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7
    Join Date
    Nov 2007
    Posts
    11


    Did you find this post helpful? Yes | No

    Smile

    yes..we finally manage to test the rfkit and it works..

    now its the time for me to alter the code..the transmitter right now required no external input except from the switch to operate. we planned to replace the gp4 with input from sensor and the input is digital . however there are some part of the demo program that i dont understand the purpose which i pasted below.

    under part "fill in transmission buffer" , why they purposely inserted the random number into the buffer register?and then will be ignored by receiver ? and how the receiver is going to ignore it?

    and since the input for this demo is analog signal, they have used the converter and have the result stored in register ADRESH and ADRESL. so as for me who has a digital input, i should be able to read straight from the gpio port , but im not sure how is the command since im only read from one bit of register.



    and this command means the input data being read and stored in temp register?

    the part of demo program that im confused

    ;----------------------------------
    ; fill in transmission buffer
    ;----------------------------------

    XMIT

    bsf RFENA ; Enable Transmitter

    movlw 0x73 ; send Serial number
    movwf CSR0

    movfw FuncBits ; send Function Bits
    movwf CSR1

    ; send 16-bit Counter
    ;
    ; send analog value (this is modified from the fixed
    ; KeeLoq(r) protocol; these two fields are normally
    ; used for 16-bit counter value)

    bsf STATUS, RP0 ; ----- Select Bank 1 -----
    movfw ADRESL ; ADRESL Result
    bcf STATUS, RP0 ; ----- Select Bank 0 -----
    movwf CSR2

    movfw ADRESH ; ADRESH Result
    movwf CSR3

    movlw 0x56 ; send 32-bit serial number 1 (ignored by receiver)
    movwf CSR4

    movlw 0x34
    movwf CSR5

    movlw 0x12
    movwf CSR6

    movlw 0x20
    movwf CSR7

    movlw 0x55 ; send Flags
    movwf CSR8
    Last edited by medusa2584; - 22nd November 2007 at 08:36.

  8. #8
    Join Date
    Nov 2007
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by medusa2584 View Post
    thank you very much for the reply..

    i have one more question..im testing the rfPIC development kit right now with the demo program..we are trying to test the rf12F675 by using oscilloscope by conneting the probe to the pin output which is pin GP5 and GP0. however, we see no signals output from the transmitter except the analog voltage value 1.29 mv which i think comes from the power supply.

    any suggestion how to test it? we have checked the connection circuit many times..but it still give us the same result
    does anyone know why we have to times it by 32? i have looked at the datasheet, but it does not state the reason anywhere.

Similar Threads

  1. Serin Problem with 12F629/PBP
    By Flyingms in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th March 2009, 15:59
  2. Serin Problem 16f819
    By jjohannson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd March 2007, 23:50
  3. Serin serout problem
    By lerameur in forum mel PIC BASIC Pro
    Replies: 336
    Last Post: - 6th February 2007, 05:25
  4. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 20:02
  5. serout and serin problem
    By nicolelawsc in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th April 2006, 20:44

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