Amicus18 Baudrates


+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2012
    Location
    South Carolina, USA
    Posts
    18

    Default Amicus18 Baudrates

    Could someone please help me get the baud-rates correct for 9600. I have been using the following defines for 115200 and works great.

    Code:
    DEFINE OSC 64                      
    DEFINE LOADER_USED 1               
    DEFINE HSER_RCSTA 90h              
    DEFINE HSER_TXSTA 24h             
    DEFINE HSER_CLROERR 1              
    DEFINE HSER_SPBRG 138             
    SPBRGH = 0
    BAUDCON.3 = 1
    I tried changing DEFINE HSER_SPBRG 138 to 1666 per the data sheet but does not seem to matter. Also tried changing HSER_TXSTA 24h to 20h.

    John

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,253

    Default Re: Amicus18 Baudrates

    http://www.picbasic.co.uk/forum/show...8308#post78308

    Download and try this utility.

    Robert

  3. #3
    Join Date
    Feb 2012
    Location
    South Carolina, USA
    Posts
    18

    Default Re: Amicus18 Baudrates

    Robert, Thanks Again

    Code:
    DEFINE OSC 64                       ' Default oscillator speed on the AMICUS18 is 16*4MHz
    DEFINE LOADER_USED 1                ' We're using a bootloader.
    DEFINE HSER_RCSTA 90h               ' Enable serial port & continuous receive
    DEFINE HSER_TXSTA 20h               ' Enable transmit, BRGH = 0
    DEFINE HSER_SPBRG 103               ' 9600 Baud @ 64MHz, 0.16%
    DEFINE HSER_CLROERR 1               ' Clear overflow automatically
    
    RCSTA = $90                         ' Enable serial port & continuous receive
    TXSTA = $20                         ' Enable transmit, BRGH = 0
    SPBRG = 103                         ' 9600 Baud @ 64MHz, 0.16%

Similar Threads

  1. Using Amicus18 and I2C
    By JKaiser in forum PBP & Amicus18
    Replies: 3
    Last Post: - 16th October 2013, 13:56
  2. Amicus18/Arduino/Whatever voltages
    By dhouston in forum PBP & Amicus18
    Replies: 3
    Last Post: - 6th June 2011, 13:14
  3. Another Amicus18-Ethernet approach
    By dhouston in forum PBP & Amicus18
    Replies: 10
    Last Post: - 27th May 2011, 12:36
  4. Amicus18 Companion Shield Manual code
    By mackrackit in forum PBP & Amicus18
    Replies: 0
    Last Post: - 14th May 2011, 06:39
  5. News - farnell Stock Amicus18
    By lester in forum General
    Replies: 1
    Last Post: - 7th July 2010, 12:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts