18f4525 Config


Results 1 to 3 of 3

Thread: 18f4525 Config

Threaded View

  1. #1
    Join Date
    Jan 2007
    Posts
    11

    Default 18f4525 Config

    Of course a new guy once again with a goofy question.

    I have been trying to use the CONFIG directive with PBP but I can't seem to get it to compile as in all the examples I have seen.

    I have tried:
    @ CONFIG OSC=ECIO6
    config OSC=ECIO6
    @__config OSC=ECIO6
    @config OSC=ECIO6

    And they all come up with errors.

    But this works:
    @__config_OSC_ECIO6_1H

    but I am unable to put an "&" on the end to add additional directives.

    Also how do I configure the directive:
    WDT = ON

    I found this in the MPASM 18F4525.INC file:

    ; IMPORTANT: For the PIC18 devices, the __CONFIG directive has been
    ; superseded by the CONFIG directive. The following settings
    ; are available for this device.
    ;
    ; Oscillator Selection:
    ; OSC = LP LP
    ; OSC = XT XT
    ; OSC = HS HS
    ; OSC = RC RC
    ; OSC = EC EC-OSC2 as Clock Out
    ; OSC = ECIO6 EC-OSC2 as RA6
    ; OSC = HSPLL HS-PLL Enabled
    ; OSC = RCIO6 RC-OSC2 as RA6
    ; OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7
    ; OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7
    ;
    ; Fail Safe Clock Monitor:
    ; FCMEN = OFF Disabled
    ; FCMEN = ON Enabled
    ;
    ; Internal External Osc. Switch Over:
    ; IESO = OFF Disabled
    ; IESO = ON Enabled
    ;
    ; Power Up Timer:
    ; PWRT = ON Enabled
    ; PWRT = OFF Disabled
    ;
    ; Brown Out Reset:
    ; BOREN = OFF Disabled
    ; BOREN = ON Enabled
    ; BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled
    ; BOREN = SBORDIS Enabled, SBOREN Disabled
    ;
    ; Brown Out Voltage:
    ; BORV = 45 4.5V
    ; BORV = 42 4.2V
    ; BORV = 27 2.7V
    ; BORV = 25 2.5V
    ;
    ; Watchdog Timer:
    ; WDT = OFF Disabled
    ; WDT = ON Enabled


    Any help would be nice for yet another newbie.
    Last edited by Firegod; - 27th February 2007 at 05:37.

Similar Threads

  1. A/D conversion with PIC18F67J50
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2009, 01:48
  2. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  3. Error 0X0000008E when connecting a 18F2550 USB HID
    By FranciscoMartin in forum USB
    Replies: 8
    Last Post: - 16th October 2008, 17:20
  4. PortE problems (PIC18F4455)
    By RubenR in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 12th July 2006, 15:26
  5. Installation sequence
    By Demon in forum General
    Replies: 23
    Last Post: - 11th July 2006, 03:56

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