Wed May 15, 2013 9:09 pm
TITLE "Write to port D"
list p = 16f877
include <p16f877.inc>
ORG 0 ;START ADDRESS
GOTO START ;START OF PROGPAM
ORG 20H
START CALL INITP ;INITIALISE PORTS
REPEAT MOVLW #55H ;SET OUTPUT TO 55H
MOVWF PORTD ;WRITE TO PORT C
GOTO REPEAT ;REPEAT FOREVER
INITP
MOVLW 0 ;MAKE PORT D OUTPUT
MOVWF TRISD ;DO IT
RETURN ;RETURN
END
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.