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: Klaus Rudolph
Subject: Re: [avr-gcc-list] swap bits
Date: Sun, 02 Mar 2003 03:37:06 +0100

Hi Marek,

a bit ago you answered:
> 
> > 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.
> 
I´ve read that in a datasheet, but can you give me a tip where this
topic is described
from atmel? I can´t find that anymore. Currently I play a bit with
simulavr
so that is a good time to think about that again.

Bye
        Klaus


reply via email to

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