How to change baud rate with HSEROUT?


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: How to change baud rate with HSEROUT?

    Dick,

    First, the defines need to be uppercase.
    define HSER_BAUD 4800.
    Otherwise PBP will use the default value of 2400.

    You also have conflicting defines.

    define hser_baud 2400
    define hser_spbrg 25

    Those both specify the baud rate.
    Choose one or the other.

    I would recommend getting mister-e's PicMultiCalc. http://www.picbasic.co.uk/forum/cont....-PICMultiCalc
    Let it do the hard work for you.
    DT

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: How to change baud rate with HSEROUT?

    Darrel,

    Thanks,.... looks like I had MCSX's Editor Options highlighter set for "lower case" by mistake .... fixed now.

    HSEROUT now working at 9600 baud with these defines:

    'Define hserout parameters
    DEFINE HSER_TXSTA 20h
    DEFINE HSER_BAUD 9600

    Dick

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