#include "p16f88.inc"
#include <p16f88.inc>
errorlevel -302 ; Disable bank warnings
#include <p16f88.inc>
list p=16f88
__CONFIG _CONFIG1, _CPD_OFF & _CP_OFF & _DEBUG_ON & _LVP_OFF & _MCLR_ON & _PWRTE_ON & _WDT_OFF & _WRT_PROTECT_OFF & _INTRC_IO & _BODEN_OFF
;cblock 0x20 ; Variables
; test
;endc
org 0
nop
goto Start
Start clrf STATUS
clrf PORTA
clrf PORTB
bsf STATUS, RP0 ; Bank 1
clrf TRISA ; All PORTA output
clrf TRISB ; All PORTB output
; Disable A/D, all ports digital
clrf ANSEL
; Disable comparators
movlw 0x07
movwf CMCON
; Set 4 MHz clock
;banksel OSCCON
bsf OSCCON, IRCF2
bsf OSCCON, IRCF1
bcf OSCCON, IRCF0
bcf STATUS, RP0 ; Bank 0
movlw 0xFF
movwf PORTA
Loop goto Loop
end
Remove
_MCLR_ON & _PWRTE_ON & _DEBUG_ON
Initializing PICkit 2 version 0.0.3.61
Found PICkit 2 - Operating System Version 2.32.0
Target power detected ( 4.99V)
PIC16F88 found (Rev 0x8)
PICkit 2 Ready
PKWarn0006: The local copy of program memory has been changed since the last program operation. Should PICkit 2 program the target (fix) before proceeding?
Programming Target (08/03/2009 21:53:46)
PIC16F88 found (Rev 0x8)
Erasing Target
Programming Program Memory (0x0 - 0x13)
Programming Program Memory (0x800 - 0x803)
Verifying Program Memory (0x0 - 0x13)
Verifying Program Memory (0x800 - 0x803)
Programming Debug Executive (0x-F00 - 0xFFF)
Verifying Debug Executive (0xF00 - 0xFFF)
Programming Debug Vector
Verifying Debug Vector
Programming Configuration Memory
Verifying Configuration Memory
Running Target
PK2Error0028: Unable to enter debug mode
Debug mode entered, DE Version = 0.0.0
PICkit 2 Ready
__CONFIG _CONFIG1, _CPD_OFF & _CP_OFF & _LVP_OFF & _WDT_OFF & _WRT_PROTECT_OFF & _INTRC_IO & _BODEN_OFF
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?