S32K148 - EWM_OUT_b pin

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

S32K148 - EWM_OUT_b pin

Jump to solution
1,265 Views
matej_15
Contributor III

Hi!

If you could please help us regarding EWM_OUT_b pin of the External Watchdog Monitor on S32K148 SMCU.

We are not sure if this pin is in push-pull or open drain configuration and is it active high or active low?


Our current idea is to connect EWM_OUT_b to the SMCU RESET_b pin so in case EWM triggers it would reset the SMCU. This would serve as a redundancy watchdog monitor to the internal watchdog monitor. Do you see any reason not to use this configuration?

Best regards,

Matej

0 Kudos
1 Solution
1,203 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

I don't see an obvious problem, but it is still recommended that you measure the Reset_b waveform with an oscilloscope to ensure that this circuit meets the Reset_b requirements mentioned in Table 16.

View solution in original post

5 Replies
1,247 Views
matej_15
Contributor III

Hi @Robin_Shen,

 

thank you for the answer! Yes, by SMCU (Safety MCU) we mean S32K148. 

 

Actually, the idea was not to use external pull down resistor on EWM_OUT_b. It is clear that the EWM would not reset MCU's CPU and peripherals on its own. The idea was that EWM_OUT_b signal externally triggers the RESET_b as follows:

matej_15_0-1656946452269.png

 

When the board is starting-up, the PG (active low) of 3V3 power supply is keeping the S32K148 in reset (RESET_b low). After the 3V3 boots-up, the PG goes high to 3V3 and SMCU exits reset state. S32K148 starts to power-up and we assume EWM_OUT_b goes high at that point and would not trigger the RESET_b since there is no external pull-down on EWM_OUT_b pin.
When EWM triggers, it will pull EWM_OUT_b pin low which would cause RESET_b to be triggered and reset S32K148. This would act as a redundancy to the internal watchdog module. Does this idea seems plausible? 

 

Best regards,

Matej

0 Kudos
1,231 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

According to the S32K148_IO_Signal_Description_Input_Multiplexing.xlsx, EWM_OUT_b  is not available on PTC16.. EWM_OUT_b is available on those pins:

EWM_OUT_b default MUX
PTA2 ADC1_SE0 ALT4
PTA4 JTAG_TMS/SWD_DIO ALT5
PTA17 DISABLED ALT4
PTE4 DISABLED ALT7

 

I don't think you will use PTA4, default JTAG_TMS/SWD_DIO(Weak pull-up enabled)
PTA17 and PTE4 default to DISABLED (high impedance)
PTA2 defaults to ADC1_SE0, refer to the data sheet Figure 14. ADC input impedance equivalency diagram

Figure 14. ADC input impedance equivalency diagram.png
EWM_OUT_b goes high when set EWMEN bit in the CTRL register.

This is an issue on the application level. Please check if it meet the specification of RESET_b:

RESET_b.png

Best Regards,
Robin

0 Kudos
1,219 Views
matej_15
Contributor III

Hi @Robin_Shen ,

my apologies. The block diagram was taken from something else and I didn't update the pins. Here is the updated diagram:

matej_15_0-1657105285665.png

PTA17 is used as EWM_OUT_b which is by default disabled (high impedance). 

 

I agree this is an issue on the application level, but as far as you're concerned, are you seeing any reason not to use EWM_OUT_b pin to reset the MCU via RESET_b terminal?

 

Best regards,

Matej

0 Kudos
1,204 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

I don't see an obvious problem, but it is still recommended that you measure the Reset_b waveform with an oscilloscope to ensure that this circuit meets the Reset_b requirements mentioned in Table 16.

1,256 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Matej,

push-pull and active low(There is a NOTE in S32K1XXRM: EWM_OUT_b pad must be in pull down state when EWM functionality is used and when EWM is under Reset.)

Figure 20-1. EWM Block Diagram.png

20.5.1 The EWM_OUT_b Signal.png

 

The EWM differs from the internal watchdog in that it does not reset the MCU's CPU and peripherals. To reset the MCU, you need either the internal WDOG module or an external one like an SBC.

Does SMCU mean S32K148? If you connect EWM_OUT_b and external pulldown, low voltage at RESET_b will always reset S32K148.

20.2 Introduction.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------