UJA1167 WATCHDOG

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UJA1167 WATCHDOG

Jump to solution
2,196 Views
PINKMAN
Contributor III

hello,expert:

there is strange that when i set the UJA1167 watchdog period as 8ms,and i test the reset pin i found the reset time is 19ms.when  i set period as 64ms,the reset time is 128ms?it is weird!!!

Reset time is about  twice as long as the timeout time

PINKMAN_0-1729670051148.png

PINKMAN_1-1729670262082.png

 

 

0 Kudos
Reply
1 Solution
2,093 Views
JozefKozon
NXP TechSupport
NXP TechSupport

Hello Pinkman,

thank you very much for your research. Yes, it makes sense. The Watchdog overflow must happened twice. This is also confirmed in the Table 5. in the UJA1167 datasheet. The first watchdog overflow is detected and the WDF bit is set to 1. Then with the second Watchdog overflow the reset is conducted. This confirms your conclusion. Thank you for pointing me to that. 

JozefKozon_0-1730960456829.png

With Best Regards,

Jozef

View solution in original post

0 Kudos
Reply
3 Replies
2,173 Views
JozefKozon
NXP TechSupport
NXP TechSupport

Hello Pinkman,

this is indeed a strange behavior. Could you please share a scope of the SPI pins when you are writing to the Watchdog control register? Please confirm what watchdog mode you are setting. Are you able to set the watchdog period to the 4096ms? NWP to 0111? 

JozefKozon_0-1729747669453.png

The waveform you shared comes from the RSTN pin, right?

Please share the Main status register (address 03h), Watchdog status register (address 05h) and System event status register (address 61h) content before and after reset.

JozefKozon_1-1729747992346.pngJozefKozon_2-1729748010808.png

JozefKozon_3-1729748265534.png

With Best Regards,

Jozef

 

0 Kudos
Reply
2,112 Views
PINKMAN
Contributor III

This reset cycle is indeed twice as long as the timer, as I found the following information in the reference manual, can you help me to confirm if my understanding is correct.

My understanding is that in timeout mode, the first overflow generates a WDF, and only the second overflow generates a reset. This explains why I set the timeout to 64ms and the reset to around 128ms!

PINKMAN_0-1730871573395.png

PINKMAN_1-1730871595936.pngPINKMAN_2-1730871725460.png

PINKMAN_3-1730871975000.png

 

 

2,094 Views
JozefKozon
NXP TechSupport
NXP TechSupport

Hello Pinkman,

thank you very much for your research. Yes, it makes sense. The Watchdog overflow must happened twice. This is also confirmed in the Table 5. in the UJA1167 datasheet. The first watchdog overflow is detected and the WDF bit is set to 1. Then with the second Watchdog overflow the reset is conducted. This confirms your conclusion. Thank you for pointing me to that. 

JozefKozon_0-1730960456829.png

With Best Regards,

Jozef

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1979988%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUJA1167%20WATCHDOG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1979988%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehello%2Cexpert%3A%3C%2FP%3E%3CP%3Ethere%20is%20strange%20that%20when%20i%20set%20the%20UJA1167%20watchdog%20period%20as%208ms%2Cand%20i%20test%20the%20reset%20pin%20i%20found%20the%20reset%20time%20is%2019ms.when%26nbsp%3B%20i%20set%20period%20as%2064ms%EF%BC%8Cthe%20reset%20time%20is%20128ms%EF%BC%9Fit%20is%20weird!!!%3C%2FP%3E%3CP%3EReset%20time%20is%20about%26nbsp%3B%20twice%20as%20long%20as%20the%20timeout%20time%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PINKMAN_0-1729670051148.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PINKMAN_0-1729670051148.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306362i2C00BBA79030D3A3%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22PINKMAN_0-1729670051148.png%22%20alt%3D%22PINKMAN_0-1729670051148.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PINKMAN_1-1729670262082.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PINKMAN_1-1729670262082.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306363iD307F52664501158%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22PINKMAN_1-1729670262082.png%22%20alt%3D%22PINKMAN_1-1729670262082.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1989814%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20UJA1167%20WATCHDOG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1989814%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHello%20Pinkman%2C%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Ethank%20you%20very%20much%20for%20your%20research.%20Yes%2C%20it%20makes%20sense.%20The%20Watchdog%20overflow%20must%20happened%20twice.%20This%20is%20also%20confirmed%20in%20the%20Table%205.%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fdata-sheet%2FUJA1167.pdf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EUJA1167%20datasheet%3C%2FA%3E.%20The%20first%20watchdog%20overflow%20is%20detected%20and%20the%20WDF%20bit%20is%20set%20to%201.%20Then%20with%20the%20second%20Watchdog%20overflow%20the%20reset%20is%20conducted.%20This%20confirms%20your%20conclusion.%20Thank%20you%20for%20pointing%20me%20to%20that.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JozefKozon_0-1730960456829.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_0-1730960456829.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F309114iB182355138CF25F3%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JozefKozon_0-1730960456829.png%22%20alt%3D%22JozefKozon_0-1730960456829.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWith%20Best%20Regards%2C%3C%2FP%3E%0A%3CP%3EJozef%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1988483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20UJA1167%20WATCHDOG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1988483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThis%20reset%20cycle%20is%20indeed%20twice%20as%20long%20as%20the%20timer%2C%20as%20I%20found%20the%20following%20information%20in%20the%20reference%20manual%2C%20can%20you%20help%20me%20to%20confirm%20if%20my%20understanding%20is%20correct.%3C%2FP%3E%3CP%3EMy%20understanding%20is%20that%20in%20timeout%20mode%2C%20the%20first%20overflow%20generates%20a%20WDF%2C%20and%20only%20the%20second%20overflow%20generates%20a%20reset.%20This%20explains%20why%20I%20set%20the%20timeout%20to%2064ms%20and%20the%20reset%20to%20around%20128ms!%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PINKMAN_0-1730871573395.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PINKMAN_0-1730871573395.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308841iF1DDBA79090F16A9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22PINKMAN_0-1730871573395.png%22%20alt%3D%22PINKMAN_0-1730871573395.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PINKMAN_1-1730871595936.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PINKMAN_1-1730871595936.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308842iE1C8614693203273%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22PINKMAN_1-1730871595936.png%22%20alt%3D%22PINKMAN_1-1730871595936.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PINKMAN_2-1730871725460.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PINKMAN_2-1730871725460.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308844i62BCA9CBD2159CE7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22PINKMAN_2-1730871725460.png%22%20alt%3D%22PINKMAN_2-1730871725460.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PINKMAN_3-1730871975000.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PINKMAN_3-1730871975000.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308845i573344DC7EDC8F75%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22PINKMAN_3-1730871975000.png%22%20alt%3D%22PINKMAN_3-1730871975000.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1980835%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20UJA1167%20WATCHDOG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1980835%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Pinkman%2C%3C%2FP%3E%0A%3CP%3Ethis%20is%20indeed%20a%20strange%20behavior.%20Could%20you%20please%20share%20a%20scope%20of%20the%20SPI%20pins%20when%20you%20are%20writing%20to%20the%20Watchdog%20control%20register%3F%20Please%20confirm%20what%20watchdog%20mode%20you%20are%20setting.%20Are%20you%20able%20to%20set%20the%20watchdog%20period%20to%20the%204096ms%3F%20NWP%20to%200111%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JozefKozon_0-1729747669453.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_0-1729747669453.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306638i8D728D8307C8D2FC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JozefKozon_0-1729747669453.png%22%20alt%3D%22JozefKozon_0-1729747669453.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20waveform%20you%20shared%20comes%20from%20the%20RSTN%20pin%2C%20right%3F%3C%2FP%3E%0A%3CP%3EPlease%20share%20the%20Main%20status%20register%20(address%2003h)%2C%20Watchdog%20status%20register%20(address%2005h)%20and%20System%20event%20status%20register%20(address%2061h)%20content%20before%20and%20after%20reset.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JozefKozon_1-1729747992346.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_1-1729747992346.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306639i6BE93EC1F5321742%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JozefKozon_1-1729747992346.png%22%20alt%3D%22JozefKozon_1-1729747992346.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JozefKozon_2-1729748010808.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_2-1729748010808.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306640iD475155E60BBDBDF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JozefKozon_2-1729748010808.png%22%20alt%3D%22JozefKozon_2-1729748010808.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JozefKozon_3-1729748265534.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JozefKozon_3-1729748265534.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306645iE58D9BD7726A28EA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JozefKozon_3-1729748265534.png%22%20alt%3D%22JozefKozon_3-1729748265534.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWith%20Best%20Regards%2C%3C%2FP%3E%0A%3CP%3EJozef%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E