Hi again, I am sorry for that PORTB/PINB exhange thing !! I have tested it and it dosn't make any different. Can someone tell me if I should be using SIGNAL when working with the Nut-OS or not ? /Lars