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

William Basser wbasser at adelphia.net
Sat Nov 22 21:45:51 CET 2003


Bits 0 and 1 are used for the UART0.  If you are using that port,
initialization of the UART will force those pins to their alternate use.

-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of george diam
Sent: Saturday, November 22, 2003 3:00 PM
To: en-nut-discussion at egnite.de
Subject: [En-Nut-Discussion] Problem with the Port E



Hello to all,

I am trying to write a program to control, some inputs
and output, using the ethernut board. I have divided
the available ports Port B, Port D and Port E into
inputs and output, and to be more specific :

- Port B has all its Bits setted to be Inputs
- Port D has all its Bits setted to be Outputs
- And Port E, because of a problem that I have read in
  this forum, concerning pins E 5 and E 3, has its
Bits     
  setted to be :
    Bit 0, Bit 1, Bit 2 -> Outputs and
    Bit 4, Bit 6, Bit 7 -> Inputs, and 
    Bit 3, Bit 5 are set to be Inputs without ever
    taking them into consideration.

  the part of my code that sets them is:

  PORTB=0x00;
  DDRB =0x00;
  PINB =0x00;

  PORTD=0x00;
  DDRD =0xFF;
  PIND =0x00;
  
  PORTE=0x00;
  DDRE =0x07;
  PINE =0x00;

The problem that I am facing is that all the Bits of
the port E are not working, which means that everyone
of them is OFF except Bit 0, Bit 1 are always ON.

Please tell me if there is any problem with Port E
that I should know about, or I am configuring them in
a wrong way!!!

Thank you in advance.

 
P.S. I am not including the rest of my program because
it is actually about 520 and more lines.

____________________________________________________________
Do You Yahoo!?
Αποκτήστε τη δωρεάν @yahoo.gr διεύθυνση σας στο http://www.otenet.gr
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion




More information about the En-Nut-Discussion mailing list