Switch to full style
PIC Assembly Articles
Post a reply

Write data to ports

Wed May 15, 2013 9:09 pm

Write data to ports
Code:

TITLE 
"Write to port D"
list 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




Post a reply
  Related Posts  to : Write data to ports
 Read input from SWITCHES and PORTS     -  
 interminert connection to gsm network using virtual ports     -  
 Read input from ports and print it on the LEDs     -  
 Write a program in C++     -  
 write a program in c++ for the following...     -  
 how to write jsp in Eclipse     -  
 Write to file using php     -  
 Write to system log     -  
 File write read     -  
 Read and Write to file using ASP     -