pic to pic communications


Results 1 to 5 of 5

Threaded View

  1. #5
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Here's a sample program, thrown together for fun this lunchtime, to demonstrate bi-directional dialogue with a PC running something like Hyperterminal. It runs at 300 baud so almost any PIC will run it without an Xtal or Resonator.

    Yes, whatever you type is echoed back to you as feedback. UPPERCASE and lowercase and cOmBINatIOns are handled with reasonably idot-proof command interpretation...

    You can even use the BACKSPACE Key and have the PIC perform rudimentary line editing.

    The object of the program is to demostrate how commands can be passed from the PC User and acted upon by the PIC.

    PIC has five LED's which can be remote controlled in a variety of ways with commands like ON, OFF, BLINK, SWEEP and BEER. The major commands have sub-parameters which can be added to make control more interesting. Plenty of expansion for you to do your own thing.

    Example:

    ON Switch ON all LEDs
    ON 2 Switch ON LED number 2
    ON 4 7 Switch ON LED number 4 for 7 seconds
    BLINK 1 15 Blink LED number 1 15 times
    OFF 1 Switch OFF LED number 1
    SWEEP 25 Sequentially Sweep all LEDs 25 times

    Try to break it (if you can) by typing combinations of garbage....

    Full instructions in the program comments.

    Melanie
    Attached Files Attached Files

Similar Threads

  1. Replies: 24
    Last Post: - 2nd October 2017, 11:35
  2. PIC to PIC communications
    By droptail in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 8th March 2006, 16:35
  3. PIC Basic Pro <-> HP-IL communications
    By swr999 in forum Serial
    Replies: 0
    Last Post: - 6th March 2006, 18:30
  4. PIC to PIC communications
    By droptail in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th January 2006, 04:46
  5. PC / PIC communications?
    By achilles03 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 12th September 2005, 17:55

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