AMagill 4 Posted November 17, 2010 Share Posted November 17, 2010 Why bother with the pull-up/pull-down resistors on the switches? You could drop them from your circuit and set: P1OUT |= 0x08; // Pull P1.3 resistor high P1REN = 0x78; // Enable internal resistors for P1.3, P1.4, P1.5, P1.6 gatesphere 1 Quote Link to post Share on other sites
gatesphere 45 Posted November 17, 2010 Author Share Posted November 17, 2010 Why bother with the pull-up/pull-down resistors on the switches? I realized that after I had already done the write-up and posted it. But I think the resistors are just fine. They don't really bother me, aesthetically speaking, and I just feel more satisfied knowing that the hardware is there, and working. Thanks, though! Quote Link to post Share on other sites
Joby Taffey 8 Posted November 23, 2010 Share Posted November 23, 2010 @gatesphere A relevant tale: http://www.ee.ryerson.ca/~elf/hack/ktoast.html :-) Quote Link to post Share on other sites
simpleavr 399 Posted November 23, 2010 Share Posted November 23, 2010 hilarious. the computer engineer must be using CCS (got class explorer and nice gui) and the advisor would be using mspgcc. Quote Link to post Share on other sites
bluehash 1,581 Posted November 23, 2010 Share Posted November 23, 2010 Nice find Joby. Unfortunately, that sometimes spills out into the real world, where a client starts demanding more and more features. Quote Link to post Share on other sites
GeekDoc 226 Posted November 23, 2010 Share Posted November 23, 2010 Ha ha ha ha ha ha... umm, wait... :? I have a Computer Science degree... But, at least I know when "keep it simple, stupid" applies! Quote Link to post Share on other sites
gatesphere 45 Posted November 23, 2010 Author Share Posted November 23, 2010 Hahahahaha nice. Sadly true, though. As a computer scientist myself, I try to think like a minimalist. The coder who codes least, codes best. Also, if something works, don't fix it. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.