raska
05-31-07, 01:02 PM
Hi,
I've had some findings/problems recently that I'm still searching for an answer to. I've read this thread (www.newmicros.com/discussion/showthread.php?t=1211) that had some relevant info, but didn't find any others in a search. I have a LP2129 mounted to a PCB of which I've isolated the P0.21 I/O pin (or so I think) which floats at 1V when the board is powered up. The pin will not ever go lower when the memory is blank (as bought or erased using Flash Magic) , and will take 250ms to go low each time the power is on if the I immediately initialize it as a low output. I have been trying to fix this by adding the following code right at the beginning of the main, but it still operates as described above. I also tried a weak 100K pull down on the pin, and am just about to experiment with stronger ones, but the 100K made no difference. I've worked with some similar circuits before, and not seen this pin floating at that level (for any significant amount of time anyways) before.
PINSEL0 = 0x00000000;
PINSEL1 = 0x00000000;
PINSEL2 = 0x00000000;
IODIR0 = 0xFFFFFFFF;
IODIR1 = 0xFFFFFFFF;
IOSET0 = 0x00000000;
IOSET1 = 0x00000000;
Is this normal? Am I missing something in initializing? Do I have other problems?
Thanks.
I've had some findings/problems recently that I'm still searching for an answer to. I've read this thread (www.newmicros.com/discussion/showthread.php?t=1211) that had some relevant info, but didn't find any others in a search. I have a LP2129 mounted to a PCB of which I've isolated the P0.21 I/O pin (or so I think) which floats at 1V when the board is powered up. The pin will not ever go lower when the memory is blank (as bought or erased using Flash Magic) , and will take 250ms to go low each time the power is on if the I immediately initialize it as a low output. I have been trying to fix this by adding the following code right at the beginning of the main, but it still operates as described above. I also tried a weak 100K pull down on the pin, and am just about to experiment with stronger ones, but the 100K made no difference. I've worked with some similar circuits before, and not seen this pin floating at that level (for any significant amount of time anyways) before.
PINSEL0 = 0x00000000;
PINSEL1 = 0x00000000;
PINSEL2 = 0x00000000;
IODIR0 = 0xFFFFFFFF;
IODIR1 = 0xFFFFFFFF;
IOSET0 = 0x00000000;
IOSET1 = 0x00000000;
Is this normal? Am I missing something in initializing? Do I have other problems?
Thanks.