Barto

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Barto
    Participant

    CODE:
    #include “p16F1455.inc”
    ; CONFIG1
    ; __config 0xFFFF
    __CONFIG _CONFIG1, _FOSC_ECH & _WDTE_ON & _PWRTE_OFF & _MCLRE_ON & _CP_OFF & _BOREN_ON & _CLKOUTEN_OFF & _IESO_ON & _FCMEN_ON
    ; CONFIG2
    ; __config 0xFFFF
    __CONFIG _CONFIG2, _WRT_OFF & _CPUDIV_CLKDIV6 & _USBLSCLK_48MHz & _PLLMULT_3x & _PLLEN_ENABLED & _STVREN_ON & _BORV_LO & _LPBOR_OFF & _LVP_ON
    org H’0000′ ;makes sure that the flash memory starts at 00
    ;program starts here
    banksel H’0001′
    clrf H’008E’
    banksel H’0002′
    loopy1 movlw H’FFFF’
    movwf H’010E’
    clrf H’010E’
    goto loopy1
    end

Viewing 1 post (of 1 total)