Flash Magic Forum

In-System Programming Support => P89C51Rx+/P89C51Rx2/P89C66x/P89C6xX2/P89V66x => Topic started by: Inder on November 21, 2007, 06:36:19 AM

Title: Problem in programming Flash of P89C668
Post by: Inder on November 21, 2007, 06:36:19 AM
Hi,
I am trying program flash of P89C668, but I am not able to connect to the device. Also, I am not able to read, erase, read device signature etc. because of problem in connection. I am using crystal of 11.0592 MHz. Is there any setting required to be done for this frequency. Also I tried with some already programmed chip. In that the program sends some data to the serial port. But, I am not receiving it in Hyper terminal. Could somebody please help me out?? Waiting for reply.

Thanks and Regards,
Inder.
Title: Re: Problem in programming Flash of P89C668
Post by: Andy Ayre on November 21, 2007, 07:51:44 AM
Try 9600 baud.
Verify with a scope on the PSEN and Reset pins of the device that you are meeting the requirements in the datasheet to place it into ISP mode.
Also for this ancient device you need to pull P2.6 and P2.7 high during reset to place the device into ISP mode.

Also talk to Sumant in your company - he has managed to get Flash Magic to communicate with an 89C668.

Andy
Title: Re: Problem in programming Flash of P89C668
Post by: erikm on November 21, 2007, 08:09:56 AM
I  believe that the '668 just like the original Rx2 need P1.6 and p1.7 kept high.

Erik
Title: Re: Problem in programming Flash of P89C668
Post by: Andy Ayre on November 21, 2007, 08:17:45 AM
I believe it is P2.6 and P2.7.

Andy