LPC2148 Inputs stuck low on some boards
2006-03-15 by stephan2148
Hi, Does anyone have an idea why on a few of my pcbs two inputs for switches are stuck low? Another pcb works fine, and my 10K pullups -pullup. The code on the different boards is the same. The pins are P0.15 and P0.16. Also, on reset pins are supposed to be inputs right? I press reset, and still stuck low while the 3.3V is on the other end of the pullup. Sound familiar at all? Here is some of my code: PINSEL0_bit.P0_15 = 0;//make GPIO for button PINSEL1_bit.P0_16 = 0;//make GPIO for button IO0DIR_bit.P0_15 = 0;//make inputs IO0DIR_bit.P0_16 = 0; IO0DIR_bit.P0_12 = 1;//set RSSSHUTDOWN to output IO0SET=(1<<15);//set buttons high IO0SET=(1<<16); Thanks for looking, Steve