Benefits of hardware usart over software?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009
    Posts
    29

    Default Benefits of hardware usart over software?

    I was using a 12f675 in a project and after realizing i needed a max232 chip to get to rs232 voltage levels I decided to get some 16f688's that have a hardware usart. Much to my suprise, it also needs a max232 chip as it also is at TTL levels. So what are the advantages of a hardware usart over just using serin and serout software commands?

    Thanks

    Jason

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

    Smile

    Hi sccoupe,

    I'm not a big serial comm user although I'm working on a project using serial now, but from reading alot of posts over the past few years, I think the big feature of using a usart over serin/serout is that the usart runs in the background and you can use interupts and polling to let you know when data is present in the usarts registers. Take some time and search the forums for more information.

    HTH,

    BobK

  3. #3
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947

    Default

    Main advantage of a Hardware Usart is the speed of receiver operations. Due to the fact that you don't have to sit around waiting for bits/bytes, you can do more work while the USART is receiving bytes. 2nd advantage, less missed characters. Max232 is just a level changer, you will need it even with a soft usart if you want to stick with the RS232 voltages.

Similar Threads

  1. rs232 with hardware USART
    By Smity42 in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 28th April 2011, 03:51
  2. Replies: 6
    Last Post: - 31st August 2007, 09:31
  3. hardware counting while software runs
    By Archangel in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 2nd October 2006, 03:26
  4. Programming software for PicAll Hardware
    By bcd in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th July 2006, 08:15
  5. 16F628 Hardware USART problem
    By atomski in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 26th May 2004, 07:10

Members who have read this thread : 1

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