Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Bit logic...

2005-06-13 by Dave VanHorn

At 11:33 AM 6/12/2005, James Hatley wrote:
>Hello,
>
>You may be able to toggle a port bit by writing a 1 to the corresponding
>PINx bit. I've not seen it documented anywhere except in the m2560 document.
>You might want to try it to see if it works on all AVR processors.

Hmm. It's only an improvement on toggling a bit that's in an unknown 
state though.
If you know, then sbi portx,y or cbi portx,y is just as fast.

It's also a tie on pulsing the bit, two instructions either way.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.