Setting Question for Hardware Serial Coms


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    127

    Default Setting Question for Hardware Serial Coms

    Much of my serial coms is done via 56K baud which I think requires a 16bit baud rate generator of the PIC's EUSART baud rate generator to access accurately. To access that functionality of the EUSART I need to set the BRG16 bit within the Baud Rate Control Reg. So, my question is - does setting the Baud Rate under a DEFINE statement set that register bit or do I need to set it manually? I can't find any other DEFINEs that overtly set that particular bit.

    Thanks,

    Troy

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: Setting Question for Hardware Serial Coms

    BAUDCTL.3 = 1 ' Enable 16 bit baudrate generator
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    127

    Default Re: Setting Question for Hardware Serial Coms

    Thanks Dave. So it sounds like the answer is a manual setting. It would be nice to have this formally documented somewhere though.

    Regards,

    Troy

Similar Threads

  1. Question regarding hardware serial and GPIO
    By Andy Wood in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th April 2013, 11:00
  2. serial coms - again
    By malc-c in forum mel PIC BASIC Pro
    Replies: 57
    Last Post: - 26th September 2010, 14:10
  3. Serial coms with a pc
    By Andre_Pretorius in forum Serial
    Replies: 13
    Last Post: - 18th June 2007, 15:41
  4. PIC16F819 serial coms
    By c6jones720 in forum Serial
    Replies: 2
    Last Post: - 13th June 2007, 20:46
  5. Off Topic?? - Serial coms.
    By muddy0409 in forum Schematics
    Replies: 9
    Last Post: - 19th April 2007, 07:42

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