What / how is the best / easiest way to transfer data?


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2011
    Location
    Los Angeles, California
    Posts
    322

    Default What / how is the best / easiest way to transfer data?

    Hi All!
    I have one PIC (16F628A) that is operating a sound module. There are 16 possible sounds. How is the best / easiest way to transfer the number (sound number) from the 16F628A to an input to another PIC so the number can be displayed on an on screen display along with other data?

    Thanks, Ed

  2. #2
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Re: What / how is the best / easiest way to transfer data?

    Hi,

    If you have 4 pins on the 16F628A that is not used already you can have them as outputs and then binary set these pins to represent 0-15 as sound number. The other pic just have to read 4 of it's inpins that are connected to the output from the 628A.

  3. #3
    Join Date
    Mar 2011
    Location
    Los Angeles, California
    Posts
    322


    Did you find this post helpful? Yes | No

    Default Re: What / how is the best / easiest way to transfer data?

    Thanks Jumper!
    Great idea and I only have two pins available

    Ed

  4. #4
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Re: What / how is the best / easiest way to transfer data?

    2 pins..

    Serial data is one possibility.. software out on any pin and then in on the other picīs HW rx pin.

    Or

    Pullup in pin A and pin B on the 628A

    PinA is set to low.
    wait for the other pic to reply "redy to receive" that it will signal with pin B going low.
    Pulseout (x ms) depending what sound you play in the 628A
    Pulsein for the other pic to read the sound value as a pulse time
    Release Pin A so say you are done
    pic 2 releases pin B also

    if you dont want to use pulse time you can send 1 pulse for sound 1 and 16 pulses for sound 16. and then just count rising or falling edges in PIC2

    OR

    If you have CCP1 still avaliable you can use that and a double RC network to create an analogue voltage that has 16 different voltage levels. Then you only need one pin and an AD pin on PIC2.
    Last edited by Jumper; - 7th November 2012 at 01:39.

Similar Threads

  1. usb to usb direct data transfer
    By sharath in forum USB
    Replies: 0
    Last Post: - 17th July 2011, 13:23
  2. How to transfer data from 3 micro to 1
    By amindzo in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 16th September 2008, 13:36
  3. Help with Wireless Data Transfer
    By ZOOM in forum Off Topic
    Replies: 3
    Last Post: - 25th October 2007, 05:17
  4. Can serial transfer binary data?
    By TurboLS in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 12th March 2005, 08:27
  5. *very* low speed data transfer
    By jswayze in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th November 2004, 19:04

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