Serial Baudrate 115200


Closed Thread
Results 1 to 36 of 36

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Re: Using a "non-DEFINE-listed" oscillator speed

    I need to use a 18,432MHz crystal...
    Looking at the OSC values in the DEFINEs list, I can't find the value "18".
    Shall I simply define the OSC as, i.e., "20" while connecting a 18MHZ crystal?
    Can anyone give some info about this please?
    Roger

  2. #2
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Re: Using a "non-DEFINE-listed" oscillator speed

    I need to use a 18,432MHz crystal...
    Looking at the OSC values in the DEFINEs list, I can't find the value "18".
    Shall I simply define the OSC as, i.e., "20" while connecting a 18MHZ crystal?
    Does really nobody know something about that?
    Roger

  3. #3
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: Using a "non-DEFINE-listed" oscillator speed

    You are going to have to unless you change the libraries. Just remember that any PAUSE commands will be 8.5% longer than you think.
    You can get around that by creating some variables.

    For example: If your program needed 3 different delays 20ms, 50ms, 190ms
    You would create 3 vars

    delay20 con 18
    delay50 con 46
    delay190 con 175

    Now, if you need a 20mSec delay, you can use the command

    PAUSE delay20

    It is not exact, but it is close.
    Charles Linquist

  4. #4
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Re: Serial Baudrate 115200

    Thanks Charles,

    I thought this would happen. No problem then, for me ;-)
    Roger

Similar Threads

  1. Replies: 33
    Last Post: - 19th March 2010, 03:02
  2. Dynamic USB Serial Number (PIC18F4550)
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th July 2009, 17:03
  3. 16f88 internal osc 8mhz max serial baudrate ?
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th December 2008, 23:27
  4. PIC18F4680 to PC via MAX232 (RS232 serial) no output
    By opticsteam1 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th April 2008, 20:39
  5. interfacing to the pc serial port
    By kelangfei in forum General
    Replies: 4
    Last Post: - 7th October 2007, 22:35

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