Gast
#1245752
Hallo,
da leider mein testboard kaputt ist wollte ich euch fragen ob das
programm so funktioniert
list p=16f84A
#include <p16f84a.inc>
__config _PWRTE_ON & _WDT_OFF & _XT_OSC
ZAEHL1 equ 0c ;Erster Zaehler für Warteschleife
ZAEHL2 equ 0d ;Zweiter Zaehler für Warteschleife
;******************************************Initialisierung**************
*************
Org 0
init
bsf STATUS, RP0
movwf B'00000000'
movwf TRISB
bcf STATUS, RP0
clrf PORTB
;*****************************************Programm**********************
*************
loop
bsf PORTB, 0
call Loop1
bcf PORTB, 0
call Loop1
goto loop
Loop1
decfsz ZAEHL1,1 ;Ziehe 1 ab von 255
goto Loop1 ;wenn nicht 0, springe zu Loop1
decfsz ZAEHL2,1 ;Ziehe 1 ab von 255
goto Loop1
return
end
Danke im vorraus