CONFIGURE & OSCCON & meProg configure


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2011
    Posts
    60

    Default CONFIGURE & OSCCON & meProg configure

    This is my first post and am totally new to PIC. I wish to configure 18F4620 to internal oscillator at 4 MHz.

    INCLUDE "P18F4620.INC" ; MPASM Header
    __CONFIG _CONFIG1H, _OSC_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H

    I changed OSC_HS to OSC_INTOSC2 but that was undefined so what is the label? More information on .inc definitions?

    I used INTRC (INTIO2) in meProg which seemed to work (how to make that the default) but the speed was 1MHz.

    OSCCON = %01100000
    DEFINE OSC 4

    No help, still at 1MHz.

  2. #2
    Join Date
    Feb 2011
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: CONFIGURE & OSCCON & meProg configure

    OK, I found _OSC_INTIO67_1H and that sets programmer default, but still struggle with OSCCON = %01100000 not setting 4 MHz. Is there a register bit I am missing somewhere?

  3. #3
    Join Date
    Feb 2011
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: CONFIGURE & OSCCON & meProg configure

    Bug found, working, --Dug.

Members who have read this thread : 1

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