[En-Nut-Discussion] Port Usage

macsmaker at aol.com macsmaker at aol.com
Mon Mar 2 13:05:20 CET 2009


Thanks, I already figured this out. Appreciate the help.



~Pete


-----Original Message-----
From: Ole Reinhardt <ole.reinhardt at embedded-it.de>
To: Ethernut User Chat (English) <en-nut-discussion at egnite.de>
Sent: Mon, 2 Mar 2009 4:17 am
Subject: Re: [En-Nut-Discussion] Port Usage




Hello Pete,
> I'm trying to figure out how to use Port E... 
 
 I tried configuring bits 0 and 1 as inputs with the pullups disabled.
  Never got it to work. Finally changed my code to use Port D instead.
  Works.
You can just use port E0 / E1 if you disabled the serial port. In case
f NutOS you may not register DEV_USART0 or DEV_DEBUG0. 
> I realize that some ports do "double-duty." Is there a way to disable
  the alternate functions and configure Port E as a regular I/O port? I
  read the ATMEL 128 manual and I can't figure this out.
The ATMega128 will startup with all alternate functions disabled. So
hat you not have explicitly enabled, will just be used as I/O ports. In
oot up configuration every port will be configured as input, without
ullups.
Bye,
Ole Reinhardt
-- 
_____________________________________________________________
                                                             |
 Embedded-IT          Hard- und Softwarelösungen             |
                                                             |
 Ole Rei
nhardt        Tel. / Fax:        +49 (0)271  7420433 |
 Luisenstraße 29      Mobil:             +49 (0)177  7420433 |
 57076 Siegen         eMail:    ole.reinhardt at embedded-it.de |
 Germany              Web:         http://www.embedded-it.de |
                      UstID / VAT:       DE198944716         |
_____________________________________________________________|
_______________________________________________
ttp://lists.egnite.de/mailman/listinfo/en-nut-discussion




More information about the En-Nut-Discussion mailing list