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

george diam gnagiag at yahoo.gr
Sat Nov 22 21:00:19 CET 2003


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



More information about the En-Nut-Discussion mailing list