[En-Nut-Discussion] Problem with Ethernut-Board: Pin 3 on PortB

Roman Walpuski Roman.Walpuski at SMA.DE
Tue Sep 29 12:29:37 CEST 2009


Hi all!
I have a problem with pin 3 at PortB. Whenever i set pin 3 and pin 4 to high, 
voltage on pin3 drops to ca 1 volts. when pin4 is not set to high, everything is fine. 
 
The same occurs on 3 different Ethernut-Boards, so i dont think it is an hardware-fault.
 
The Board is a Ethernut 2.1 RevB, Nut/OS is Version  4.6.4
my Code:
 
#include <stdio.h>
#include <io.h>
 
void main()
{
   sbi(DDRB,0);
   sbi(DDRB,1);
   sbi(DDRB,2);
   sbi(DDRB,3);
   sbi(DDRB,4);
   sbi(DDRB,5);
   sbi(DDRB,6);
   sbi(DDRB,7);
 
   sbi(PORTB,3);
   sbi(PORTB,4);
 
   while(1)
   {
      int i = 0;
   }
}
with leds attached to the pins, every pin works fine, except pin3 which goes down when pin4 is high.
 
Has anybody noticed something like this before? What am i doing wrong?
 
 
Thanks in advance
 
Roman


______________________________________________________________________________

SMA Solar Technology AG
Aufsichtsrat: Dr. Erik Ehrentraut (Vorsitzender)
Vorstand: Guenther Cramer, Peter Drews, Roland Grebe, Pierre-Pascal Urbon, Marko Werner
Handelsregister: Amtsgericht Kassel HRB 3972
Sitz der Gesellschaft: 34266 Niestetal
USt-ID-Nr. DE 113 08 59 54
WEEE-Reg.-Nr. DE 95881150
______________________________________________________________________________




More information about the En-Nut-Discussion mailing list