Searching \ for 'Gotcha not2' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=gotcha+not2
Search entire site for: 'Gotcha not2'.

Truncated match.
PICList Thread
'Gotcha not2'
2000\03\14@181822 by John Orhan

flavicon
face
part 0 260 bytes content-type:application/octet-stream;                                                John

Content-Type: application/octet-stream;
       name="WAT2.ASM"
Content-Disposition: attachment;
       filename="WAT2.ASM"

Attachment converted: birth:WAT2.ASM (????/----) (00007AB8)

2000\03\14@182843 by smerchock, Steve

flavicon
face
part 0 1625 bytes
<P><FONT SIZE=2>John,</FONT>
</P>

<P><FONT SIZE=2>When is the hr_2 sub-routine called?</FONT>
</P>

<P><FONT SIZE=2>Steve</FONT>
</P>

<P><FONT SIZE=2>{Original Message removed}

2000\03\14@184328 by John Orhan

flavicon
face
Hi there,

What happens is the photodiode (labelled 'sun') senses daylight which starts
multiples of  2 hour delay routines totaling around 10 hours making the
device turn on the water at approx' 5:30 afternoon time for around half an
hour. It then waits for dark by polling sun again to turn on the lamps. Very
simple code that has been stripped to its bare essentials to avoid the
possibility of errors.


Regards    John

{Original Message removed}

2000\03\14@193901 by Rich Leggitt

picon face
By chance a 12 bit core? If so, you have stack overflow.

On Wed, 15 Mar 2000, John Orhan wrote:

{Quote hidden}

2000\03\14@202757 by Jinx

face picon face
All calls and gotos in the timing loops seem to be accounted for,
each call is resolved by a return, there don't appear to be more
than 3 returns pending on the stack at any time. This was an F84 ?

Although it may not affect this problem, if 1 minute is the smallest
timing period required, might an in-line multiple-counter routine
be more readable, rather than calls to smaller time increments, or
do the 770us and 200ms routines have uses outside of the main
loop ?

Are the "movlw b'11111111' " and "movwf work1" instructions
after "bsf lamps" left-overs after editing, and used after another
goto, not the "goto main" which follows them ?

Have external devices got pull-downs/pull-ups so that no lingering
signals are around on inputs ? From what I remember of the original
post the problem happens after some time. Is something charging
up. A high impedance somewhere that needs p/u or p/d ?

Or at least some filtering to block spikes from mechanics that may be
read as input signals, particularly  on mclr. If mclr is spiked and one or
more inputs have unwanted levels on them from said spike it may send
the program off into a black hole if it branches unexpectedly on reset.
How's the filtering on the PSU?

Perhaps use LEDs on any spare pins as an indicator of s/w flow, eg
LED on when delay is executed or program passes through certain
points.

My 4 cents worth (current exchange rate US$=NZ$0.49)

2000\03\14@225529 by John Orhan

flavicon
face
8 bit core. PIC16C84

               -----Original Message-----
               From:   Rich Leggitt [.....rleggittKILLspamspam.....CONCENTRIC.NET]
               Sent:   Wednesday, 15 March 2000 11:40
               To:     EraseMEPICLISTspam_OUTspamTakeThisOuTMITVMA.MIT.EDU
               Subject:        Re: Gotcha not2

               By chance a 12 bit core? If so, you have stack overflow.

               On Wed, 15 Mar 2000, John Orhan wrote:

               > Date: Wed, 15 Mar 2000 10:15:14 +1100
               > From: John Orhan <JOrhanspamspam_OUTEDM.COM.AU>
               > Reply-To: pic microcontroller discussion list
<@spam@PICLISTKILLspamspamMITVMA.MIT.EDU>
               > To: KILLspamPICLISTKILLspamspamMITVMA.MIT.EDU
               > Subject: Gotcha not2
               >
               > Hi PICsters,
               > As promised, attached is the code for the watering system
that just don't
               > go. If no-one can fault it, I will have to look for other
sources of gotcha.
               >  <<WAT2.ASM>>
               >
               >                                                 John
               >

2000\03\15@002839 by picxpert

picon face
Actually, a 'C84 is a 14-bit core with an 8-bit-wide data bus - the
instructions are the part that is 14-bits wide.

-Randy Glenn
RemoveMEPICxpertTakeThisOuTspamtechie.com - http://i.am/PICxpert

Ineptitude is a sure indicator of intellect.
===========
To unsubscribe, send a message containing the text "unsubscribe PICLIST" to
spamBeGoneLISTSERVspamBeGonespamMITVMA.MIT.EDU

{Original Message removed}

2000\03\15@085301 by smerchock, Steve

flavicon
face
part 0 6760 bytes
<P><FONT SIZE=2>John,</FONT>
<BR><FONT SIZE=2>I didn't see in your code the setting of &quot;STATUS,RP0&quot;</FONT>
<BR><FONT SIZE=2>for using initializing the ports. You can't change a </FONT>
<BR><FONT SIZE=2>ports I/O function internally unless you set the &quot;STATUS&quot;</FONT>
<BR><FONT SIZE=2>registers &quot;RP0&quot; bit. Try this:</FONT>
</P>

<P><FONT SIZE=2>start&nbsp;&nbsp; bsf&nbsp;&nbsp;&nbsp;&nbsp; clrf&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; porta</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>clrf&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; portb</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>status,rp0</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>movlw&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0xff</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>movwf&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trisb</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>movlw&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x00</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>movwf&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trisa</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>bcf&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; status,rp0</FONT>
<BR><FONT SIZE=2>;continue on!!!</FONT>
</P>

<P><FONT SIZE=2>You need to equate the &quot;STATUS&quot; register like you did portb.</FONT>
<BR><FONT SIZE=2>Also you wnat to make RP0 equal to whatever bit it is in your</FONT>
<BR><FONT SIZE=2>processor.</FONT>
</P>

<P><FONT SIZE=2>Also, you have a goto &quot;main&quot;,.... but I don't see anything called main.</FONT>
</P>
<BR>

<P><FONT SIZE=2>Steve</FONT>
</P>
<BR>

<P><FONT SIZE=2>{Original Message removed}

2000\03\15@091607 by smerchock, Steve

flavicon
face
part 0 7426 bytes
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Kosmerchock, Steve [<A HREF="TakeThisOuTSteve.KosmerchockEraseMEspamspam_OUTRFSWORLD.COM">RemoveMESteve.KosmerchockspamTakeThisOuTRFSWORLD.COM</A>]</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, March 15, 2000 6:52 AM</FONT>
<BR><FONT SIZE=2>To: PICLISTEraseMEspam.....MITVMA.MIT.EDU</FONT>
<BR><FONT SIZE=2>Subject: Re: Gotcha not2</FONT>
</P>
<BR>

<P><FONT SIZE=2>John, </FONT>
<BR><FONT SIZE=2>I didn't see in your code the setting of &quot;STATUS,RP0&quot; </FONT>
<BR><FONT SIZE=2>for using initializing the ports. You can't change a </FONT>
<BR><FONT SIZE=2>ports I/O function internally unless you set the &quot;STATUS&quot; </FONT>
<BR><FONT SIZE=2>registers &quot;RP0&quot; bit. Try this: </FONT>
<BR><FONT SIZE=2>start&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; clrf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; porta </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; clrf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; portb </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bsf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; status,rp0 </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; movlw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0xff </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; movwf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trisb </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; movlw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x00 </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; movwf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trisa </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bcf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; status,rp0 </FONT>
<BR><FONT SIZE=2>;continue on!!! </FONT>
<BR><FONT SIZE=2>You need to equate the &quot;STATUS&quot; register like you did portb. </FONT>
<BR><FONT SIZE=2>Also you wnat to make RP0 equal to whatever bit it is in your </FONT>
<BR><FONT SIZE=2>processor. </FONT>
<BR><FONT SIZE=2>Also, you have a goto &quot;main&quot;,.... but I don't see anything called main. </FONT>
</P>
<BR>

<P><FONT SIZE=2>Steve </FONT>
</P>
<BR>

<P><FONT SIZE=2>-----Original Message----- </FONT>
<BR><FONT SIZE=2>From: John Orhan [<A HREF="EraseMEJOrhanspamEDM.COM.AU">RemoveMEJOrhanEraseMEspamEraseMEEDM.COM.AU</A>] </FONT>
<BR><FONT SIZE=2>Sent: Tuesday, March 14, 2000 4:43 PM </FONT>
<BR><FONT SIZE=2>To: RemoveMEPICLISTspam_OUTspamKILLspamMITVMA.MIT.EDU </FONT>
<BR><FONT SIZE=2>Subject: Re: Gotcha not2 </FONT>
</P>
<BR>

<P><FONT SIZE=2>Hi there, </FONT>
<BR><FONT SIZE=2>What happens is the photodiode (labelled 'sun') senses daylight which starts </FONT>
<BR><FONT SIZE=2>multiples of&nbsp; 2 hour delay routines totaling around 10 hours making the </FONT>
<BR><FONT SIZE=2>device turn on the water at approx' 5:30 afternoon time for around half an </FONT>
<BR><FONT SIZE=2>hour. It then waits for dark by polling sun again to turn on the lamps. Very </FONT>
<BR><FONT SIZE=2>simple code that has been stripped to its bare essentials to avoid the </FONT>
<BR><FONT SIZE=2>possibility of errors. </FONT>
</P>
<BR>

<P><FONT SIZE=2>Regards&nbsp;&nbsp;&nbsp; John </FONT>
<BR><FONT SIZE=2>-----Original Message----- </FONT>
<BR><FONT SIZE=2>From: Kosmerchock, Steve [<A HREF="RemoveMESteve.KosmerchockTakeThisOuTspamspamRFSWORLD.COM">EraseMESteve.KosmerchockspamspamspamBeGoneRFSWORLD.COM</A>] </FONT>
<BR><FONT SIZE=2>Sent: Wednesday, 15 March 2000 10:29 </FONT>
<BR><FONT SIZE=2>To: RemoveMEPICLISTKILLspamspamMITVMA.MIT.EDU </FONT>
<BR><FONT SIZE=2>Subject: Re: Gotcha not2 </FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>John, </FONT>
<BR><FONT SIZE=2>When is the hr_2 sub-routine called? </FONT>
<BR><FONT SIZE=2>Steve </FONT>
<BR><FONT SIZE=2>-----Original Message----- </FONT>
<BR><FONT SIZE=2>From: John Orhan [ <A HREF="JOrhanSTOPspamspamspam_OUTEDM.COM.AU">spamBeGoneJOrhanSTOPspamspamEraseMEEDM.COM.AU</A> &lt;<A HREF="KILLspamJOrhanspamBeGonespamEDM.COM.AU">EraseMEJOrhanspamEraseMEEDM.COM.AU</A>&gt; ] </FONT>
<BR><FONT SIZE=2>Sent: Tuesday, March 14, 2000 4:15 PM </FONT>
<BR><FONT SIZE=2>To: @spam@PICLIST@spam@spamspam_OUTMITVMA.MIT.EDU </FONT>
<BR><FONT SIZE=2>Subject: Gotcha not2 </FONT>
</P>
<BR>

<P><FONT SIZE=2>Hi PICsters, </FONT>
<BR><FONT SIZE=2>As promised, attached is the code for the watering system that just don't </FONT>
<BR><FONT SIZE=2>go. If no-one can fault it, I will have to look for other sources of gotcha. </FONT>
<BR><FONT SIZE=2>&nbsp;&lt;&lt;WAT2.ASM&gt;&gt; </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; John </FONT>
</P>

</BODY>
</HTML>
</x-html>

2000\03\15@092607 by Michael Rigby-Jones

flavicon
face
part 0 10501 bytes
<P><FONT SIZE=2 FACE="Arial">John,</FONT><FONT FACE="Arial"><BR>
</FONT><FONT SIZE=2 FACE="Arial">I didn't see in your code the setting of &quot;STATUS,RP0&quot;</FONT><FONT FACE="Arial"><BR>
</FONT><FONT SIZE=2 FACE="Arial">for using initializing the ports. You can't change a</FONT><BR>
<FONT SIZE=2 FACE="Arial">ports I/O function internally unless you set the &quot;STATUS&quot;</FONT><FONT FACE="Arial"><BR>
</FONT><FONT SIZE=2 FACE="Arial">registers &quot;RP0&quot; bit. Try this:</FONT><FONT FACE="Arial"> </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">startÊÊ bsfÊÊÊÊ clrfÊÊÊ ÊÊÊÊÊÊÊ porta</FONT><FONT FACE="Arial"><BR>
ÊÊÊÊÊÊÊ ÊÊÊÊÊÊÊ </FONT><FONT SIZE=2 FACE="Arial">clrfÊÊÊ ÊÊÊÊÊÊÊ portb</FONT><FONT FACE="Arial"><BR>
ÊÊÊÊÊÊÊ ÊÊÊÊÊÊÊ </FONT><FONT SIZE=2 FACE="Arial">status,rp0</FONT><FONT FACE="Arial"><BR>
ÊÊÊÊÊÊÊ ÊÊÊÊÊÊÊ </FONT><FONT SIZE=2 FACE="Arial">movlwÊÊ ÊÊÊÊÊÊÊ 0xff</FONT><FONT FACE="Arial"><BR>
ÊÊÊÊÊÊÊ ÊÊÊÊÊÊÊ </FONT><FONT SIZE=2 FACE="Arial">movwfÊÊ ÊÊÊÊÊÊÊ trisb</FONT><FONT FACE="Arial"><BR>
ÊÊÊÊÊÊÊ ÊÊÊÊÊÊÊ </FONT><FONT SIZE=2 FACE="Arial">movlwÊÊ ÊÊÊÊÊÊÊ 0x00</FONT><FONT FACE="Arial"><BR>
ÊÊÊÊÊÊÊ ÊÊÊÊÊÊÊ </FONT><FONT SIZE=2 FACE="Arial">movwfÊÊ ÊÊÊÊÊÊÊ trisa</FONT><FONT FACE="Arial"><BR>
ÊÊÊÊÊÊÊ ÊÊÊÊÊÊÊ </FONT><FONT SIZE=2 FACE="Arial">bcfÊÊÊÊ ÊÊÊÊÊÊÊ status,rp0</FONT><FONT FACE="Arial"><BR>
</FONT><FONT SIZE=2 FACE="Arial">;continue on!!!</FONT><FONT FACE="Arial"> </FONT>
</P>
<BR>
</UL>
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Yes you can, you use the TRIS instruction which dosen't require you to set the page bits.&nbsp; This is what John used in his initialisation.</FONT></P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Mike Rigby-Jones</FONT>
</P>
<UL>
<P><FONT SIZE=2 FACE="Arial">You need to equate the &quot;STATUS&quot; register like you did portb.</FONT><FONT FACE="Arial"><BR>
</FONT><FONT SIZE=2 FACE="Arial">Also you wnat to make RP0 equal to whatever bit it is in your</FONT><FONT FACE="Arial"><BR>
</FONT><FONT SIZE=2 FACE="Arial">processor.</FONT><FONT FACE="Arial"> </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Also, you have a goto &quot;main&quot;,.... but I don't see anything called main.</FONT><FONT FACE="Arial"> </FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">Steve</FONT><FONT FACE="Arial"> </FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">{Original Message removed}

2000\03\15@164750 by John Orhan

flavicon
face
Hi there,
I always though that the tris command did that. Please forgive my ignorance,
but could you explain further?


John

{Original Message removed}

2000\03\15@175307 by smerchock, Steve

flavicon
face
part 0 14234 bytes
<P><FONT SIZE=2>John,</FONT>
</P>

<P><FONT SIZE=2>You as well as Michael are correct. It does do that. It was obsoleted</FONT>
<BR><FONT SIZE=2>by Microchip, and I forgot about it. Please forgive MY ignorance ;-)</FONT>
</P>

<P><FONT SIZE=2>This code:</FONT>
<BR><FONT SIZE=2>start&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; clrf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; porta </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; clrf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; portb </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bsf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; status,5 </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; movlw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0xff </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; movwf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trisb </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; movlw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x00 </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; movwf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trisa </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bcf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; status,5 </FONT>
</P>

<P><FONT SIZE=2>You set up the &quot;TRISA&quot; and &quot;TRISB&quot; to control if the </FONT>
<BR><FONT SIZE=2>pins are output or input. Same as &quot;tris&quot; except that Microchip </FONT>
<BR><FONT SIZE=2>advises against using it for &quot;future&quot; compatability.</FONT>
</P>

<P><FONT SIZE=2>Steve</FONT>
</P>

<P><FONT SIZE=2>{Original Message removed}

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...