Total members 11895 |It is currently Wed Dec 04, 2024 9:27 am 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




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
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 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     -  



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