De file heet ook geen pic16f1827.inc...
De porta equate moet weg, want die bestaat al. (haakje achter END ook)
Gaat hier zonder problemen door de assembler heen...
pic asm code:
;**********************************************************************
#include <p16f1827.inc> ;processor specific variable definitions
__CONFIG _CONFIG1, _FOSC_HS & _WDTE_OFF & _BOREN_ON & _PWRTE_ON & _CP_OFF & _CPD_OFF & _MCLRE_OFF & _IESO_ON
__CONFIG _CONFIG2, _LVP_OFF & _PLLEN_OFF & _BORV_19
;**********************************************************************
teller EQU 40h
teller2 EQU 41h
ORG 00h ;beginadres kiezen
BSF 03,5 ;kies bank 1
CLRF trisa ;alles pinnen poort A uitgang maken
BCF 03,5 ;kies bank 0
knipper MOVLW 01h ;laad 01h in W
MOVWF porta ;zet de waarde van W
;in porta, oftewel zet de led aan
MOVLW 0FFh ;laad 0FFh in W
MOVWF teller2
verder MOVLW 0FFh
MOVWF teller
opnieuw DECFSZ teller, 1
GOTO opnieuw
DECFSZ teller2, 1
GOTO verder
MOVLW 00h ;laad 00h in W
MOVWF porta ;zet de waarde van W
;in porta, oftwel doe de led uit
MOVLW 0FFh ;1 cycle
MOVWF teller2 ;1 cycle
again MOVLW 0FFh ;1 cycle
MOVWF teller ;1 cycle
again2 DECFSZ teller, 1 ;1 cycle
GOTO again2 ;2 cycles
DECFSZ teller2, 1
GOTO again
GOTO knipper
END