Author Topic: Problem with programming P89C668  (Read 4718 times)

eagle

  • Jr. Member
  • **
  • Posts: 16
    • View Profile
Problem with programming P89C668
« on: September 15, 2006, 12:27:51 am »
Hi,

While i was programming the uC (ISP), I canceled the transmision. From this moment the uC don't go in the programming mode, and it executes in all moment, in program mode and run mode.

Somebody know the solution?, because in this moment i cannot program the device.

Thanks.

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2156
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Problem with programming P89C668
« Reply #1 on: September 15, 2006, 11:26:56 am »
When you canceled the operation did you click on Cancel in FM or did you remove the power to the device or reset it?

Possibility 1:

If you removed power or reset the device and you did it at just the wrong moment then the boot vector might be corrupted. Only a parallel programmer can tell you for sure.

Possibility 2:

If this is your first time programming this device then you might not have the ISP entry method working properly. Devices come from the factory with the status bit set, so they reset into ISP mode. After programming FM clears the status bit. To get the device back into ISP mode you need to meet the conditions described in the datasheet. For example are you pulling P2.6 AND P.27 high at reset?

Embedded Systems Academy, Inc.
support at esacademy dot com

eagle

  • Jr. Member
  • **
  • Posts: 16
    • View Profile
Re: Problem with programming P89C668
« Reply #2 on: September 18, 2006, 12:36:16 am »
Hello,

All conditions for ISP mode are correct, because i have programmed the device more times.

I canceled the programming when i clicked "Cancel" in FM. And now, with the good condicions for ISP mode, the uc don't enter in this state.

How do i do that the boot vector are correct?

Hi.

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2156
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Problem with programming P89C668
« Reply #3 on: September 18, 2006, 08:31:00 am »
That is odd. When you click on Cancel in FM it waits for the current operation to complete before stopping. Care has been made to ensure that the boot vector isn't corrupted, and this has been tried and tested for a long time now for the 89C66x devices.

Why did you chose to cancel the operation? Did it take longer than you had seen in the past?

The only way to see the boot vector is to use a parallel programmer.

Embedded Systems Academy, Inc.
support at esacademy dot com

eagle

  • Jr. Member
  • **
  • Posts: 16
    • View Profile
Re: Problem with programming P89C668
« Reply #4 on: September 20, 2006, 12:31:16 am »
Thanks, but I have already solved the problem. I have changed the uC, because i haven't the parallel programmer

Muchas Gracias.