[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] Bug? with switch statement
From: |
Nicholas Parker |
Subject: |
RE: [avr-gcc-list] Bug? with switch statement |
Date: |
Sat, 14 Dec 2002 08:39:56 +0800 |
Hi,
If you write to PORTC you cannot cannot correctly read from PINC on the next
instruction.
This is due to the AVR's internal 'port synchroniser' architecture -see data
sheet!
You must insert a single NOP between the write to PORTC and the read from
PINC for it to
work correctly.
Cheers, Nick Parker
avr-gcc-list at http://avr1.org
RE: [avr-gcc-list] Bug? with switch statement, Hendrix, Jeff, 2002/12/17