S32K3 : SM-Rev_4 questions.

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

S32K3 : SM-Rev_4 questions.

1,652 Views
Dinesh_Guleria
NXP Employee
NXP Employee

Hi Safety team,

One of my client is not using the SAF, they want to implement the SM.

Q-1. In the Addendum_S32K3xx.xls sheet,Module Clasification section,
Safety machanism for S32K322 Microcontroller is missing. Below Micro variants are mentioned.
S32K344
S32K312
S32K342
S32K358
S32K311
S32K388

Dinesh_Guleria_0-1744260152375.png


Q-2. As per below section, talks about the redundancy. Is it applicable for ASIL B?

6.13.4.1.1 Digital inputs
Functional safety digital inputs may need to be acquired redundantly. To reduce the risk of common cause failures, the redundant channels must use GPIO/PWM functionality on two different ports. The double read digital inputs can be acquired as follows:
Table 45. Digital outputs software tests
Double Write Digital Output Redundant PORT hardware element is used to perform a double-write digital output.
Double Write PWM OutputRedundant PORT hardware element is used to perform a double-write digital output

Dinesh_Guleria_2-1744260247259.png



Q-3. ADC self test ,it’s mentioned that C self-test and the voltage self-test.
Please provide more details, what exactly we have to do in these two test.
Client want to implement this.



As per the Addendum_S32K3xx.xls sheet :--
"ADC self test (periodical test of correct ADC operation).
There are two different modes in self-test,
the C self-test and
the voltage self-test.

The self-test C algorithm tests the :--
whole conversion frontend, CDAC, comparator and data drive out.
What it does not test is most of the channel mux and the reference input,

though when compared with the voltage self-test, :---
then there is only part of the channel mux left untested

Dinesh_Guleria_3-1744260347533.png



Please suggest.

Regards,
Dinesh

Labels (1)
0 Kudos
6 Replies

462 Views
antoinedubois
NXP Employee
NXP Employee

Hi Dinesh,

for question 2 Yes I agree ASIL-B usually does not require the redundancy for ADC sampling.

for 3: @dvelazquez can you provide more information about S32K3 C-self test.

0 Kudos

217 Views
dvelazquez
NXP Employee
NXP Employee

Hi Dinesh,

First to understand ADC Self-Test I suggest reading through S32K3 Reference Manual (Rev.10), section 60.3.17 Calibration and self-test. The following table shows in more detail the steps followed by both algorithms.

dvelazquez_1-1756237986012.png

To get a better grasp of what Self-Test Algorithm C is doing it helps to look at the blocks that make up a SAR ADC. There are three main sub-blocks: a capacitive DAC, a comparator, and the SAR engine that controls the module. An example ADC block diagram of this (not exactly the one for S32K3xx devices, but useful and representative of the main blocks nonetheless) can be seen next:

dvelazquez_0-1756237753441.png

The capacitive DAC consists of N capacitors with binary weighted values. It provides an inherent track/hold function and uses the principle of charge redistribution to generate an analog output voltage to the comparator plus input.

Algorithm C (steps 0-11) sets these capacitors independently to highlight faults in the sampling capacitive DAC. For each step a sequence of pre-sampling, sampling and evaluation phases are executed. The difference/error of the individual offset value from the previously calibrated value is being returned as an ADC result that is compared with the programmed value in the self-test analog watchdog registers to detect faults.

For Algorithm C, there are recommended threshold values that can be programmed through the ADC registers:

dvelazquez_2-1756238191005.png

These depend on the stability of the supply and the reference voltage (i.e. noise introduction from the external environment). In a noisier set up, running the self-test with the default/recommended analog watchdog values may cause failures. To overcome the failures in these cases you can relax the threshold values.

For example, for STAW4R and STAW5R, setting THRH of 16d and THRL of -16 means Algorithm C will fail for an error of magnitude greater than (16/8 =2) 2LSB. Setting THRH of 32 and THRL of -32d means that Algorithm C will fail for an error of a magnitude greater than 4LSB.

For more information on Algorithm C, there’s currently not much additional documentation. For ADC in general, not just ADC self-test and in case it’s useful, here are a few other resources you can check:

16-bit SAR ADC calibration (helpful to understand how a SAR ADC works):

https://community.nxp.com/t5/Kinetis-Microcontrollers/16-bit-SAR-ADC-calibration/ta-p/1102292

Thanks,
Daniel V.

0 Kudos

1,611 Views
antoinedubois
NXP Employee
NXP Employee

1- Please use the S32K342 for S32K322

2- it is dependent of your system safety concept. The HW give you the capability to have redundant path if you need it, but he need for it is application specific. For example if you have 2 redundant ADC read, or two opposite state GPIO PWM that could be interesting. I can help you more if you expliend a bit your use case.

3-Same answer it depends of the Use Case. Can you explain a bit the customer use case (single channel or redudant), what failure mode they would like to detect, ASIL-Level diagnostic, what type of fault needs to be detected before the MCU (filtering )... There are different way to detect fault in ADC relying on self test, periodic reference read, redundancy...

0 Kudos

1,525 Views
Dinesh_Guleria
NXP Employee
NXP Employee

Hi @antoinedubois ,

Thanks for your reply.

This is what client asking and replied for point 2 & 3.

2> In General, redundancy is not required for ASIL B.
     But Micro Safety Manual talks about the redundancy.
     Is it applicable for S32K322/ASIL B micro ?


3> Provide more details about the C-Self test and Voltage Self test



Regards,
Dinesh

0 Kudos

1,400 Views
Dinesh_Guleria
NXP Employee
NXP Employee

Hi @antoinedubois ,

Please can you reply to my last question.

Regards,
Dinesh

0 Kudos

1,330 Views
Dinesh_Guleria
NXP Employee
NXP Employee

Hi @antoinedubois ,

Please can you reply to my last question.

Regards,
Dinesh

0 Kudos