At 06:36 PM 5/20/06 +0000, jstamos111 wrote:
>Hey guys,
>
>This problem has me completely baffled. Hopefully you can help.
>
>I have an LPC2106 running on a board of my own design and am using
>Keil tools to compile the code. Here's my very short code:
>
>void main() {
>PINSEL0 &= 0x00000000;
>IODIR0 = 0xFFFFFFFF;
>IOSET0 = 0xFFFFFFFF;
>while(1);
>}
>
>The problems when I run this code all IO ports turn on except P0.2,
>P0.3 and P0.26. Any idea why? I tried looking in the documentation
>but couldn't find anything specific about these ports not working for
>IO. I thought maybe the problem was what I had the pins connected to
>(a CPLD) so I made sure to put the connected CPLD pins as inputs and
>even disconnected one pin completely and still the same problem. I
>have multiple boards and it does it for at least two of them.
Well P0.2 & P0.3 are open collector so they'll need pull-ups. See
http://www.open-research.org.uk/ARMuC/LPC2100Tips.html
P0.26 I don't see anything off hand unless you have JTAG enabled.
Robert
" 'Freedom' has no meaning of itself. There are always restrictions, be
they legal, genetic, or physical. If you don't believe me, try to chew a
radio signal. " -- Kelvin Throop, III
http://www.aeolusdevelopment.com/Message
Re: [lpc2000] Broken IO Pins?
2006-05-20 by Robert Adsett
Attachments
- No local attachments were found for this message.