Total members 11793 |It is currently Thu Aug 22, 2019 5:49 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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





Author:
Mastermind
User avatar Posts: 2707
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  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 to file using php     -  
 Write to system log     -  
 Write a program in C++     -  
 write a program in c++ for the following...     -  
 how to write jsp in Eclipse     -  
 File write read     -  
 Read and Write to file using ASP     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
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