Author Topic: ICP Improvements  (Read 13031 times)

Je Gold

  • Full Member
  • ***
  • Posts: 135
    • View Profile
ICP Improvements
« on: December 27, 2006, 07:44:11 am »
There are 2 application notes from NXP(Philips) which describes using the MCB900 with a simple transistor circuit and prog90x.hex bridge code. AN10258_1.pdf and AN10258_2.pdf.   AN10258_2.pdf seems to be the final and the MCB900 uses a NPN transistor to switch Vdd on the target being programmed.....

The NPN does not make a good Vdd switch...... and  the prog90x.hex code programs the Vdd switch (p2.3) as  quasi-bidirectional (weak hi-side drive)..... and  Vbe drop of ~0.6v

A classic load switch   NPN-PNP circuit overcomes the problems of weak drive from p2.3 and has less voltage drop across the switch.

See the Vdd switch circuit  attached.... note the resistor values may need to be adjusted to suit the transistors used.

Perhpas NXP (Philips) or some one else on this forum may consider a complete ICP application with improvements gained over the last year...  We know ICP is an issue for many first time users (just look how many forum members post questions on ICP).

Regards
Joe


Je Gold

  • Full Member
  • ***
  • Posts: 135
    • View Profile
Re: ICP Improvements - Proposed Circuit
« Reply #1 on: January 03, 2007, 09:17:50 am »
In regards to my previous post above - I have had some time to do a spice simulation on the AN10258_2.pdf. MCB900 Bridge circuit .... and YES! the output does not look very poor (as I suspected).

I then spice modeled an other circuit using the "Classic PNP-NPN Load Switch" configuration... and I have assumed the MCB900 ports are configured to Quasi Bidirectional (as ver 1.6 of the bridge code prog90x.hex).

I table my findings and proposed ISP-ICP bridge circuit (improvement)  attached.

Regards
Joseph (joe)....... :o

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2124
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: ICP Improvements
« Reply #2 on: January 03, 2007, 09:33:44 am »
Thanks Joe! If you would like your work to be listed in the resources section of the site, please email me a Word document or PDF file that I can upload.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

rbtamd

  • Jr. Member
  • **
  • Posts: 25
    • View Profile
Re: ICP Improvements
« Reply #3 on: April 17, 2007, 12:07:11 pm »

I believe itīs important also check the value of C10 in card MCB900. The right value is 10 uF, please check the link

http://www.keil.com/support/docs/2765.htm

Many MCB900 boards have 100 nF, and the power supply isnīt very stable. This is very important to enter in ICP mode.

Roberto Muņoz

Rob Revens

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
Re: ICP Improvements - Proposed Circuit
« Reply #4 on: May 13, 2007, 01:28:49 am »
I table my findings and proposed ISP-ICP bridge circuit (improvement)  attached.

Hi Joe,

I've built and used your proposed circuit with success, but with one observation. Without the amended circuit connected, LED P2.3 lights to indicate ICP entry. With the cable connected it doesn't light at all. Has anyone else found this, or have I messed up building my cable?

Thanks,

Rob.

Je Gold

  • Full Member
  • ***
  • Posts: 135
    • View Profile
Re: ICP Improvements
« Reply #5 on: May 13, 2007, 06:03:18 am »
Sorry Rob,

I can't recall... Ive packed up my MCB900 at the moment.

PS... there's a better ICP note on the Resources Page of Flash Magic.

Joe

Rob Revens

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
Re: ICP Improvements
« Reply #6 on: May 13, 2007, 09:01:44 am »
Thanks for looking Joe. I'll check it again...

pak

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
    • Email
Re: ICP Improvements
« Reply #7 on: May 14, 2007, 07:25:27 pm »
Hi Joe,
        I am interested in ICP to program lpc devices. According to your comment
Quote
ICP
-----
ICP is very much more complicated in hardware.....  but does not need a stable core clock source and the PCK and PDA are synchronously clocked in side the LPC932A1 when programmed.

  Do you have any comment or caution to build ICP?

Thanks,
pak

Je Gold

  • Full Member
  • ***
  • Posts: 135
    • View Profile
Re: ICP Improvements
« Reply #8 on: May 15, 2007, 05:00:15 am »
Hi Pak,

Please look at the resources page on the Flashtool web site (flashmagic)....  I have some documents listed there.

Also search the this forum for the key words  "ICP" you are bound to get lots of information.

Joe

pak

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
    • Email
Re: ICP Improvements
« Reply #9 on: May 16, 2007, 12:34:36 am »
Hi Joe,
          Thanks for input, I have searched and read through about ICP. According to AN10258_2.pdf, I have to use lpc932 for ICP. Is it possible to use other lpc like lpc936? And have you tried MOSFET instead of using BJT?

Thanks,
pak

Je Gold

  • Full Member
  • ***
  • Posts: 135
    • View Profile
Re: ICP Improvements
« Reply #10 on: May 16, 2007, 01:53:17 am »
Hi Pak,

Yes, you can use LPC932a1, LPC935 and LPC936 as the "Bridge ICP Hardware" in the MCB900..... to program other LPC900 parts using ICP method.

I haven't tried  but, yes other people have used a P-channel Mosfet in place of the PNP transistor..... bare in mind some Mosfets do require substantial voltage to "swtich" on  - check the Vgs switch on spec's.

Joe

pak

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
    • Email
Re: ICP Improvements
« Reply #11 on: May 26, 2007, 08:38:53 am »
Hi,
        If ICP can program most lpc9xx, is it possible to program ISP code to lpc chip? After that, the chip can be used in ISP mode. I have been tried on PIC chip from microchip, but not on lpc one. In PIC, I used bootloader and ICD2 (In Circuit Debugger). Bootloader is easily used to flash chip via rs 232. If any corruption of bootloader program, I use ICD2 to program bootloader on PIC and recover the bootloader again. Any idea?

Regards,
pak

Je Gold

  • Full Member
  • ***
  • Posts: 135
    • View Profile
Re: ICP Improvements
« Reply #12 on: May 26, 2007, 11:57:39 pm »
Yes,

You can use  ICP to "reload" the ISP code back in to the LPC900 series micro's.

The ISP hex files are on the NXP web site somewhere...

Check this Adobe PDF doc http://www.nxp.com/acrobat_download/applicationnotes/AN10337_1.pdf


Joe

« Last Edit: May 27, 2007, 12:06:11 am by Je Gold »

LucasNorton

  • Jr. Member
  • **
  • Posts: 1
    • View Profile
Re: ICP Improvements
« Reply #13 on: August 05, 2013, 11:16:36 am »
There are 2 application notes from NXP(Philips) which describes using the MCB900 with a simple transistor circuit and prog90x.hex bridge code. AN10258_1.pdf and AN10258_2.pdf.   AN10258_2.pdf seems to be the final and the MCB900 uses a NPN transistor to switch Vdd on the target being programmed.....

The NPN does not make a good Vdd led light...... and  the prog90x.hex code programs the Vdd switch (p2.3) as  quasi-bidirectional (weak hi-side drive)..... and  Vbe drop of ~0.6v

A classic load switch   NPN-PNP circuit overcomes the problems of weak drive from p2.3 and has less voltage drop across the switch.

See the Vdd switch circuit  attached.... note the resistor values may need to be adjusted to suit the transistors used.

Perhpas NXP (Philips) or some one else on this forum may consider a complete ICP application with improvements gained over the last year...  We know ICP is an issue for many first time users (just look how many forum members post questions on ICP).

Regards
Joe


hello friend what are the latest ICP improvements? I am trying to get some detailed information so please help if you ca
« Last Edit: August 06, 2013, 09:02:42 am by LucasNorton »

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2124
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: ICP Improvements
« Reply #14 on: March 04, 2014, 12:48:03 am »
I don't believe there have been any changes to ICP.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com