Author Topic: Problem in programming Flash of P89C668  (Read 5031 times)

Inder

  • Jr. Member
  • **
  • Posts: 1
    • View Profile
Problem in programming Flash of P89C668
« 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.

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2163
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Problem in programming Flash of P89C668
« Reply #1 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
Embedded Systems Academy, Inc.
support at esacademy dot com

erikm

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Re: Problem in programming Flash of P89C668
« Reply #2 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
erik

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2163
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Problem in programming Flash of P89C668
« Reply #3 on: November 21, 2007, 08:17:45 am »
I believe it is P2.6 and P2.7.

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