Generating RF from a PIC


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Mar 2004
    Posts
    44

    Default Generating RF from a PIC

    I seem to remember reading a message somewhere on the forum about generating RF using a pic chip but I can't track it down.

    I'm guessing it is possible to generate an RF signal from a pic then amplify it using an external.
    I only want to generate frequencys between 3 to 4MHz.

    I'm also guessing that with a high speed clock it would be possible to do other things whilst generating the RF.


    Rob

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    Did you find this post helpful? Yes | No

    Default

    If you use a 40MHz device (10Mhz Xtal with PLL x 4) then your instruction cycle is 100ns. So:

    In assembly:

    bsf portb.1 ;set port B, bit 1 high
    bcf portb.1 ;set port B, bit 1 low

    This consumes 200ns which is 5Mhz.

    But as you can see there is no time to do anything else...!

    So leave the RF generation to some other chips (like PLL) and control these chips with your PIC.

    Ioannis

  3. #3
    Qacer's Avatar
    Qacer Guest


    Did you find this post helpful? Yes | No

    Post

    I'm not that verse with the PIC, yet. But just by looking at the manuals, can't you just use the clock signal from a PIC with an oscillator running at 4MHz? I'm assuming you are using the 3-4MHz RF signal as your carrier frequency.

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    Did you find this post helpful? Yes | No

    Default

    I am not sure of what you are trying to do. But as far as it concerns the oscillator of the PIC, yes, you can use a buffer and take a copy of the OSC signal. But remember, this is a rectangular signal (TTL logic) and not sinus. If you want a pure RF signal you have to filter it very hard after the buffer.

    Ioannis

  5. #5
    Qacer's Avatar
    Qacer Guest


    Did you find this post helpful? Yes | No

    Talking

    Hi Ioannis,

    A low pass filter should be able to filter out the sharp edges and make the square look closer to a sine wave. For frequency modulation, a square wave should be suitable since its amplitude is not a main factor in the demodulation of the transmitted signal.

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    There's some RFPIC who do the job for you. See Microchip website for that.
    http://www.microchip.com/ParamChartS...g=en&pageId=74
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Qacer
    For frequency modulation, a square wave should be suitable since its amplitude is not a main factor in the demodulation of the transmitted signal.
    What exaclty are you trying to do?

    Ioannis

  8. #8
    Qacer's Avatar
    Qacer Guest


    Did you find this post helpful? Yes | No

    Talking

    Hi Ioannis,

    I was just saying that if he were to transmit and audio signal, then he can use the 3-4 MHz clock signal from the PIC for frequency modulation. He can mix the audio signal and the clock frequency with a mixer and transmit the frequency modulated signal.

  9. #9
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    i'll certainely prefer to use dedicated RF modules for that.

    See
    http://www.linxtechnologies.com/
    www.laipac.com
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  10. #10
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    Did you find this post helpful? Yes | No

    Default

    Agree with Steve. Might seems easy to do, but I'd prefer to use ready made solutions. I am too old for such adventures...! I did that when I was 15 (PLL for RF from scratch with TTL counters, Receivers with discrete components in the VHF region) but then time was all mine!

    Ioannis

  11. #11
    Qacer's Avatar
    Qacer Guest


    Did you find this post helpful? Yes | No

    Talking

    I guess I have a lot of catching up to do.

Similar Threads

  1. RF and PIC basic
    By turkbey in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 28th September 2013, 13:15
  2. Generating a composite video signal with PIC
    By The Master in forum Off Topic
    Replies: 1
    Last Post: - 2nd August 2008, 02:46
  3. RF transmiter reciever using PIC
    By drama in forum mel PIC BASIC
    Replies: 5
    Last Post: - 4th October 2007, 16:26
  4. LINX RF module and PIC (#2)
    By Michael in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 22nd January 2006, 17:56
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

Members who have read this thread : 1

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