Simple Serial communications


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    kitcat's Avatar
    kitcat Guest

    Default Simple Serial communications

    HI there.
    I am working on a project where I need to send very simple serial data to a pic16f872. I am basically sending two bytes of data which has to be latched on two of the pic's ports. I think this is simple enough but I really want to acknowlege the data back to make sure it is correct. I am using a PC with software I am writing in VB. I am wondering if I could waggle/poll the dts/rts lines to control the communication. If so how do I hook them up to the PIC without damaging it?
    Has anybody got any samples or hints.
    Thanks

  2. #2
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Kitcat:

    Since you are writing your own VB code for the PC why not have the PIC pause 100 after receiving the 2 bytes then send them right back to the PC and have the VB program acknowledge the data was sent correctly? All that dts & rts lines are for is handshaking back and forth.

    BobK

  3. #3
    kitcat's Avatar
    kitcat Guest


    Did you find this post helpful? Yes | No

    Default

    Yes. Hmmmn. It really is that simple isn't it. I think that was lurking in my head but it seemed too easy.
    Thanks for that.

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


    Did you find this post helpful? Yes | No

    Default

    Check this Thread as an example for PC to PIC and echoing back to PC.

    http://www.picbasic.co.uk/forum/showthread.php?t=573

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 20:58
  2. Simple Serial Comms.
    By koossa in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 23rd November 2007, 08:12
  3. 110 Baud Serial Communications - Possible?
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 7th January 2006, 04:49
  4. Simple question, I hope? (Serial control, 16F84A)
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 31st December 2005, 19:47
  5. Simple serial debug script
    By barkerben in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th November 2005, 16:12

Members who have read this thread : 0

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