8 MHZ internal configuration


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Mar 2010
    Location
    Austin, TX
    Posts
    68


    Did you find this post helpful? Yes | No

    Default

    Yes, I looked at the .inc file and got further confused because the two items in red are both defined as H'3FFC', yet one says there is no clock out, and the other says there is a clock out. This has to be a .inc file problem or, there is something about that that escapes me. The bottom line here is that I can make this work, but I do not understand why it works and why these things are defined the way they are.

    _INTRC_OSC_NOCLKOUT EQU H'3FFC'
    _INTRC_OSC_CLKOUT EQU H'3FFD'
    _EXTRC_OSC_NOCLKOUT EQU H'3FFE'
    _EXTRC_OSC_CLKOUT EQU H'3FFF'
    _INTOSCIO EQU H'3FFC'
    _INTOSC EQU H'3FFD'
    _EXTRCIO EQU H'3FFE'
    _EXTRC EQU H'3FFF'
    Last edited by PickyBiker; - 30th April 2010 at 19:18.
    PickyBiker says, "Riding a motorcycle eases programming frustration".

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


    Did you find this post helpful? Yes | No

    Default

    As far as I know just different ways of writing the same thing.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Mar 2010
    Location
    Austin, TX
    Posts
    68


    Did you find this post helpful? Yes | No

    Default

    You are correct dave.

    I took a break and went out to fly my RC plane. On the way home, I figured out what was tripping me up. It's really simple. _INTOSCIO EQU H'3FFC' is looking at things from the IO point of view. In that case, if the pins are IO, they are not clocks and vice-versa. _INTRC_OSC_NOCLKOUT EQU H'3FFC' is looking at things from the clock point of view so when the pins are not clocks, they are IO's, and vice versa. So, indeed, the two items I highlighted in the previous post are the same.

    Taking a break when you are banging your head against the wall is a good thing.
    PickyBiker says, "Riding a motorcycle eases programming frustration".

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