Find help, specifications and source code for the LPC900. The LPC900 challenges Microchip and AVR based on the worlds most popular 8-bit architecture the 80C51. With a 2-clock core the LPC900 series is a high performance, very flexible and low cost 8-bit microcontroller family. Designers using or interested in these devices are encouraged to share their know-how and ask questions.
problem in ISP programing in LPC924 Controller - chetan1317 - Dec 5 1:52:18 2007
i am facing problem in ISP programing in lpc924 controller.First time
when i gave supply to controller in flash magic then it was automatic
detact the controller and programing was done through ISP mode.But
after that i am facing problem in programing.i have already tried on
break detact method but still i am facing problem.Please give me
detailes of all the method and diagrams of hardware activation
method.please reply soon.

(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )
Re: problem in ISP programing in LPC924 Controller - Nilesh - Dec 5 2:42:58 2007
Dear Chetan,
First time you able to program becuase of Factory defualt ISP. At that time BSB bit is
set from Factory. Once you program the Microcontroller first time
Flasgmagic will clear this bit using ISP command. So next time Microcontroller will run
in User mode.
You can use 3 -Pulse hardware entry.
For Break detect you have to enble it using Flashmagic only.Image attached.
code :
#include
void init (void)
{
P1M1 = 0x00; // push pull except Rx
P1M2 = 0xFD;
}
void brkrst_init (void) // This function allows ISP entry through
// the UART break detect
{
AUXR1 |= 0x40; // enable reset on break detect
SCON = 0x50; // select the BRG as UART baud rate source
SSTAT = 0x00; //
BRGR0 = 0x70; //9600 baud at 11.0592 MHz*
BRGR1 = 0x04;
BRGCON = 0x03; // enable BRG
}
void main (void)
{
init();
brkrst_init();
while(1)
{
}
}#include
void init (void)
{
P1M1 = 0x00; // push pull except Rx
P1M2 = 0xFD;
}
void brkrst_init (void) // This function allows ISP entry through
// the UART break detect
{
AUXR1 |= 0x40; // enable reset on break detect
SCON = 0x50; // select the BRG as UART baud rate source
SSTAT = 0x00; //
BRGR0 = 0xF0; //9600 baud at 7.3728 MHz (IRC)
BRGR1 = 0x02;
BRGCON = 0x03; // enable BRG
}
void main (void)
{
init();
brkrst_init();
while(1)
{
}
}
But I will suggest use ICP Programming mode .. It is very much conviniet.
Using simple Parallel programing Cable you can do ICP programming.
Regards,
NIlesh
chetan1317 wrote:
i am facing problem in ISP programing in lpc924 controller.First time
when i gave supply to controller in flash magic then it was automatic
detact the controller and programing was done through ISP mode.But
after that i am facing problem in programing.i have already tried on
break detact method but still i am facing problem.Please give me
detailes of all the method and diagrams of hardware activation
method.please reply soon.
Regards,
Nilesh (09925049517)
Potent embedded solutions
"Sai Krupa"
B/H Vaghasi Building,
Amul dairy road,
Anand - 388001
Gujarat , India.
---------------------------------
Unlimited freedom, unlimited storage. Get it now

(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )Re: problem in ISP programing in LPC924 Controller - chetan patel - Dec 6 0:49:54 2007
Thanks Nilesh for giving me very useful information. But in hardware activation method
what type of haraware addition is required.please give me schematic of hardware
activation method.i have already tried break detact method but i don't get sucess in
programing.please help me
Thanks & Regards,
Chetan Patel
Nilesh
wrote:
Dear Chetan,
First time you able to program becuase of Factory defualt ISP. At that time BSB bit
is set from Factory. Once you program the Microcontroller first time
Flasgmagic will clear this bit using ISP command. So next time Microcontroller will run
in User mode.
You can use 3 -Pulse hardware entry.
For Break detect you have to enble it using Flashmagic only.Image attached.
code :
#include
void init (void)
{
P1M1 = 0x00; // push pull except Rx
P1M2 = 0xFD;
}
void brkrst_init (void) // This function allows ISP entry through
// the UART break detect
{
AUXR1 |= 0x40; // enable reset on break detect
SCON = 0x50; // select the BRG as UART baud rate source
SSTAT = 0x00; //
BRGR0 = 0x70; //9600 baud at 11.0592 MHz*
BRGR1 = 0x04;
BRGCON = 0x03; // enable BRG
}
void main (void)
{
init();
brkrst_init();
while(1)
{
}
}#include
void init (void)
{
P1M1 = 0x00; // push pull except Rx
P1M2 = 0xFD;
}
void brkrst_init (void) // This function allows ISP entry through
// the UART break detect
{
AUXR1 |= 0x40; // enable reset on break detect
SCON = 0x50; // select the BRG as UART baud rate source
SSTAT = 0x00; //
BRGR0 = 0xF0; //9600 baud at 7.3728 MHz (IRC)
BRGR1 = 0x02;
BRGCON = 0x03; // enable BRG
}
void main (void)
{
init();
brkrst_init();
while(1)
{
}
}
But I will suggest use ICP Programming mode .. It is very much conviniet.
Using simple Parallel programing Cable you can do ICP programming.
Regards,
NIlesh
chetan1317 wrote:
i am facing problem in ISP programing in lpc924 controller.First time
when i gave supply to controller in flash magic then it was automatic
detact the controller and programing was done through ISP mode.But
after that i am facing problem in programing.i have already tried on
break detact method but still i am facing problem.Please give me
detailes of all the method and diagrams of hardware activation
method.please reply soon.
Regards,
Nilesh (09925049517)
Potent embedded solutions
"Sai Krupa"
B/H Vaghasi Building,
Amul dairy road,
Anand - 388001
Gujarat , India.
---------------------------------
Unlimited freedom, unlimited storage. Get it now
---------------------------------
Why delete messages? Unlimited storage is just a click away.

(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )