Communications Example : PC to PIC bi-directional dialogue


Results 1 to 25 of 25

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Some of you may not have PBP, but might like to try the program to play with... so I've appended the HEX ready to burn into a 16F628.

    LED1 is on RA0, kathode to PIC, anode to Vdd via Resistor (eg 330R). LED2 is on RA1 similarly. LED3 is on RA2. LED4 is on RA3 and finally LED5 is on RA4.

    Connect RB1 (RX) via 1K5 Resistor to PC pin 3 on 9-Pin D Connector. Connect (TX) RB2 via 1K5 Resistor to PC pin 2 on 9-Pin D Connector. Connect your PICs Vss (0v) to PC pin 5 on 9-pin D Connector.

    You don't need an xtal or Resonator, and you don't need to worry about connecting the MCLR pin either. Those pins should be left unconnected. Just the LED's and the connections to your PC.

    The appended file is a HEX file. Unfortunately this forum does not allow the uploading of files with HEX extensions, therefore rename comms1.txt as comms1.HEX before programming.

    Melanie
    Attached Files Attached Files

Similar Threads

  1. Send data PIC to PC
    By konter in forum Off Topic
    Replies: 6
    Last Post: - 25th December 2009, 23:04
  2. Replies: 67
    Last Post: - 8th December 2009, 03:27
  3. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 15:46
  4. Replies: 11
    Last Post: - 12th July 2008, 03:36
  5. PC / PIC communications?
    By achilles03 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 12th September 2005, 18:55

Members who have read this thread : 5

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