Menu

config bits for programming the open prog 18f2550 firmware

Mart Lang
2017-12-21
2017-12-22
  • Mart Lang

    Mart Lang - 2017-12-21

    hello i have two powerful programmer, they have tons of config bits before programming the open prog firmware, i need help to understand them

    lvp off
    wdt off
    bor on
    pwrt on
    fosc hs 12mhz clock divided by 3 ....
    pbad enable
    fcmem off
    mclre off
    wdtps 1:1
    wrtd off
    debug off

    is it right ??? do i miss something ?? tried to program one, and windows detect it as an unknown usb device, all part seems fine, no short, no wiring error ???

     
  • Alberto Maccioni

    Here how config options are defined in the source file:
    PLLDIV=3, FOSC=HSPLL_HS //for 12 MHz crystal
    CPUDIV=OSC1_PLL2, USBDIV=2
    IESO=OFF, PWRT=OFF, BOR=ON_ACTIVE, VREGEN=ON, WDT=OFF
    MCLRE=OFF, PBADEN=OFF, STVREN=ON, LVP=OFF, XINST=OFF, DEBUG=OFF
    BORV=21
    Anyways the config word is embedded in the hex file, so it should load automatically

     

Anonymous
Anonymous

Add attachments
Cancel