SuperPro IO Problem.

Questions about the BASICtools and MakeItC
Post Reply
danlee58
Posts: 210
Joined: Thu Jan 17, 2013 2:29 am

SuperPro IO Problem.

Post 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.



basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Re: SuperPro IO Problem.

Post 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.

Post Reply