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.

TMS570LS3137: ABOUT TPS65381 OPEN TIME AND CLOSE TIME

Part Number: TMS570LS3137

Hello

 I see the paper of tps65381  5.4.12 

 open time  min=126*0.55*0.95=65ms

  close time min=32*0.55*0.95=16.72ms

 but I use the ti demo 

uint16_t OPEN_WINDOW_CONFIG = 40U;
uint16_t CLOSE_WINDOW_CONFIG =15U;
ecmpInit();
ecmpUnLockRegisters();
while (ecmpIfGetRegister(ECMP_SAFETY_STATUS5) != 7);
ecmpWdgWindowConfig(OPEN_WINDOW_CONFIG, CLOSE_WINDOW_CONFIG);         

open time 40ms  close 15ms       this code can run normal.

 why isnot consistent with paper??

  • Hello,

    The watchdog sequence begins with a Window 1 followed by a Window 2. The time periods of Window 1 (tWIN1) and Window 2 (tWIN2) are configurable with the WD_WIN1_CFG and WD_WIN2_CFG. You can use any valid value for RT[6:0] and RW[4:0].

    For Open-window (or window 1), the maximum period is RT[6:0]*0.55*1.05, and minimum window period is (RT[6:0]-1)*0.55*0.95

    For Close-window (or window 2), the maximum period is (RW[4:0]+1)*0.55*1.05, and minimum window period is (RW[4:0]+1)*0.55*0.95

    The default settings for RT[6:0] is 0x3F (63), and for RW[4:0] is 0x18 (24)           

    40 (RT) and 15 (RW) used in the example code should be fine.                                     

  • Hello

    but the   window1    min=?,max=?  I think the max period is 0x7F(127)*0.55*1.05=73.34   .is it right??

  • I still have some doubts.I set q&a mode.The relationship between window one and window two, because window one needs to complete three communications.How much more window one is than window two

  • Hi Whong,

    Window 2 setting must be scaled with Window 1 to allow timing margin. Please consult the experts in TPS65x team about this question.