Flash Magic Forum

In-System Programming Support => LPC2xxx => Topic started by: miguel on March 22, 2009, 07:39:02 PM

Title: Adding delay before sending '?'
Post by: miguel on March 22, 2009, 07:39:02 PM
Hi,
In my custom board, the reset line of LPC2138 is controlled by MAX811 reset ic, so there is min. 140ms delay before the reset line released to hi.
The MAX811 has manual reset input that controlled by the RTS line. So i need delay about 143ms (a least)  before sending synchronization characters ('?') to entering ISP mode.
Is it possible for Flash Magic to add delay before sending '?'.
I have tried several values of T1 and T2 without any success.
thanks for your time.
Miguel
Title: Re: Adding delay before sending '?'
Post by: Andy Ayre on March 24, 2009, 09:02:27 AM
What is the maximum delay?

Andy
Title: Re: Adding delay before sending '?'
Post by: miguel on March 24, 2009, 06:42:17 PM
Thank you for the response.
The maximum delay needed would be : (Maximum MAX811 RESET pulse width) + (P0.14 sampling delay)
= 280 ms + 3 ms, make it 285 ms.
The sequence would be (CMIIW):
Assert DTR and  RTS (/RESET and P0.14 go low)
Deassert DTR (/RESET = hi)
Wait 285ms
Send '?'
Title: Re: Adding delay before sending '?'
Post by: Andy Ayre on March 25, 2009, 10:25:15 AM
Please give 4.62 a try.

Andy
Title: Re: Adding delay before sending '?'
Post by: miguel on March 26, 2009, 08:57:34 AM
Hi Andy,
Thank you for 4.62 version, it works with my board. My T1 is 1ms and T2 at least 50 ms, works reliably.
I saw that Embedded Artist's (EA) boards also use reset IC (CAT1025) to control RESET line of LPC2K, which also has delay before releasing to hi, so i think the FM 4.62 version also works with EA's boards.
Miguel