Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
Posted: Thu Dec 22, 2005 7:58 am
X0R(portc, 0b000 0011);
Now it won't change any of the other bits. If portc is mapped to the actual port the XOR itself will change the port pins without affecting the tristate register. _________________ The search for better is endless. Instead simply find very good and get the job done.
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum