Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

lpc 2129 program not responding

Status
Not open for further replies.

fiyasmp

Newbie level 5
Joined
Jun 13, 2009
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,353
hi all,

my lpc2129 does't respond to the program. but i can program it with lpc2000 flash utility. but when i compare the flash it says "compare the flash failed".

my program for led on is

int main()
{
IODIR0=0xc;
IOSET0=0xc;
while(1);
}

i put the P0.14 in high state...have to make any other pins high/low?..plz help me..
 

Did you configure the pins properly first?
 

you mean configure using PINSEL ??

whether i have to use any other register to configure??
 

P0.14 DCD1 Data Carrier Detect input for UART1.
EINT1 External interrupt 1 input. LOW on this pine while RESET is LOW
forces on-chip boot-loader to take over control of the part after reset.

P0.14 is for interrupt and uart

You can use this for general I/O:

44 O P1.21 PIPESTAT0 Pipeline Status, bit 0. Standard I/O port with internal pull-up.
40 O P1.22 PIPESTAT1 Pipeline Status, bit 1. Standard I/O port with internal pull-up.
36 O P1.23 PIPESTAT2 Pipeline Status, bit 2. Standard I/O port with internal pull-up.
 

As well as this:

Port 1: Port 1 is a 32-bit bi-directional I/O port with individual direction controls for each bit. The
operation of port 1 pins depends upon the pin function selected via the Pin Connect Block.
Only pins 16 through 31 of port 1 are available.
 

my device sometimes work and sometimes don't....

what's the reason for this?
 

is the pins need any external pull-up?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top