Hallo

Zitat Zitat von Aus dem [url=http://www.atmel.com/dyn/resources/prod_documents/8271.pdf
Datenblatt des Mega88 Seite 3[/url]]1.1.4 Port C (PC5:0)
Port C is a 7-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The
PC5...0 output buffers have symmetrical drive characteristics with both high sink and source
capability. As inputs, Port C pins that are externally pulled low will source current if the pull-up
resistors are activated. The Port C pins are tri-stated when a reset condition becomes active,
even if the clock is not running.
"Die Port C Pins sind TriState, wenn ein Reset-Zustand aktiv ist..."

Während eines Resets sind sie also TriState, aber was passiert danach? Auf Seite 47 unter Reset steht dann noch:

"The I/O ports of the AVR are immediately reset to their initial state when a reset source goes
active. This does not require any clock source to be running."

Aber welches die "their initial state" sind habe ich nicht gefunden.

Einfachster Test wäre wohl direkt am Progammstart den Pin manuel auf Eingang ohne PullUp zu schalten:

DDRC &= ~(1<<PC0);
PORTC &= ~(1<<PC0);

Gruß

mic