PIC12F683 Config Problems


Closed Thread
Results 1 to 2 of 2
  1. #1
    Electroman87's Avatar
    Electroman87 Guest

    Question PIC12F683 Config Problems

    Now I have a problem im trying to configure the oscillator and the MCLR using assembly code in PB. the code I have is:

    @ __CONFIG _INTOSCIO & _MCLRE_ON

    Now what am I missing. Plus I get an error:

    Overwriting Previous Address Contents (2007)

    Im not sure if this is write at all im using a my electronics teachers example for a different model pic. But on this pic there is only one Configure Word with the address (2007h). Any help would be appreciated.

    REGISTER 12-1: CONFIG – CONFIGURATION WORD (ADDRESS: 2007h)
    Note: Address 2007h is beyond the user
    program memory space. It belongs to the
    special configuration memory space
    (2000h-3FFFh), which can be accessed
    only during programming. See
    “PIC12F6XX/16F6XX Memory Programming
    Specification” (DS41204) for more
    information.
    — — FCMEN IESO BODEN1 BODEN0 CPD CP MCLRE PWRTE WDTE FOSC2 FOSC1 FOSC0
    bit 13 bit 0
    bit 13-12 Unimplemented: Read as ‘1’
    bit 11 FCMEN: Fail-Safe Clock Monitor Enabled bit
    1 = Fail-Safe Clock Monitor is enabled
    0 = Fail-Safe Clock Monitor is disabled
    bit 10 IESO: Internal External Switchover bit
    1 = Internal External Switchover mode is enabled
    0 = Internal External Switchover mode is disabled
    bit 9-8 BODEN<1:0>: Brown-out Detect Selection bits(1)
    11 = BOD enabled
    10 = BOD enabled during operation and disabled in Sleep
    01 = BOD controlled by SBODEN bit (PCON<4>)
    00 = BOD disabled
    bit 7 CPD: Data Code Protection bit(2)
    1 = Data memory code protection is disabled
    0 = Data memory code protection is enabled
    bit 6 CP: Code Protection bit(3)
    1 = Program memory code protection is disabled
    0 = Program memory code protection is enabled
    bit 5 MCLRE: GP3/MCLR pin function select bit(4)
    1 = GP3/MCLR pin function is MCLR
    0 = GP3/MCLR pin function is digital input, MCLR internally tied to VDD
    bit 4 PWRTE: Power-up Timer Enable bit
    1 = PWRT disabled
    0 = PWRT enabled
    bit 3 WDTE: Watchdog Timer Enable bit
    1 = WDT enabled
    0 = WDT disabled and can be enabled by SWDTEN bit (WDTCON<0>)
    bit 2-0 FOSC<2:0>: Oscillator Selection bits
    111 = RC oscillator: CLKOUT function on RA4/OSC2/CLKOUT pin, RC on RA5/OSC1/CLKIN
    110 = RCIO oscillator: I/O function on RA4/OSC2/CLKOUT pin, RC on RA5/OSC1/CLKIN
    101 = INTOSC oscillator: CLKOUT function on RA4/OSC2/CLKOUT pin, I/O function on RA5/OSC1/CLKIN
    100 = INTOSCIO oscillator: I/O function on RA4/OSC2/CLKOUT pin, I/O function on RA5/OSC1/CLKIN
    011 = EC: I/O function on RA4/OSC2/CLKOUT pin, CLKIN on RA5/OSC1/CLKIN
    010 = HS oscillator: High-speed crystal/resonator on RA4/OSC2/CLKOUT and RA5/OSC1/CLKIN
    001 = XT oscillator: Crystal/resonator on RA4/OSC2/CLKOUT and RA5/OSC1/CLKIN
    000 = LP oscillator: Low-power crystal on RA4/OSC2/CLKOUT and RA5/OSC1/CLKIN

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Lightbulb Faq ???

    Hi,

    there's a whole thread dedicated to this common question ...

    http://www.picbasic.co.uk/forum/showthread.php?t=543

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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. Installation sequence
    By Demon in forum General
    Replies: 23
    Last Post: - 11th July 2006, 03:56
  5. PIC18 Config Problems
    By eoasap in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 3rd January 2006, 01:08

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