On Jun 16, 2011, at 10:31 AM, Tim Mitchell wrote:
> Haven't done this on AVR32 but on ARM you just use bitwise anding and oring to change the port bits you are interested in, leaving the others unaffected.
Others are not exactly unaffected. Its still a read-modify-write and if the others are inputs then writing a 1 back to their port may have unintended consequences such as enabling pullups, or a 0 will disable pullups.
--
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.