Pic18f6680


Closed Thread
Results 1 to 3 of 3

Thread: Pic18f6680

  1. #1
    Join Date
    Oct 2007
    Location
    Cape Town
    Posts
    2

    Default Pic18f6680

    I am currently working on a project that has to do with ultrasonic transducers. The problems I have is that i can't get WDT to stop reseting the pic and it is driving up the walls. I have tried a lot of different commands to stop the WDT and none so far have worked. Any help would be greatly appreciated.

    this in the current config I am using:

    asm
    __CONFIG _CONFIG1H, _XT_OSC_1H
    ; HS osc (20 MHz
    ;
    __CONFIG _CONFIG2L, _BOR_ON_2L & _BORV_27_2L & _PWRT_ON_2L
    ; Enable Brown out voltage detect
    ; Brown out voltage threshold 2.7 Volt
    ;
    __CONFIG _CONFIG2H, _WDT_OFF_2H
    ; Disable watch dog timer
    ;
    __CONFIG _CONFIG3H, _CCP2MX_OFF_3H
    ; Use default PORTC.1 for CCP2
    ;
    __CONFIG _CONFIG4L, _STVR_ON_4L & _LVP_OFF_4L & _DEBUG_OFF_4L
    ; enable stack overflow
    ; disable low-voltage programming mode
    ; disable background debugger
    ;
    __CONFIG _CONFIG5L, _CP0_OFF_5L & _CP1_OFF_5L & _CP2_OFF_5L & _CP3_OFF_5L
    ; disable code protect (user block)
    ;
    __CONFIG _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H
    ; disable code protect (boot block)
    ;
    __CONFIG _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L & _WRT2_OFF_6L & _WRT3_OFF_6L
    ; disable write protect (user block)
    ;
    __CONFIG _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H
    ; disable Write protect CONFIG regs
    ; disable write protect boot block
    ; disable rite protect Data EE
    ;
    __CONFIG _CONFIG7L, _EBTR0_OFF_7L
    ; Disable table Read protect user block
    ;
    __CONFIG _CONFIG7H, _EBTRB_OFF_7H
    ; Disable Read protect boot block enable
    endasm

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


    Did you find this post helpful? Yes | No

    Default

    Just a thought, maybe it is the BOR?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Oct 2007
    Location
    Cape Town
    Posts
    2


    Did you find this post helpful? Yes | No

    Lightbulb stupid mistakes

    I found mistake pic is running again. Forgot to return out of one of the functions. Thanks anyway.

Similar Threads

  1. PIC18F6680 programming
    By gopher in forum General
    Replies: 17
    Last Post: - 15th January 2008, 18:38

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