Page 1 of 1

SuperPro IO Problem.

Posted: Mon May 06, 2013 11:57 pm
by danlee58
I am trying to set P0.29 high in my C program. P1.20, P1.23, & P1.25 are OK, but P0.29doesn't go High when the program states HIGH(29).

I set the PINSEL as:

#include "LPC17xx.h"
PCB_PINSEL1 = 0x00240000;
PCB_PINSEL3 = 0xF0000030;

My shield board plugs into a header on the SuperPro, and uses P0.29, P1.20, P1.23, & P1.25 to drive a ULN2003. All connections appear OK. P0.29 does not go High even when the shield is unplugged.

Re: SuperPro IO Problem.

Posted: Tue May 07, 2013 2:05 am
by basicchip
From the help files (also in the NXP user manual)

Pin limitations
P0.29 and P0.30 direction control must be done in parallel, they can be both outputs or both inputs, but not mixed.


So to make P0.29 an output you also have to make P0.30 an output.