mega48/88 mit externem Takt PB7 nutzbar?

OP Persönliche Seite #836438
Lesenswert?
• ▲
▼
Ich frage mich gerade ob PB7 nutzbar ist als I/O wenn ich den Controller 
extern Takte (also NICHT mit Quarz!).
Im Datenblatt steht leider nur das PB7 nicht nutzbar ist wenn es als 
Clock verwendet wird. Aber bei externem Takt brauch ich ja nur PB6.
So ganz klar wirds leider nicht ob bei einstellen der Fuse auf externen 
Takt PB6 und 7 nicht mehr nutzbar sind als I/O...
Persönliche Seite #836585
Lesenswert?
• ▲
▼
Hallo,

Zitat aus dem Datenblatt:
--
13.3.1 Alternate Functions of Port B

[...]

- XTAL2/TOSC2/PCINT7 – Port B, Bit 7
XTAL2: Chip clock Oscillator pin 2. [...] When used as a clock pin, the 
pin can not be used as an I/O pin.

TOSC2: Timer Oscillator pin 2. Used only if internal calibrated RC 
Oscillator is selected as chip clock source, and the asynchronous timer 
is enabled by the correct setting in ASSR. [...] In this mode, a crystal 
Oscillator is connected to this pin, and the pin cannot be used as an 
I/O pin.

PCINT7: Pin Change Interrupt source 7. The PB7 pin can serve as an 
external interrupt source.

If PB7 is used as a clock pin, DDB7, PORTB7 and PINB7 will all read 0.
--

Demnach sollte der Pin schon als normaler I/O verwendbar sein.

Gruß,
Roland
Gast #837322
Lesenswert?
• ▲
▼
Bemüh mal die Forumssuche mit dem Suchbegriff "externer Takt PB7" und 
klick den zweitobersten Treffer an.  Deine Frage wurde dort schon mal 
gestellt, und die Antwort darauf lautet: PB6 und PB7 sind nur bei 
internem Takt als I/O-Pin nutzbar.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren