Skip to content

Instantly share code, notes, and snippets.

@sficarro
Created June 28, 2020 02:05
Show Gist options
  • Save sficarro/5ffcbd29015d7ba65b7c0a8b5bbb119d to your computer and use it in GitHub Desktop.
Save sficarro/5ffcbd29015d7ba65b7c0a8b5bbb119d to your computer and use it in GitHub Desktop.
Hello world light LED in assembly on DEMO BOARD 18F45K20
include <p18F45K20.inc>
CONFIG FOSC = INTIO67
CONFIG WDTEN = OFF, LVP = OFF
org 0
Start:
CLRF PORTD
MOVLW b'00000000'
MOVWF TRISD
BSF LATD,7
BSF LATD,5
BSF LATD,3
BSF LATD,0
GOTO $
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment