[En-Nut-Discussion] Port Usage
Ole Reinhardt
ole.reinhardt at embedded-it.de
Mon Mar 2 11:17:39 CET 2009
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
of 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
what you not have explicitly enabled, will just be used as I/O ports. In
boot up configuration every port will be configured as input, without
pullups.
Bye,
Ole Reinhardt
--
_____________________________________________________________
| |
| Embedded-IT Hard- und Softwarelösungen |
| |
| Ole Reinhardt 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 |
|_____________________________________________________________|
More information about the En-Nut-Discussion
mailing list