serout command


Closed Thread
Results 1 to 2 of 2

Thread: serout command

  1. #1
    the_piculiar's Avatar
    the_piculiar Guest

    Default serout command

    i am using the following command:

    SEROUT PORTA.5, n300 ["hello",10,13]

    im sending this value to the serial port on a compter (com1)
    im then reading it via visual basic but even though i setup my program to read the com1 with no parity and 300 as the baud rate, it reads out as pure gibberish.

    i have also tried it with hyperterminal but i get the exact same problem

    anybody have any ideas how to read the data from the pic and convert to ascii?
    or am i doing something wrong with the pic itself

    btw, the pic in use is a 16f877

  2. #2
    tdavis80's Avatar
    tdavis80 Guest


    Did you find this post helpful? Yes | No

    Smile

    are you using a level converter or hooking the comport to the pic via a resistor? Level converters are normally used and invert the signal. The PC expects it to be inverted. If you are only using a resistor, you must tell the PIC to invert the data.

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. Serout to serial servo
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 12th August 2009, 16:46
  3. Advice-scrutiny for my serial controller
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th December 2008, 17:11
  4. Can I do this???
    By noobie in forum mel PIC BASIC
    Replies: 2
    Last Post: - 10th June 2006, 18:57
  5. Keypad unlock (as in garage door possibly)
    By Fred in forum Code Examples
    Replies: 5
    Last Post: - 2nd April 2006, 04:26

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