SEROUT problem


Closed Thread
Results 1 to 3 of 3

Thread: SEROUT problem

  1. #1
    martarse's Avatar
    martarse Guest

    Question SEROUT problem

    Hello,

    There is the code that I used for testing communication between PIC16F84A and RS232 computer port :
    ---------------
    include "modedefs.bas"
    define CHAR_PACING 1000
    define OSC 8

    here: serout porta.1,T9600,["Hello"]
    serout porta.1,T9600,[" MartiN "]
    goto here
    ---------------
    For the moment I just want to send information to the serial port. When I used this code I'm not able to see the message "Hello Martin " on the computer port.

    I've try with and without CHAR_PACING and I've try many other mode like T1200, T2400 and does not seems to work. I see only garbadge on the port.

    My oscillator (HS mode) is a 8MHz xtal with 22uF Cap.

    The connection between DB9 port and Pic is a 1K resistor as described in the PBP documentation for SEROUT command.

    someone can help me to read the good character on the serial port???

    thanks!!

  2. #2
    Join Date
    May 2004
    Location
    Sweden
    Posts
    9


    Did you find this post helpful? Yes | No

    Default

    Hi Martin, try N9600 then it should work.
    T is used when you have a RS232 driver which invert the signal.


    Brgds Roy SM0MKJ

  3. #3
    martarse's Avatar
    martarse Guest


    Did you find this post helpful? Yes | No

    Default

    Hello Roy,

    I've just test it and it works very well!

    Thanks for your help.

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. Strange SerOut Problem
    By masosi in forum mel PIC BASIC Pro
    Replies: 39
    Last Post: - 23rd April 2007, 06:06
  5. Replies: 11
    Last Post: - 13th July 2005, 19: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