UART vs software RS232


Closed Thread
Results 1 to 28 of 28

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    So if the modules are asking for CMOS UART in the data sheet, then you don't see a problem with a direct connection from the PIC pins using software RS232?

  2. #2
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    The difference may be if signals are inverted or not.
    If using SEROUT try HSEROUT.

    Norm

  3. #3


    Did you find this post helpful? Yes | No

    Default

    I'll try inverting -- that option may be on the module in configuration -- like I say the hardwired connection is fine.

    Pardon my lack of knowledge on the matter but what exactly is the difference between
    software serin and serout, hserin etc and the UART?

    I know the good thing about the UART is that it can run in the background but other than that, what are the differences?

    Thanks kindly.

  4. #4
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    The USART is hardware, is faster (115.2k baud), has a buffer but is not capable of inverting to eliminate an RS232 driver.

    If using SEROUT try inverting or non inverting as per the table in PBP help.

    Which command for RS232 are you using?

    Norm

  5. #5


    Did you find this post helpful? Yes | No

    Default

    By command you mean 8N1?

    I'm only using 1200 baud.

    So what is Hserin and hserout? I'd still like to know the difference between software generated RS232 and "hardware" RS232.

    Just the basics of what is going on.

    I'll figure out my problem.....might have to unpack my scope. (wherever it is).

  6. #6
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    QUOTE "By command you mean 8N1?"
    I mean statement: SEROUT?

    Software RS232 can be inverted/non-inverted in software.
    Hardware cannot.

    SEROUT PORTB.7,1,["START",13] '1200 true
    SEROUT PORTB.7,5,["START",13] '1200 inverted

    Norm

  7. #7
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Normnet View Post
    QUOTE

    SEROUT PORTB.7,<font color=red>1</font color>,["START",13] '1200 true
    SEROUT PORTB.7,<font color=red>5</font color>,["START",13] '1200 inverted

    Norm
    RTFM applies here, in the serout and serout2 sections, you will discover " MODE ", now when using <font color=red>SEROUT</font color>, if you <font color=blue>INCLUDE "modedefs.bas"</font color>, you can specify the mode as in below:
    Code:
    SEROUT PORTB.7,<font color=red>T1200</font color>,["START",13]  '1200 true
    SEROUT PORTB.7,<font color=red>N1200</font color>,["START",13]  '1200 inverted
    Last edited by Archangel; - 1st September 2008 at 22:22.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. PIC uart basics
    By Michael in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th September 2008, 20:11
  2. Software RS232 and wireless modules
    By Michael in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 17th August 2008, 06:27
  3. Software Stack
    By yasser hassani in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th December 2007, 11:04
  4. Replies: 3
    Last Post: - 26th November 2006, 22:47
  5. Infrared Communications over RS232 UART or with B0 interupt
    By modifyit in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th December 2005, 20:17

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