User selectable baud rate


Results 1 to 9 of 9

Threaded View

  1. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,643

    Default Re: User selectable baud rate

    as you have discovered something can only be defined once
    a workable option is to
    DEFINE HSER_BAUD 19200 ; your default baud rate
    then at boot up read your dip sw
    if its necessary to alter baud rate then
    the SPBRG register can be altered to suit the new baud rate.
    you have provided no code or pic type or osc freq so you will need to calculate the spbrg value yourself
    or find PicMulticalc by misterE
    Last edited by richard; - 27th September 2014 at 10:50. Reason: spelling

Similar Threads

  1. RS232 Baud Rate
    By gadelhas in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 10th August 2010, 00:06
  2. MCLoader baud rate
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 14th July 2010, 01:41
  3. Baud rate calculation
    By Demon in forum Serial
    Replies: 12
    Last Post: - 21st July 2006, 22:02
  4. Detect baud rate
    By Dick M in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd July 2005, 21:10
  5. User Selectable LED Brightness
    By Tissy in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 10th April 2005, 18:24

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