gnupic: PIC program
Subject:
Re: PIC program
From:
Matt Marsh ####@####.####
Date:
23 Apr 2004 08:37:42 +0100
Message-Id: <200404230837.11420.matt@mattmarsh.net>
On Thursday 22 April 2004 14:33, Stuart Robertson wrote:
> Hi
> Would you be interested in writing a PIC program for me?
Sure:
---------------------------------------------------------
include "p16f84a.inc"
__config _CP_OFF & _PWRTE_ON & _WDT_OFF & _RC_OSC
Init
clrf PORTA
clrf PORTB
bsf STATUS,RP0 ; Select bank 1
movlw b'0000'
movwf TRISA
movlw b'0000'
movwf TRISB
bsf STATUS,RP0 ; Select bank 0
clrf INTCON
retlw 0
Start
call Init
Main
goto Main
END
---------------------------------------------------------
:-)
Matt
--
Matt N. Marsh
Email: ####@####.#### Yahoo: marshmn
Web: http://www.mattmarsh.net/ Jabber: ####@####.####
MSN: ####@####.####
ICQ: 250467363
AIM: MattMarshUK