This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHCC3235MOD: Getting ADC pin in sysconfig

Part Number: LAUNCHCC3235MOD
Other Parts Discussed in Thread: SYSCONFIG

I am new to sysconfig and I now I likely need help getting the last pin connected on this Mikroe ProFET 15. I need an ADC pin on the booster header with the current configuration.

I have determined max output V as used at about 0.7VDC at 13.5VDC and 11A so less than 1.8VDC. 

common_i2c_ADC.syscfg.txt
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
* @cliArgs --board "/ti/boards/CC3235SF_LAUNCHXL" --rtos "tirtos7" --product "simplelink_cc32xx_sdk@7.10.00.13"
* @versions {"tool":"1.17.0+3128"}
*/
/**
* Import the modules used in this configuration.
*/
const DriverLib = scripting.addModule("/ti/devices/DriverLib");
const Display = scripting.addModule("/ti/display/Display");
const Display1 = Display.addInstance();
const ADC = scripting.addModule("/ti/drivers/ADC", {}, false);
const ADC1 = ADC.addInstance();
const Board = scripting.addModule("/ti/drivers/Board");
const Crypto = scripting.addModule("/ti/drivers/Crypto");
const Crypto1 = Crypto.addInstance();
const DMA = scripting.addModule("/ti/drivers/DMA");
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • I must have mis thought nothing would work as the following seems to be OK? Is Analog Input 2 Pin 2 or 6 on boosterpack header?

    common_i2c_ADC_OK_syscfg.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /**
    * These arguments were used when this file was generated. They will be automatically applied on subsequent loads
    * via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
    * @cliArgs --board "/ti/boards/CC3235SF_LAUNCHXL" --rtos "tirtos7" --product "simplelink_cc32xx_sdk@7.10.00.13"
    * @versions {"tool":"1.17.0+3128"}
    */
    /**
    * Import the modules used in this configuration.
    */
    const DriverLib = scripting.addModule("/ti/devices/DriverLib");
    const Display = scripting.addModule("/ti/display/Display");
    const Display1 = Display.addInstance();
    const ADC = scripting.addModule("/ti/drivers/ADC", {}, false);
    const ADC1 = ADC.addInstance();
    const Board = scripting.addModule("/ti/drivers/Board");
    const Crypto = scripting.addModule("/ti/drivers/Crypto");
    const Crypto1 = Crypto.addInstance();
    const DMA = scripting.addModule("/ti/drivers/DMA");
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Boosterpack pin 25?

  • Always fails using BP 25 and sysconfig as listed. Do I need to only init once and not in loop? Is it the sysconfig?

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    //
    ADC_Handle adc;
    ADC_Params params;
    uint16_t adcValue0;
    uint32_t adcValue0MicroVolt;
    uint16_t adcValue1[ADC_SAMPLE_COUNT];
    uint32_t adcValue1MicroVolt[ADC_SAMPLE_COUNT];
    //....
    while(1){
    if (I2C_transfer(i2c, &i2cTransaction)){
    //Extract degrees C from the received data;
    temperature = (rxBuffer[0] << 8) | (rxBuffer[1]);
    temperature = temperature * 0.0078125;
    ft=temperature;
    tt1=time(&tt1);
    Display_printf(display, 0, 0, "Sample %u: %dC\n", sample, temperature);
    if (temperature < g_td){
    Display_printf(display, 0, 0, "Turn on the heat\n");
    GPIO_write(CONFIG_GPIO_PF15IN,1);//CONFIG_GPIO_PF15IN
    // BTS7004 DEN and IS start
    GPIO_write(CONFIG_GPIO_PFDEN,1);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    /**
    * These arguments were used when this file was generated. They will be automatically applied on subsequent loads
    * via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
    * @cliArgs --board "/ti/boards/CC3235SF_LAUNCHXL" --rtos "tirtos7" --product "simplelink_cc32xx_sdk@7.10.00.13"
    * @versions {"tool":"1.17.0+3128"}
    */
    /**
    * Import the modules used in this configuration.
    */
    const DriverLib = scripting.addModule("/ti/devices/DriverLib");
    const Display = scripting.addModule("/ti/display/Display");
    const Display1 = Display.addInstance();
    const ADC = scripting.addModule("/ti/drivers/ADC", {}, false);
    const ADC1 = ADC.addInstance();
    const Board = scripting.addModule("/ti/drivers/Board");
    const Crypto = scripting.addModule("/ti/drivers/Crypto");
    const Crypto1 = Crypto.addInstance();
    const DMA = scripting.addModule("/ti/drivers/DMA");
    const GPIO = scripting.addModule("/ti/drivers/GPIO");
    const GPIO2 = GPIO.addInstance();
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi Malcolm, 

    You didnt specify what error you are receiving so it is difficult to pinpoint what could be going wrong. Definitely only initialize the ADC once, and try using another analog input for Example 3. There is also a handy launchpad view in syssconfgi which explains what pins are being used.

    Kind Regards,

    Rogelio

  • adc is null
    Error initializing CONFIG_ADC_PFIS

  • After going through many troubles, I ending up adding some adc only lines from adcsinglechannel to my primary i2c+tcpecho sysconfig, renaming the adc to match code, and forgetting the ADC_init() until identified as the null problem. Now to get check adc to look like the 0.7V I measured otherwise, add to reporting,....Not that hard if one makes no mistakes.

    4505.common_i2c_syscfg.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /**
    * These arguments were used when this file was generated. They will be automatically applied on subsequent loads
    * via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
    * @cliArgs --board "/ti/boards/CC3235SF_LAUNCHXL" --rtos "tirtos7" --product "simplelink_cc32xx_sdk@7.10.00.13"
    * @versions {"tool":"1.17.0+3128"}
    */
    /**
    * Import the modules used in this configuration.
    */
    const DriverLib = scripting.addModule("/ti/devices/DriverLib");
    const Display = scripting.addModule("/ti/display/Display");
    const Display1 = Display.addInstance();
    const ADC = scripting.addModule("/ti/drivers/ADC");
    const ADC1 = ADC.addInstance();
    const Board = scripting.addModule("/ti/drivers/Board");
    const Crypto = scripting.addModule("/ti/drivers/Crypto");
    const Crypto1 = Crypto.addInstance();
    const DMA = scripting.addModule("/ti/drivers/DMA");
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX