gnupic: Using pins / ports


Previous by date: 25 Jan 2002 15:39:33 -0000 help with gpsim, Belotti, Diego
Next by date: 25 Jan 2002 15:39:33 -0000 Re: help with gpsim, Scott Dattalo
Previous in thread: 25 Jan 2002 15:39:33 -0000 Using pins / ports, Christian Marschalek
Next in thread:

Subject: Re: Using pins / ports
From: Scott Dattalo ####@####.####
Date: 25 Jan 2002 15:39:33 -0000
Message-Id: <Pine.LNX.4.33.0201250729210.5365-100000@ruckus.brouhaha.com>

On Fri, 25 Jan 2002, Christian Marschalek wrote:

> Hi all!
>
> How can I set just one pin with GPASM?
> And how can I use a port?
>
> I'm totaly stuck on this one ... :(


Christian,

   bsf PORTA, 2  ; set bit 2 on port A

   movwf  PORTA  ; write W to port A

gpasm handles I/O's just the same as MPASM.


If you're new to PIC's, I'd suggest reading data sheets, PICLIST FAQ's, or
Myke Predko's book to get familiar with the in's and out's of PIC's. gpsim
can also help by providing a convenient way to see how a program runs.

Scott


Previous by date: 25 Jan 2002 15:39:33 -0000 help with gpsim, Belotti, Diego
Next by date: 25 Jan 2002 15:39:33 -0000 Re: help with gpsim, Scott Dattalo
Previous in thread: 25 Jan 2002 15:39:33 -0000 Using pins / ports, Christian Marschalek
Next in thread:


Powered by ezmlm-browse 0.20.