ADC ESP32-C6 efuse values for calibration

backloz
Posts: 1
Joined: Wed Jul 30, 2025 12:21 pm

ADC ESP32-C6 efuse values for calibration

Postby backloz » Fri Aug 29, 2025 6:48 am

Hello. I have a question about the parameters stored in the efuse module, which can be used to calibrate the ADC module in the ESP32-C6 chips. For programming the ESP32-C6, I use your ESP-IDF library version 5.3.4. In the library sources, especially in the efuse table(esp-idf-v5.3\components\efuse\esp32c6\esp_efuse_table.c) the following parameters related to the ADC are specified:

Code: Select all

static const esp_efuse_desc_t OCODE[] = {
    {EFUSE_BLK2, 137, 8}, 	 // [] ADC OCode,
};

static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN0[] = {
    {EFUSE_BLK2, 145, 10}, 	 // [] ADC1 init code at atten0,
};

static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN1[] = {
    {EFUSE_BLK2, 155, 10}, 	 // [] ADC1 init code at atten1,
};

static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN2[] = {
    {EFUSE_BLK2, 165, 10}, 	 // [] ADC1 init code at atten2,
};

static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN3[] = {
    {EFUSE_BLK2, 175, 10}, 	 // [] ADC1 init code at atten3,
};

static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN0[] = {
    {EFUSE_BLK2, 185, 10}, 	 // [] ADC1 calibration voltage at atten0,
};

static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN1[] = {
    {EFUSE_BLK2, 195, 10}, 	 // [] ADC1 calibration voltage at atten1,
};

static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN2[] = {
    {EFUSE_BLK2, 205, 10}, 	 // [] ADC1 calibration voltage at atten2,
};

static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN3[] = {
    {EFUSE_BLK2, 215, 10}, 	 // [] ADC1 calibration voltage at atten3,
};

static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN0_CH0[] = {
    {EFUSE_BLK2, 225, 4}, 	 // [] ADC1 init code at atten0 ch0,
};

static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN0_CH1[] = {
    {EFUSE_BLK2, 229, 4}, 	 // [] ADC1 init code at atten0 ch1,
};

static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN0_CH2[] = {
    {EFUSE_BLK2, 233, 4}, 	 // [] ADC1 init code at atten0 ch2,
};

static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN0_CH3[] = {
    {EFUSE_BLK2, 237, 4}, 	 // [] ADC1 init code at atten0 ch3,
};

static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN0_CH4[] = {
    {EFUSE_BLK2, 241, 4}, 	 // [] ADC1 init code at atten0 ch4,
};

static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN0_CH5[] = {
    {EFUSE_BLK2, 245, 4}, 	 // [] ADC1 init code at atten0 ch5,
};

static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN0_CH6[] = {
    {EFUSE_BLK2, 249, 4}, 	 // [] ADC1 init code at atten0 ch6,
};
Please explain what these parameters ​​mean.

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot], meta-externalagent and 1 guest