OzGrant 22 Posted August 16, 2015 Share Posted August 16, 2015 G'day, some port bits get set before the setup() can clear them. The same condition happens with the Blink sketch. The first lines in setup() are P6DIR = 0xFF; P6OUT = 0x0; P3DIR = 0xFF; P3OUT = 0x0; And after setup() has run the outputs are correct and the sketch works 100% But for a brief moment before setup() runs for the first(and only time) I get a few bits set on the port. Normally it would not matter but the ports are used to vary the volume and I get a thump each time I switch on. Also when reset switch is pressed (and held down)the same port bits switch high My thoughts is that I have a crook 5529, and will replace it as soon as I get a new one. Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.