Author Topic: Adding delay before sending '?'  (Read 4521 times)

miguel

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
Adding delay before sending '?'
« 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

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2156
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Adding delay before sending '?'
« Reply #1 on: March 24, 2009, 09:02:27 am »
What is the maximum delay?

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

miguel

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
Re: Adding delay before sending '?'
« Reply #2 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 '?'

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2156
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Adding delay before sending '?'
« Reply #3 on: March 25, 2009, 10:25:15 am »
Please give 4.62 a try.

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

miguel

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
Re: Adding delay before sending '?'
« Reply #4 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