Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <p18F4550.inc>
- CONFIG WDT = OFF ; disablewatchdogtimer
- CONFIG MCLRE = ON ; MCLEAR Pin on
- CONFIG DEBUG = OFF ; DisableDebugMode
- CONFIG FOSC = HS
- RES_VECT CODE 0x0000 ; processor reset vector
- goto prog_start
- MAIN_PROG CODE ; let linker place main program
- prog_start
- clrf TRISC ; set PORTC as out
- clrf PORTC ; clear PORTC
- count1 equ H'00' ; count1 address
- count2 equ H'01' ; count2 address
- goto MAIN_LOOP
- MAIN_LOOP
- incf PORTC ;incrementation du PORTC
- call my_delay ; Wait
- goto MAIN_LOOP
- my_delay
- decfsz count2
- goto my_delay
- decfsz count1
- goto my_delay
- return
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement