FS8530 pmic watchdog disable

cancel
Showing results for 
Search instead for 
Did you mean: 

FS8530 pmic watchdog disable

809 Views
Contributor II

Hi,

I am working on PMIC which is interfaced with SPI.

I would like to know how to disable the PMIC watchdog.

Can any one send sequence of commands to disable the watchdog.

Thanks,

Ram.

Labels (1)
0 Kudos
2 Replies

171 Views
NXP Employee
NXP Employee

Hi Ram

WDW_PERIOD should be configured to 0 during INIT_FS . 

pastedImage_2.png

You can send 0x020B  to FS_WD_WINDOW  register in the INIT_FS .

The watchdog configuration requires to write in FS_WD_WINDOW and FS_NOT_WD_WINDOW registers like INIT registers.

pastedImage_1.png

Refer to the attached software driver for FS85.  

Brs

Cindy

0 Kudos

171 Views
Contributor II

Hi Cindy,

Thanks for your reply.

I have configured as per your guidelines.

The problem is PMIC resets every time.

If possible can you please share only Watchdog Disable code.

I used Simple watchdog to disable the watchdog.

To disable the watchdog we have to close the INIT_FS by good watchdog refresh, after we can able to disable watchdog.

For Good watchdog refresh I used to write default seed into answer register.

/* Performs the watchdog refresh. */
 TxDataWithoutCrc[0] = WR_FS_WD_ANSWER | 0x5AB2; /* Normal Watchdog - Default WD_SEED value */
 /* Calculate the 8-bit CRC with POLYNOMIAL 0x1D */
 crc = CalculateCRC8(TxDataWithoutCrc);
 TxData[0] = (TxDataWithoutCrc[0] << 8) | crc;
 SpiTxWord(TxData);

Please help me, how to resolve PMIC reset problem.

Thanks & Regards,

Ramanjineyulu.

0 Kudos