avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] swap bits


From: Marek Michalkiewicz
Subject: Re: [avr-gcc-list] swap bits
Date: Wed, 22 Jan 2003 22:04:09 +0100 (CET)

> reverse_r16:
>       out porta, r16
>       in r16, portb

Wrong - one more word/cycle needed:

        out PORTA,r16
        nop
        in r16,PINB

Synchronization logic requires one cycle delay between "out" and "in"
if we want to read the value just output, and not the previous one.

Marek

avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]