18F24J11 clock and HSER/HSER2 baud rates


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    What kind of crystal are you using? You have your OSC set to HS, with no PLL. The biggest crystal you can put on it is 20 mhz.
    http://www.scalerobotics.com

  2. #2
    Join Date
    Mar 2009
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    The Crystal is a CM-309S 40 MHz and a scope shows it oscillating correctly at 40 MHz.
    The 'CONFIG BITS ON PICKit2 set to 04A1 09DC 09FF 01CF indicates that bits 0-2 of 09DC are set to HS mode and the HSER outputs are indeed 112500 baud.
    The timing PAUSE instruction needs 3333 count to create 1 second delay which seems to suggest an instruction clock of 13.3 MHz.
    4 MHZ PAUSE instruction delays 1 msec, ie PAUSE 1000 = 1 sec.
    I have to use PAUSE 3333 to yield1 sec. thus internal clock seems to be 13.2 MHZ.

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

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