Hi All PICers !
> From: Philippe TECHER
> Subject: Re: PORTA Question!
> And Byron A Jeff answer:
>
>>> Correct code:
>>>
>>> BSF PORTA,RA0
>>> BSF STATUS,RP0
>>> BCF TRISA,TRISA0
>>> BCF STATUS,RP0
b>
b> Yes this is the correct code, but there is again another
b> condition to respect: DON'T USE INTERRUPT DURING THIS PORION
b> OF CODE. If there is an interrup you will need to keep the
b> bit RP0 exactly in the same state. Then if you don't have
b> time critical interrupt code, you can use the following code
Why ? If You write Your interrupt routine correctly (save and
restore W & Status) it will be work fine.
Best Wishes, Alex Torres.
Kharkov, Ukraine, exUSSR.
E-Mail To : altor@cook.kharkov.ua via InterNet
or 2:461/28 via FidoNet
--- GoldED 2.50.A0531+