How does Flash Magic reset the P89C668?

Started by Lynn Reed, March 01, 2007, 07:57:54 AM

Previous topic - Next topic

Lynn Reed

I am writing my own boot loader for a P89C668, and I would like for it to be backwards compatible with the Flash Magic tool. 

I noticed that Flash Magic has the capability to reset the P89C668.  I also noticed that the data sheet description of the supported ISP hex record commands does not include reset. 

So how do you perform a chip reset?  Are you making use of some of the undocumented ISP records and subfunctions?  And if so, which ones do I need to support in order to run Flash Magic?

Andy Ayre

Yes, there is an undocumented command. If you set the top bit of the subfunction code then it enables the watchdog timer. However it is not possible to feed the watchdog via ISP... Flash Magic uses the command to read the device signature bytes when it wants to do this.
Embedded Systems Academy, Inc.
support at esacademy dot com

Lynn Reed

I hoped that might be it.  I sure didn't want to deal with undocumented calls!

Thank you for your reply, Andy. 
You run a good forum, which supports Flash Magic quite well.