Help with a Parallel I/O to Machine Interface?


Closed Thread
Results 1 to 6 of 6
  1. #1
    john meiers's Avatar
    john meiers Guest

    Default Help with a Parallel I/O to Machine Interface?

    I have 6 16F628's each controlling similar machine operations - need a program for a master PIC to communicate with a PC running VisBasic.net via a parallel port interface (8 I/O). The master PIC will then need to send pulses to each machine-control PIC every 3 seconds or so, as defined by the PC. I was thinking of using the first 3 I/O of the parallel port for PIC addressing, the next 3 for data, etc.

    I'm fairly new at this stuff. I was able to create the code and build the small PIC units, but this is out of my league. Can anyone help me?

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


    Did you find this post helpful? Yes | No

    Default

    can you use serial COM port instead? Much easier, less time consumming too!
    Steve

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

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Why not just create an address on each of the PICs and attach an address to the packets being sent.

  4. #4
    john meiers's Avatar
    john meiers Guest


    Did you find this post helpful? Yes | No

    Default

    Ya..how would I do that? Serial would be fine, I just thought the wiring / programming would be easier with parallel. Any suggestions?

  5. #5


    Did you find this post helpful? Yes | No

    Default

    You could send a packet containing any number of bytes. For example you could send a 3 byte packet with byte0 being the address of the device you wish to be the recipient, byte1 being the actual command (ex. write or read) and byte2 being the actual data to be transmitted.

  6. #6
    john meiers's Avatar
    john meiers Guest


    Did you find this post helpful? Yes | No

    Default

    i see...sounds good. That would eliminate a lot of work programming an intermediary PIC..plus the individuals could communicate with the computer program easier as well. How would I do the clock / timing between the comp and PICs?

Similar Threads

  1. LCDOUT w/custom interface?
    By Mike, K8LH in forum PBP Extensions
    Replies: 4
    Last Post: - 3rd March 2015, 03:54
  2. Replies: 33
    Last Post: - 19th March 2010, 03:02
  3. resistor in parallel with a thermistor
    By Pic_User in forum General
    Replies: 0
    Last Post: - 13th March 2007, 01:42
  4. 'SCI' interface
    By ecua64 in forum Off Topic
    Replies: 0
    Last Post: - 29th September 2005, 16:02
  5. How do you interface a 74hc165 to a pic12f629
    By orion1137 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 6th February 2005, 04:10

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