Flash Magic Forum

In-System Programming Support => P89V51Rx2/P89LV51Rx2 => Topic started by: Mark Moulding on September 21, 2005, 12:34:17 PM

Title: Programmatic reset of P89V51RD2 in ISP
Post by: Mark Moulding on September 21, 2005, 12:34:17 PM
I notice that the more recent FlashMagic versions have the ability to reset the 89V51RD2 microcontroller.   I'd like to know the ISP command to accomplish this, since I haven't been able to locate it on the Philips webs site.  (Doesn't mean it's not there, just that I couldn't find it...)

The system I'm producing uses a high-level application running on a PC, with a machine controlled by an 89V51RD2 communicating to the PC via the serial port.  I wrote the ISP download routines into my application to provide the user with field-installable firmware updates, but it would be nice to automatically reset the processor when the download is complete.

I'm sure that a new Intel hex record (or a sub-function within the existing ones) must have been added to the protocol, and this must be what FlashMagic uses.  Anyone know what the command record is?

Thanks!
--
Mark

Title: Re: Programmatic reset of P89V51RD2 in ISP
Post by: Jan Waclawek on September 22, 2005, 12:54:29 AM
:0000000BF5

It's right there at the end of ISP commands table... Always download the latest datasheet! (it was missing in datasheet rev.1 but the current is rev.3)

I have prepared also a more complex table containing the ISP and IAP commands for various ISP-able '51 derivatives, maybe it might be of some help: http://www.efton.sk/51comp/rd2comp.htm (the excel original is at the end of the table, you can make an excerpt just for the V51).

Jan Waclawek
Title: Re: Reset circuitry
Post by: leslie on October 30, 2005, 09:01:13 PM
HI !!

I wanna to seek advise on the reset circuity.

Currently, i'm using the 89C52RC2, and i'm using the reset circuit based on the RC circuit which typically give me the 100ms time constant...
but i found unser some circumstances or glitches, it will spoilt the memory location or it accidentally put the MCU in ISP Mode...

Do i have to use the Watchdog chip which i prefer not to... or anyother ways i can avoid this probs !!
Title: Re: Programmatic reset of P89V51RD2 in ISP
Post by: erikm on October 31, 2005, 06:09:03 AM
Do i have to use the Watchdog chip which i prefer not to

NO, but you DO need a supervisor chip.

There are many "tripods" out there that provide the reset function without watchdoging.

Erik
Title: Re: Programmatic reset of P89V51RD2 in ISP
Post by: Jan Waclawek on November 01, 2005, 02:14:10 AM
> ...tripods...

...such as MAX810 and the uncountable clones of it...


Jan Waclawek
Title: Re: Programmatic reset of P89V51RD2 in ISP
Post by: Mark Moulding on November 01, 2005, 05:47:37 PM
Thanks for the prompt reply!  (Actually, as you can see by the date of this message, it wasn't prompt to me, but I guess I needed to explicitly flush my browser's cache in order to see the responses.)

This was exactly what I needed, and I'm now off to incorporate it into my application's built in firmware upgrade function.

Thanks again!

Mark Moulding
Title: Re: Programmatic reset of P89V51RD2 in ISP
Post by: on November 02, 2005, 10:23:08 PM
Hello  !!!help me !!