This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TPS65381 Example Source spna176 lock/unlock registers



The example sources for spna176 (Interfacing TPS65381 With Hercules™ Microcontrollers)

to lock/unlock the TPS65381 registers via SPI is like this:

Lock:  ecmpIfSetRegister(ECMP_REGISTER_LOCK, 0xAA);
Unlock: cmpIfSetRegister(ECMP_REGISTER_UNLOCK, 0x55);

The TPS65381 datasheet states:
Lock: 0x55
Unlock 0xAA

Does the datasheet show the correct values (are the source example data bytes swapped) ?

Thanks.

  • Hi,

    eval-rico-werk said:

    The example sources for spna176 (Interfacing TPS65381 With Hercules™ Microcontrollers)

    to lock/unlock the TPS65381 registers via SPI is like this:

    Lock:  ecmpIfSetRegister(ECMP_REGISTER_LOCK, 0xAA);
    Unlock: cmpIfSetRegister(ECMP_REGISTER_UNLOCK, 0x55);

    Correct!

    The TPS65381 datasheet states:
    Lock: 0x55
    Unlock 0xAA

    Wrong!

    Does the datasheet show the correct values (are the source example data bytes swapped) ?

    Thanks.

    please see as below.

    Thanks.

    Jay

  • Thanks for your Help....