[En-Nut-Discussion] RE: Problem with the Port E

Harald Kipp harald.kipp at egnite.de
Thu Nov 27 00:04:49 CET 2003


For a temporary fix, make a copy the two routines
   void UartAvrEnable(u_short base)
   void UartAvrDisable(u_short base)
from dev/uartavr.c and use them in your application code.

Initially register the UART device as usual.
UartAvrDisable(0) will disable the UART and let you use
them as normal port pins. UartAvrEnable(0) will enable
the UART again.

However, I have no idea about your hardware. Note,
that the Rx pin of the RS232 driver on the TTL side
will always work in output mode. Thus, you need to
disconnect this from PE0 of the ATmega, in case you
want to use PE0 as an output.

Harald




More information about the En-Nut-Discussion mailing list