PIC18F4550 to 18F4553 Comm Issue?


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Location
    Boise, Id
    Posts
    44


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4550 to 18F4553 Comm Issue?

    Ok, so now it works, but I'm more confused...Define OSC 24 causes and error (Frequency not defined), but I changed HSER_SPBRG to 12 any way, and everything is working fine.
    So, why? Apparently my understanding of figuring out the settings is incorrect, although I must have understood it at one point

    Can anyone explain this?
    Thanks

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,696


    Did you find this post helpful? Yes | No

    Default Re: PIC18F4550 to 18F4553 Comm Issue?

    for pbp3 Define OSC 24 is a valid define
    from the book
    2.3.1 DEFINE OSC
    There are a limited number of valid numbers that can be used: 3 (3.58MHz), 4, 8,
    10, 12, 16, 20, 24, 25, 32, 33, 40, 48, 64. These are the only frequencies for which
    PBP is able to accurately calibrate its timing. If you use a system clock that runs at
    a frequency that isn't listed here, your timing will be scaled when the program
    executes.
    24 is in the list

    osc setting
    Code:
                                                       USBDIV_2_1L
                                        / =========== 96/2 = 48 ----   usb
    20 mhz  /5  = 4 :-  pll =  96mhz  :
          PLLDIV_5_1L                   \============  96/4 = 24 ---   fosc
                                                       CPUDIV_OSC3_PLL4_1L

Similar Threads

  1. RS232 comm
    By longdw in forum Serial
    Replies: 9
    Last Post: - 15th September 2009, 04:13
  2. trade 18F4553-I/P (really want 16c717/JW)
    By nomad in forum Adverts
    Replies: 2
    Last Post: - 1st November 2008, 23:49
  3. Code Issue - select case or 'if' issue - not sure why
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th October 2007, 09:52
  4. serial comm problem
    By win_832001 in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 29th June 2006, 14:57
  5. Serial comm Problems
    By Fossil in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th January 2004, 03:29

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