Author Topic: P89C662HBA trouble  (Read 1580 times)

a9o1o8o

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
P89C662HBA trouble
« on: January 13, 2016, 10:23:36 pm »
 OK,if I  set  security bit1 or set security bit2 or set security bit3(May be set all three security bit )when download my code to P89C662HBA,Does it will cause I can't  Handshake to MCU successuflly next time?Who can help me?

a9o1o8o

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: P89C662HBA trouble
« Reply #1 on: January 13, 2016, 10:32:06 pm »
I mean that just cant't read chip‘s Identity number or BOOT VECTOR or STATUS BYTE's value? if I set security bit

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2108
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: P89C662HBA trouble
« Reply #2 on: January 13, 2016, 11:49:31 pm »
The functionality of each bit is described in the P89C662 data sheet from NXP. Only set the security bits if you are sure what they do.

Andy
« Last Edit: January 15, 2016, 12:04:31 am by Andy Ayre »
Embedded Systems Academy, Inc.
support at esacademy dot com

a9o1o8o

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: P89C662HBA trouble
« Reply #3 on: January 14, 2016, 05:36:24 pm »
You mean that I cant't read chip‘s Identity number or BOOT VECTOR or STATUS BYTE's value?

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2108
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: P89C662HBA trouble
« Reply #4 on: January 15, 2016, 12:05:54 am »
Look at table 16 in the data sheet. It tells you exactly what each bit does. It looks to me like yes, you should still be able to use ISP and still be able to read the signature, boot vector and status byte.

A full chip erase will erase all the security bits.

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

a9o1o8o

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: P89C662HBA trouble
« Reply #5 on: January 17, 2016, 06:10:06 pm »
Can I erase the full chip through ISP this way?

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2108
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: P89C662HBA trouble
« Reply #6 on: January 18, 2016, 01:08:48 am »
According to the data sheet, yes.
Embedded Systems Academy, Inc.
support at esacademy dot com