Config Bits


Results 1 to 7 of 7

Thread: Config Bits

Threaded View

  1. #5
    Join Date
    May 2014
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: Config Bits

    OK. I have tried the various solutions presented. I have PBP2.60C. I have had it for a number of years and used it very little because of similar issues to the one I am having now. However, since I BOUGHT the thing, and since mplab really sucks, and because my sourceboost runs unimaginably slow on this laptop (no good reason for that and it really ticks me off), I decided to try this again. Mistake number 4 or five... I lost count.

    Anyway. I have tried the various solutions. The config bits are still left unset. I typically get the following an error saying that it is overwriting the previous address contents. My assumption (incorrect as it is) was that the program was actually changing the bits. pickit2 disagrees.

    Any other ideas?

    Does anyone have an actual program using the config bits that actually compiles and runs that they would be willing to post so that morons like me can actually SEE what REALLY works?

    just so you can see this ridiculous program I'm using it is below: BTW, just so you know, I used the meConfig to set the bits in the program as outlines. I made sure to uncheck the PBP3 checkbox as I am NOT using that.
    '************************************************* ***************
    '* Name : sound_test.BAS *
    '* Author : MityEltu *
    '* Notice : Copyright (c) 2014 [select VIEW...EDITOR OPTIONS] *
    '* : All Rights Reserved *
    '* Date : 5/6/2014 *
    '* Version : 1.0 *
    '* Notes : *
    '* : *
    '************************************************* ***************

    ASM
    __config _CONFIG1H, _OSC_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
    __config _CONFIG2L, _PWRT_OFF_2L & _BOREN_SBORDIS_2L & _BORV_3_2L
    __config _CONFIG2H, _WDT_OFF_2H & _WDTPS_512_2H
    __config _CONFIG3H, _CCP2MX_PORTC_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _MCLRE_ON_3H
    __config _CONFIG4L, _STVREN_OFF_4L & _LVP_OFF_4L & _XINST_OFF_4L & _DEBUG_OFF_4L
    __config _CONFIG5L, _CP0_OFF_5L & _CP1_OFF_5L & _CP2_OFF_5L & _CP3_OFF_5L
    __config _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H
    __config _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L & _WRT2_OFF_6L & _WRT3_OFF_6L
    __config _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H
    __config _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L & _EBTR2_OFF_7L & _EBTR3_OFF_7L
    __config _CONFIG7H, _EBTRB_OFF_7H
    ENDASM


    gosub setup
    main:
    goto main
    end


    setup:
    intcon = $00
    intcon2 = $80
    intcon3 = $00
    pie1 = $00
    pie2 = $00

    ccp1con = $00
    ccp2con = $00

    adcon0 = $00
    adcon1 = $0f

    cmcon = $03
    cvrcon = $00
    hlvdcon = $00

    trisa = $00
    porta = $00
    trisb = $ff
    trisc = $00
    portc = $00
    trisd = $ff
    trise = $00
    porte = $00
    return
    Last edited by mityeltu; - 8th May 2014 at 00:17.

Similar Threads

  1. Replies: 2
    Last Post: - 23rd April 2013, 17:34
  2. config bits
    By brianD in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th February 2010, 14:45
  3. DT_INTS-14 /interrupts enable bits / flag bits
    By bogdan in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th May 2009, 19:42
  4. Need clever way to convert 10 bits to 8 bits
    By MikeTamu in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd September 2005, 16:13
  5. Trouble setting config. bits
    By jswayze in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 13th March 2004, 23:22

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