[Top][All Lists]
[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
- Re: [avr-gcc-list] swap bits, (continued)
- Re: [avr-gcc-list] swap bits, Klaus Rudolph, 2003/01/26
- Re: [avr-gcc-list] swap bits, Theodore A. Roth, 2003/01/26
- Re: [avr-gcc-list] swap bits, Alexandr A. Redchuck, 2003/01/26
- Re: [avr-gcc-list] swap bits, Volkmar Dierkes, 2003/01/26
- [avr-gcc-list] swap bits, Torsten Hahn, 2003/01/26