Skip to main content
Angle
Associate III
July 5, 2022
Solved

SARADC 12 BIT Supervisor and SARADC 12 BIT Modules

  • July 5, 2022
  • 4 replies
  • 1336 views

What is the different and function between SARADC 12 BIT Supervisor and SARADC 12 BIT Modules?

0693W00000QKQ7MQAX.png

    This topic has been closed for replies.
    Best answer by Giuseppe DI-GIORE

    Supervisor ADC can read all ADC channels

    SARADCx can read a subset of ADC channels

    Supervisor ADC is mainly used for safety reason (redundancy).

    Typical usage:

    1) read ADC channel[y] using SARADCx

    2) read ADC channel[y] using Supervisor ADC

    3) compare the two values

    3.1) if the two value are almost the same, then value is correct

    3.2) if the two values differs then there is an issue in reading the ADC

    Regards.

    4 replies

    Giuseppe DI-GIORE
    ST Employee
    July 5, 2022

    Supervisor ADC can read all ADC channels

    SARADCx can read a subset of ADC channels

    Supervisor ADC is mainly used for safety reason (redundancy).

    Typical usage:

    1) read ADC channel[y] using SARADCx

    2) read ADC channel[y] using Supervisor ADC

    3) compare the two values

    3.1) if the two value are almost the same, then value is correct

    3.2) if the two values differs then there is an issue in reading the ADC

    Regards.

    Angle
    AngleAuthor
    Associate III
    July 5, 2022

    okay, then for example if my pin configuration is ANP5_12b_1. so the driver that i need to set is on SARADC 12 bit modules which is in SARADC1? am i right ?

    Giuseppe DI-GIORE
    ST Employee
    July 5, 2022

    Please specify which micro are you using.

    Regards

    Angle
    AngleAuthor
    Associate III
    July 5, 2022

    SPC57 sphaero. im using the ADC on pin PI[1] and P1[2]

    Giuseppe DI-GIORE
    ST Employee
    July 5, 2022

    P[1] --> ANP[5] --> SAR_ADC_1 (Note: only available on eTQFP 144)

    PI[2] --> ANP[5] --> SAR_ADC_2

    See Reference manual RM0387 Table 12

    Regards.

    Angle
    AngleAuthor
    Associate III
    July 6, 2022

    what mean by code line " SARADC12DSV"

    I know that it mean using the ADC Supervisor but what mean by 12D?

     /* change driverUnderTest value to test others SARADC modules. */

     driverUnderTest = &SARADC12DSV;

    Giuseppe DI-GIORE
    ST Employee
    July 6, 2022

    SARADC12DSV is the name of the software instance of the supervisor ADC.

    In details:

    • SAR = Successive Approximation Register
    • ADC = Analog to Digital Converter
    • 12 = 12 bit
    • D = Device
    • SV = SuperVisor

    Regards.