Serial Comm startup


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Condition the Tx data line first

    Sinoteq is right. You must condition the Tx data line first. Here is what I do.

    high tx232 'preset Txdata line high
    pause 50 'allow receiver time to stabilise
    debug $0D, $0A 'send carriage return line feed
    for a = 2 to 42 ' display 42 characters from EEROM
    read a,b
    debug b
    next a
    debug $0D, $0A 'finish with carriage return line feed

    HTH
    BrianT

  2. #2


    Did you find this post helpful? Yes | No

    Default

    BrianT, sinoteq,

    thanks alot for the help.

    Actually it's not just the first character but 90% and most of the time 100% of the entire first line .

    As a note, i'm using a direct connection from the pic to the serial port.
    Also tryed using an 1K resistor between I/O and serial port but the result is the same.

    With your experience...what is best ? To use the serial resistor or not ?

    Will try your instructions tonight

    .
    Last edited by ruijc; - 9th January 2008 at 10:47.

  3. #3
    sinoteq's Avatar
    sinoteq Guest


    Did you find this post helpful? Yes | No

    Default Add a MAX232(A) chip

    That is the best way if you have space for it. This also will save your PC if your Pic board makes a misstake, the MAX chip dies and PC lives...... MAX is cheap PC is not I never connect my things without level-converter. It is so easy to make, really cheap so I don't see why not use it.

    Regarding your resistor question I hope someone can explain it to you.

Similar Threads

  1. Serial comm between two PICs
    By ALFRED in forum Serial
    Replies: 24
    Last Post: - 13th March 2014, 23:22
  2. Idea of master/slave serial comm.
    By sirvo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th December 2007, 08:36
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. 16F877, DS18S20 and Serial Comm Problem
    By YellowTang in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th April 2004, 10:36
  5. serial comm from Pic to STAMP
    By d1camero in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th April 2004, 23:58

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