PICmicro & dsPIC >> PICmicro & dsPIC

The Disclaimer



Reged: Jul 10 2006
Posts: 7
16F877A PORTE & PORTA working funny
      Thu Jul 13 2006 12:15 PM

My problem is, weird.

A code like this:

Code:


TRISE = 0;
TRISA = 0;

...

RA0 = 1;
RA1 = 1;
RE1 = 1;
RE0 = 1;




will set RA1 to 1 and RE0 to 1. But RA0 & RE1 to 0.

This dosn't make much sense, since what I said to the PIC (this one is a 16f877a) is to set first RA0 to 1, then RA1 to 1, then RE1 to 1 and finally RE0 to 1, making all RA0, RA1, RE0, RE1 equal to 1.


Any helo will be aprecieted.

Post Extras Print Post   Remind Me!     Notify Moderator


Entire topic
Subject Posted by Posted on
* 16F877A PORTE & PORTA working funny The Disclaimer Thu Jul 13 2006 12:15 PM
. * * Re: 16F877A PORTE & PORTA working funny wjboucher   Tue May 11 2010 02:30 PM
. * * Re: 16F877A PORTE & PORTA working funny Dan HenryModerator   Tue May 11 2010 04:05 PM
. * * Re: 16F877A PORTE & PORTA working funny jtemplesModerator   Thu Jul 13 2006 12:33 PM
. * * Re: 16F877A PORTE & PORTA working funny Janis   Sat Jul 15 2006 04:09 PM
. * * Re: 16F877A PORTE & PORTA working funny Frank Everest   Sun Jul 16 2006 01:33 AM
. * * Re: 16F877A PORTE & PORTA working funny jtemplesModerator   Sat Jul 15 2006 04:25 PM
. * * Re: 16F877A PORTE & PORTA working funny The Disclaimer   Thu Jul 13 2006 12:41 PM
. * * Re: 16F877A PORTE & PORTA working funny jtemplesModerator   Thu Jul 13 2006 12:46 PM

Extra information
0 registered and 128 anonymous users are browsing this forum.

Moderator:  mikerj, jtemples, jeff, Dan Henry, Andrew L 



Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Thread views: 6009

Rate this thread

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5