sampling adc channel on S5D9

Hi,

We require to sample multiple channels of adc in 20msec each using SSP 1.7.5 r_adc hal driver.

I am using adc interrupt at the moment,not getting expected output.

Please assist on this.

  • Hi Kirti-
    When you say you are not getting the expected output, what are you getting?

    Can you share your configuration settings with us?

    Thanx,
    Warren
  • In reply to WarrenM:

    Hi WarrenM,

    After signal conditioning   230 v 50Hz signal is applied to adc channels(adc unit 0-channel 0,1,2,7 and unit 1- channel 0,1).These channels are sequentially scanned one by one.

    Once I get the adc raw count,I am trying to generate a sinewave,but some samples are missed.(sequential scanning is the reason I think)

    Adc clock : PCLKC(60MHz)

    Configuration setting :

    2084.synergy_cfg.txt
    Synergy Configuration
      Board "s5d9_cb"
      R7FS5D97C3A01CFP
        part_number: R7FS5D97C3A01CFP
        rom_size_bytes: 1048576
        ram_size_bytes: 655360
        data_flash_size_bytes: 65536
        package_style: LQFP
        package_pins: 100
        
      S5D9
        series: 5
        
      S5D9 Family
        OFS0 register settings: Select fields below
             IWDT Start Mode: IWDT is Disabled
             IWDT Timeout Period: 2048 cycles
             IWDT Dedicated Clock Frequency Divisor: 128
             IWDT Window End Position:  0% (no window end position)
             IWDT Window Start Position: 100% (no window start position)
             IWDT Reset Interrupt Request Select: Reset is enabled
             IWDT Stop Control: Stop counting when in Sleep, Snooze mode, or Software Standby
             WDT Start Mode Select: Stop WDT after a reset (register-start mode)
             WDT Timeout Period: 16384 cycles
             WDT Clock Frequency Division Ratio: 128
             WDT Window End Position:  0% (no window end position)
             WDT Window Start Position: 100% (no window start position)
             WDT Reset Interrupt Request: Reset
             WDT Stop Control: Stop counting when entering Sleep mode
        OFS1 register settings: Select fields below
             Voltage Detection 0 Circuit Start: Voltage monitor 0 reset is disabled after reset
             Voltage Detection 0 Level: 2.80 V
             HOCO OScillation Enable: HOCO oscillation is disabled after reset
        MPU - Enable or disable PC Region 0: Disabled
        MPU - PC0 Start: 0xFFFFFFFC
        MPU - PC0 End: 0xFFFFFFFF
        MPU - Enable or disable PC Region 1: Disabled
        MPU - PC1 Start: 0xFFFFFFFC
        MPU - PC1 End: 0xFFFFFFFF
        MPU - Enable or disable Memory Region 0: Disabled
        MPU - Memory Region 0 Start: 0x00FFFFFC
        MPU - Memory Region 0 End: 0x00FFFFFF
        MPU - Enable or disable Memory Region 1: Disabled
        MPU - Memory Region 1 Start: 0x200FFFFC
        MPU - Memory Region 1 End: 0x200FFFFF
        MPU - Enable or disable Memory Region 2: Disabled
        MPU - Memory Region 2 Start: 0x407FFFFC
        MPU - Memory Region 2 End: 0x407FFFFF
        MPU - Enable or disable Memory Region 3: Disabled
        MPU - Memory Region 3 Start: 0x400DFFFC
        MPU - Memory Region 3 End: 0x400DFFFF
        
      Synergy Common
        Main stack size (bytes): 0x800
        Process stack size (bytes): 0
        Heap size (bytes) - A minimum of 4K (0x1000) is required if standard library functions are to be used.: 0x1000
        MCU Vcc (mV): 3300
        MCU Analog Power Supply AVCC0 (mV): 3300
        Parameter checking: Enabled
        Assert Failures: Return SSP_ERR_ASSERTION
        Error Log: No Error Log
        ID Code Mode: Unlocked (Ignore ID)
        ID Code (32 Hex Characters): FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
        
      Clocks
        XTAL 24000000Hz
        PLL Src: XTAL
        HOCO 20MHz
        PLL Div /2
        PLL Mul x20.0
        Clock Src: PLL
        ICLK Div /2
        PCLKA Div /2
        PCLKB Div /4
        PCLKC Div /4
        PCLKD Div /2
        SDCLKout On
        BCLK Div /2
        BCK/2
        UCLK Div /5
        FCLK Div /4
        
      Pin Configurations
        S5D9-CB.pincfg -> g_bsp_pin_cfg
          AVCC0 88 ADC_AVCC0 - - - - - - - 
          AVSS0 89 ADC_AVSS0 - - - - - - - 
          P000 100 ADC0_AN00 - - - "Analog mode" - - "ADC0: AN00; CMP0: IVCMP2; IRQ0: IRQ06" 
          P001 99 ADC0_AN01 - - - "Analog mode" - - "ADC0: AN01; CMP0: IVCMP2; IRQ0: IRQ07" 
          P002 98 ADC0_AN02 - - - "Analog mode" - - "ADC0: AN02; CMP0: IVCMP2; IRQ0: IRQ08" 
          P003 97 ADC0_AN07 - - - "Analog mode" - - "ADC0: AN07; ADC0: PGAVSS0" 
          P004 96 ADC1_AN00 - - - "Analog mode" - - "ADC1: AN00; CMP0: IVCMP2; IRQ0: IRQ09" 
          P005 95 ADC1_AN01 - - - "Analog mode" - - "ADC1: AN01; CMP0: IVCMP2; IRQ0: IRQ10" 
          P006 94 ADC1_AN02 - - - "Analog mode" - - "ADC1: AN02; CMP0: IVCMP2; IRQ0: IRQ11" 
          P007 93 ADC1_AN07 - - - "Analog mode" - - "ADC1: AN07; ADC1: PGAVSS0" 
          P008 92 ADC0_AN03 - - - "Analog mode" - - "ADC0: AN03; IRQ0: IRQ12" 
          P014 85 ADC0_AN05 - - - "Analog mode" - - "ADC0: AN05; ADC1: AN05; CMP0: IVREF3; DAC120: DA" 
          P015 84 ADC0_AN06 - - - "Analog mode" - - "ADC0: AN06; ADC1: AN06; CMP0: IVCMP1; DAC121: DA; IRQ0: IRQ13" 
          P100 75 SCI0_RXD_MISO - Low None "Peripheral mode" CMOS None "AGT0: AGTIO; BUS0: D0_DQ0; GLCDC0: LCD_EXTCLK; GPT5: GTIOCB; IIC1: SCL; IRQ0: IRQ02; KINT0: KRM0; POEG0: GTETRG; SCI0: RXD_MISO; SCI0: SCL; SCI1: SCK; SPI0: MISO" 
          P101 74 SCI0_TXD_MOSI - Low None "Peripheral mode" CMOS None "AGT0: AGTEE; BUS0: D1_DQ1; GLCDC0: LCD_CLK; GPT5: GTIOCA; IIC1: SDA; IRQ0: IRQ01; KINT0: KRM1; POEG1: GTETRG; SCI0: SDA; SCI0: TXD_MOSI; SCI1: CTS_RTS_SS; SPI0: MOSI" 
          P102 73 CAN0_CRX - Low - "Peripheral mode" CMOS None "ADC0: ADTRG; AGT0: AGTO; BUS0: D2_DQ2; CAN0: CRX; GLCDC0: LCD_TCON0; GPT2: GTIOCB; KINT0: KRM2; OPS0: GTOWLO; SCI0: SCK; SPI0: RSPCK" 
          P103 72 CAN0_CTX - Low - "Peripheral mode" CMOS None "BUS0: D3_DQ3; CAN0: CTX; GLCDC0: LCD_TCON1; GPT2: GTIOCA; KINT0: KRM3; OPS0: GTOWUP; SCI0: CTS_RTS_SS; SPI0: SSL0" 
          P104 71 - - - - Disabled - - "BUS0: D4_DQ4; GLCDC0: LCD_TCON2; GPT1: GTIOCB; IRQ0: IRQ01; KINT0: KRM4; POEG1: GTETRG; SCI8: RXD_MISO; SCI8: SCL; SPI0: SSL1" 
          P105 70 GPIO - Low None "Output mode (Initial Low)" CMOS None "BUS0: D5_DQ5; GLCDC0: LCD_TCON3; GPT1: GTIOCA; IRQ0: IRQ00; KINT0: KRM5; POEG0: GTETRG; SCI8: SDA; SCI8: TXD_MOSI; SPI0: SSL2" 
          P106 69 GPIO - Low - "Output mode (Initial Low)" CMOS None "AGT0: AGTOB; BUS0: D6_DQ6; GLCDC0: LCD_DATA00; GPT8: GTIOCB; KINT0: KRM6; SCI8: SCK; SPI0: SSL3" 
          P107 68 - - - - Disabled - - "AGT0: AGTOA; BUS0: D7_DQ7; GLCDC0: LCD_DATA01; GPT8: GTIOCA; KINT0: KRM7; SCI8: CTS_RTS_SS" 
          P108 51 DEBUG0_TMS - Low - "Peripheral mode" CMOS None "DEBUG0: SWDIO; DEBUG0: TMS; GPT0: GTIOCB; OPS0: GTOULO; SCI9: CTS_RTS_SS; SPI1: SSL0" 
          P109 52 DEBUG0_TDO - Low - "Peripheral mode" CMOS None "CAN1: CTX; CGC0: CLKOUT; DEBUG0: SWO; DEBUG0: TDO; GPT1: GTIOCA; OPS0: GTOVUP; SCI9: SDA; SCI9: TXD_MOSI; SPI1: MOSI" 
          P110 53 DEBUG0_TDI - Low None "Peripheral mode" CMOS None "CAN1: CRX; CMP0: VCOUT; DEBUG0: TDI; GPT1: GTIOCB; IRQ0: IRQ03; OPS0: GTOVLO; SCI2: CTS_RTS_SS; SCI9: RXD_MISO; SCI9: SCL; SPI1: MISO" 
          P111 54 - - - - Disabled - - "BUS0: A05; GLCDC0: LCD_DATA12; GPT3: GTIOCA; IRQ0: IRQ04; SCI2: SCK; SCI9: SCK; SPI1: RSPCK" 
          P112 55 GPIO - Low - "Output mode (Initial Low)" CMOS None "BUS0: A04; GLCDC0: LCD_DATA11; GPT3: GTIOCB; SCI1: SCK; SCI2: SDA; SCI2: TXD_MOSI; SPI1: SSL0; SSI0: SSISCK" 
          P113 56 GPIO - Medium - "Output mode (Initial Low)" CMOS None "BUS0: A03; GLCDC0: LCD_DATA10; GPT2: GTIOCA; SCI2: RXD_MISO; SCI2: SCL; SSI0: SSIWS" 
          P114 57 GPIO - - - "Input mode" - None "BUS0: A02; GLCDC0: LCD_DATA09; GPT2: GTIOCB; SSI0: SSIRXD" 
          P115 58 GPIO - - - "Input mode" - None "BUS0: A01; GLCDC0: LCD_DATA08; GPT4: GTIOCA; SSI0: SSITXD" 
          P200 40 - - - - Disabled - - "IRQ0: NMI" 
          P201 39 GPIO - - - "Output mode (Initial Low)" CMOS "input pull-up" - 
          P205 32 - - - - Disabled - - "AGT1: AGTO; BUS0: A16; CGC0: CLKOUT; CTSU0: TSCAP; ETHERC0: WOL; GPT4: GTIOCA; IIC1: SCL; IRQ0: IRQ01; OPS0: GTIV; SCI4: SDA; SCI4: TXD_MOSI; SCI9: CTS_RTS_SS; SDHI0: DAT3; SPI1: SSL0; USBFS0: OVRCURA" 
          P206 31 - - - - Disabled - - "BUS0: WAIT; CTSU0: TS01; ETHERC0: LINKSTA; IIC1: SDA; IRQ0: IRQ00; OPS0: GTIU; SCI4: RXD_MISO; SCI4: SCL; SDHI0: DAT2; SPI1: SSL1; USBFS0: VBUSEN" 
          P207 30 QSPI0_QSSL - High - "Peripheral mode" CMOS None "BUS0: A17; CTSU0: TS02; GLCDC0: LCD_DATA23; QSPI0: QSSL; SPI1: SSL2" 
          P208 37 QSPI0_QIO3 - High - "Peripheral mode" CMOS None "ETHERC0: LINKSTA; GLCDC0: LCD_DATA18; OPS0: GTOVLO; QSPI0: QIO3; SDHI0: DAT0; TRACE0: TDATA3" 
          P209 36 QSPI0_QIO2 - High - "Peripheral mode" CMOS None "ETHERC0: EXOUT; GLCDC0: LCD_DATA19; OPS0: GTOVUP; QSPI0: QIO2; SDHI0: WP; TRACE0: TDATA2" 
          P210 35 QSPI0_QIO1 - High - "Peripheral mode" CMOS None "ETHERC0: WOL; GLCDC0: LCD_DATA20; OPS0: GTIW; QSPI0: QIO1; SDHI0: CD; TRACE0: TDATA1" 
          P211 34 QSPI0_QIO0 - High - "Peripheral mode" CMOS None "ETHERC0: MDIO; GLCDC0: LCD_DATA21; OPS0: GTIV; QSPI0: QIO0; SDHI0: CMD; TRACE0: TDATA0" 
          P212 14 CGC0_EXTAL - Low None "Peripheral mode" CMOS None "AGT1: AGTEE; CGC0: EXTAL; GPT0: GTIOCB; IRQ0: IRQ03; POEG3: GTETRG; SCI1: RXD_MISO; SCI1: SCL" 
          P213 13 CGC0_XTAL - Low None "Peripheral mode" CMOS None "ADC1: ADTRG; CGC0: XTAL; GPT0: GTIOCA; IRQ0: IRQ02; POEG2: GTETRG; SCI1: SDA; SCI1: TXD_MOSI" 
          P214 33 QSPI0_QSPCLK - High - "Peripheral mode" CMOS None "ETHERC0: MDC; GLCDC0: LCD_DATA22; OPS0: GTIU; QSPI0: QSPCLK; SDHI0: CLK; TRACE0: TCLK" 
          P300 50 DEBUG0_TCK - Low - "Peripheral mode" CMOS None "DEBUG0: SWCLK; DEBUG0: TCK; GPT0: GTIOCA; OPS0: GTOUUP; SPI1: SSL1" 
          P301 49 - - - - Disabled - - "AGT0: AGTIO; BUS0: A06; GLCDC0: LCD_DATA13; GPT4: GTIOCB; IRQ0: IRQ06; OPS0: GTOULO; SCI2: RXD_MISO; SCI2: SCL; SCI9: CTS_RTS_SS; SPI1: SSL2" 
          P302 48 - - - - Disabled - - "BUS0: A07; GLCDC0: LCD_DATA14; GPT4: GTIOCA; IRQ0: IRQ05; OPS0: GTOUUP; SCI2: SDA; SCI2: TXD_MOSI; SPI1: SSL3" 
          P303 47 - - - - Disabled - - "BUS0: A08; GLCDC0: LCD_DATA15; GPT7: GTIOCB" 
          P304 44 - - - - Disabled - - "BUS0: A09; GLCDC0: LCD_DATA16; GPT7: GTIOCA; IRQ0: IRQ09; OPS0: GTOWLO; SCI6: RXD_MISO; SCI6: SCL" 
          P305 43 - - - - Disabled - - "BUS0: A10; GLCDC0: LCD_DATA17; IRQ0: IRQ08; OPS0: GTOWUP; QSPI0: QSPCLK; SCI6: SDA; SCI6: TXD_MOSI" 
          P306 42 - - - - Disabled - - "BUS0: A11; GLCDC0: LCD_DATA18; OPS0: GTOULO; QSPI0: QSSL; SCI6: SCK" 
          P307 41 - - - - Disabled - - "BUS0: A12; GLCDC0: LCD_DATA19; OPS0: GTOUUP; QSPI0: QIO0; SCI6: CTS_RTS_SS" 
          P400 1 GPIO IRQ0 - IRQ0 "Input mode" - None "ADC1: ADTRG; AGT1: AGTIO; ETHERC0: WOL; GPT6: GTIOCA; IIC0: SCL; IRQ0: IRQ00; SCI4: SCK; SCI7: SCK; SSI: AUDIO_CLK" 
          P401 2 RMII_MDC - High None "Peripheral mode" CMOS None "CAN0: CTX; ETHERC0: MDC; GPT6: GTIOCB; IIC0: SDA; IRQ0: IRQ05; POEG0: GTETRG; SCI4: CTS_RTS_SS; SCI7: SDA; SCI7: TXD_MOSI" 
          P402 3 RMII_MDIO - High None "Peripheral mode" CMOS None "AGT0: AGTIO; AGT1: AGTIO; CAC0: CACREF; CAN0: CRX; ETHERC0: MDIO; IRQ0: IRQ04; PDC0: VSYNC; RTC0: RTCIC0; SCI7: RXD_MISO; SCI7: SCL; SSI: AUDIO_CLK" 
          P403 4 - - - - Disabled - - "AGT0: AGTIO; AGT1: AGTIO; ETHERC0: LINKSTA; GPT3: GTIOCA; PDC0: PIXD7; RTC0: RTCIC1; SCI7: CTS_RTS_SS; SDHI1: DAT7; SSI0: SSISCK" 
          P404 5 GPIO - Low - "Output mode (Initial Low)" CMOS None "ETHERC0: EXOUT; GPT3: GTIOCB; PDC0: PIXD6; RTC0: RTCIC2; SDHI1: DAT6; SSI0: SSIWS" 
          P405 6 RMII_TXD_EN - High - "Peripheral mode" CMOS None "ETHERC0: TXD_EN; GPT1: GTIOCA; PDC0: PIXD5; SDHI1: DAT5; SSI0: SSITXD" 
          P406 7 - - - - Disabled - - "ETHERC0: TXD1; GPT1: GTIOCB; PDC0: PIXD4; SDHI1: DAT4; SPI1: SSL3; SSI0: SSIRXD" 
          P407 25 USBFS0_VBUS - Low - "Peripheral mode" CMOS None "ADC0: ADTRG; AGT0: AGTIO; CTSU0: TS03; ETHERC0: EXOUT; IIC0: SDA; RTC0: RTCOUT; SCI4: CTS_RTS_SS; SPI1: SSL3; USBFS0: VBUS" 
          P408 24 RMII_CRS_DV - High None "Peripheral mode" CMOS None "CTSU0: TS04; ETHERC0: CRS_DV; GPT10: GTIOCB; IIC0: SCL; IRQ0: IRQ07; OPS0: GTOWLO; PDC0: PIXCLK; SCI3: RXD_MISO; SCI3: SCL; USBFS0: ID" 
          P409 23 RMII_RX_ER - High None "Peripheral mode" CMOS None "CTSU0: TS05; ETHERC0: RX_ER; GPT10: GTIOCA; IRQ0: IRQ06; OPS0: GTOWUP; PDC0: HSYNC; SCI3: SDA; SCI3: TXD_MOSI; USBFS0: EXICEN" 
          P410 22 RMII_RXD1 - High None "Peripheral mode" CMOS None "AGT1: AGTOB; CTSU0: TS06; ETHERC0: RXD1; GPT9: GTIOCB; IRQ0: IRQ05; OPS0: GTOVLO; PDC0: PIXD0; SCI0: RXD_MISO; SCI0: SCL; SCI3: SCK; SDHI0: DAT1; SPI0: MISO" 
          P411 21 RMII_RXD0 - High None "Peripheral mode" CMOS None "AGT1: AGTOA; CTSU0: TS07; ETHERC0: RXD0; GPT9: GTIOCA; IRQ0: IRQ04; OPS0: GTOVUP; PDC0: PIXD1; SCI0: SDA; SCI0: TXD_MOSI; SCI3: CTS_RTS_SS; SDHI0: DAT0; SPI0: MOSI" 
          P412 20 RMII_REF50CK - High - "Peripheral mode" CMOS None "AGT1: AGTEE; CTSU0: TS08; ETHERC0: REF50CK; OPS0: GTOULO; PDC0: PIXD2; SCI0: SCK; SDHI0: CMD; SPI0: RSPCK" 
          P413 19 RMII_TXD0 - High - "Peripheral mode" CMOS None "CTSU0: TS09; ETHERC0: TXD0; OPS0: GTOUUP; PDC0: PIXD3; SCI0: CTS_RTS_SS; SDHI0: CLK; SPI0: SSL0" 
          P414 18 RMII_TXD1 - High None "Peripheral mode" CMOS None "CTSU0: TS10; ETHERC0: TXD1; GPT0: GTIOCB; IRQ0: IRQ09; PDC0: PIXD4; SDHI0: WP; SPI0: SSL1" 
          P415 17 - - - - Disabled - - "CTSU0: TS11; ETHERC0: TXD_EN; GPT0: GTIOCA; IRQ0: IRQ08; PDC0: PIXD5; SDHI0: CD; SPI0: SSL2; USBFS0: VBUSEN" 
          P500 76 ADC0_AN16 - - - "Analog mode" - - "ADC0: AN16; AGT0: AGTOA; CMP0: IVREF0; GPT11: GTIOCA; OPS0: GTIU; QSPI0: QSPCLK; SDHI1: CLK; USBFS0: VBUSEN" 
          P501 77 ADC1_AN16 - - - "Analog mode" - - "ADC1: AN16; AGT0: AGTOB; CMP0: IVREF1; GPT11: GTIOCB; IRQ0: IRQ11; OPS0: GTIV; QSPI0: QSSL; SCI5: SDA; SCI5: TXD_MOSI; SDHI1: CMD; USBFS0: OVRCURA" 
          P502 78 ADC0_AN17 - - - "Analog mode" - - "ADC0: AN17; CMP0: IVCMP0; GPT12: GTIOCA; IRQ0: IRQ12; OPS0: GTIW; QSPI0: QIO0; SCI5: RXD_MISO; SCI5: SCL; SDHI1: DAT0; USBFS0: OVRCURB" 
          P503 79 ADC1_AN17 - - - "Analog mode" - - "ADC1: AN17; GPT12: GTIOCB; POEG2: GTETRG; QSPI0: QIO1; SCI5: SCK; SCI6: CTS_RTS_SS; SDHI1: DAT1; USBFS0: EXICEN" 
          P504 80 ADC0_AN18 - - - "Analog mode" - - "ADC0: AN18; BUS0: ALE; GPT13: GTIOCA; POEG3: GTETRG; QSPI0: QIO2; SCI5: CTS_RTS_SS; SCI6: SCK; SDHI1: DAT2; USBFS0: ID" 
          P508 81 - - - - Disabled - - "ADC0: AN20; SCI5: SCK; SCI6: SCK" 
          P600 67 - - - - Disabled - - "BUS0: RD; CAC0: CACREF; CGC0: CLKOUT; GLCDC0: LCD_DATA02; GPT6: GTIOCB; SCI9: SCK" 
          P601 66 - - - - Disabled - - "BUS0: WR_WR0_DQM0; GLCDC0: LCD_DATA03; GPT6: GTIOCA; SCI9: RXD_MISO; SCI9: SCL" 
          P602 65 - - - - Disabled - - "BUS0: BCLK_SDCLK; GLCDC0: LCD_DATA04; GPT7: GTIOCB; SCI9: SDA; SCI9: TXD_MOSI" 
          P608 59 GPIO - Low - "Output mode (Initial Low)" CMOS None "BUS0: A00_BC0_DQM1; GLCDC0: LCD_DATA07; GPT4: GTIOCB" 
          P609 60 CAN1_CTX - Low - "Peripheral mode" CMOS None "BUS0: CS1_CKE; CAN1: CTX; GLCDC0: LCD_DATA06; GPT5: GTIOCA" 
          P610 61 CAN1_CRX - Low - "Peripheral mode" CMOS None "BUS0: CS0_WE; CAN1: CRX; GLCDC0: LCD_DATA05; GPT5: GTIOCB" 
          P708 16 - - - - Disabled - - "CAC0: CACREF; CTSU0: TS12; IRQ0: IRQ11; PDC0: PCKO; SCI1: RXD_MISO; SCI1: SCL; SPI0: SSL3; SSI: AUDIO_CLK" 
          RES 38 - - - - - - - - 
          USBDM 27 USBFS0_USBDM - - - - - - - 
          USBDP 28 USBFS0_USBDP - - - - - - - 
          VBAT 8 - - - - - - - - 
          VCC 46 - - - - - - - - 
          VCC 15 - - - - - - - - 
          VCC 82 - - - - - - - - 
          VCC 62 - - - - - - - - 
          VCCUSB 29 USBFS0_VCCUSB - - - - - - - 
          VCL 9 - - - - - - - - 
          VCL1 64 - - - - - - - - 
          VREFH 87 ADC_VREFH - - - - - - - 
          VREFH0 91 ADC_VREFH0 - - - - - - - 
          VREFL 86 ADC_VREFL - - - - - - - 
          VREFL0 90 ADC_VREFL0 - - - - - - - 
          VSS 12 - - - - - - - - 
          VSS 45 - - - - - - - - 
          VSS 83 - - - - - - - - 
          VSS 63 - - - - - - - - 
          VSSUSB 26 USBFS0_VSSUSB - - - - - - - 
          XCIN 10 CGC0_XCIN - - - - - - - 
          XCOUT 11 CGC0_XCOUT - - - - - - - 
          
      Module "CGC Driver on r_cgc"
        Parameter Checking: Default (BSP)
        Main Oscillator Wait Time: 2087 us (547 cycles)
        Main Oscillator Clock Source: Crystal or Resonator
        Subclock Drive: Standard (12.5pf)
        Configure Subclock Drive On Reset: Enabled
        Low Voltage Mode: Disable
        
      Module "ELC Driver on r_elc"
        Parameter Checking: Default (BSP)
        
      Module "I/O Port Driver on r_ioport"
        Parameter Checking: Default (BSP)
        
      Module "FMI Driver on r_fmi"
        Parameter Checking: Default (BSP)
        SSP MCU Information Symbol Name: g_fmi_data
        Part Number Mask: 0xFE00
        
      Module "ADC Driver on r_adc"
        Parameter Checking: Enabled
        
      HAL
        Instance "g_elc ELC Driver on r_elc"
          Name [Fixed]: g_elc
          
        Instance "g_ioport I/O Port Driver on r_ioport"
          Name [Fixed]: g_ioport
          
        Instance "g_cgc CGC Driver on r_cgc"
          Name [Fixed]: g_cgc
          
        Instance "g_fmi FMI Driver on r_fmi"
          Name: g_fmi
          
      Thread "Adc_Thread"
        Symbol: adc
        Name: Adc_Thread
        Stack size (bytes): 1024
        Priority: 1
        Auto start: Enabled
        Time slicing interval (ticks): 1
        
        Instance "g_adc0 ADC Driver on r_adc"
          Name: g_adc0
          Unit: 0
          Resolution: 12-Bit
          Alignment: Right
          Clear after read: On
          Mode: Continuous Scan
          Internal Calibration During Open(): Enabled
          Channel Scan Mask (channel availability varies by MCU): Select channels below
              Channel 0: Use in Normal/Group A
              Channel 1: Use in Normal/Group A
              Channel 2: Use in Normal/Group A
              Channel 3: Use in Normal/Group A
              Channel 4: Unused
              Channel 5: Use in Normal/Group A
              Channel 6: Use in Normal/Group A
              Channel 7: Unused
              Channel 8: Unused
              Channel 9: Unused
              Channel 10: Unused
              Channel 11: Unused
              Channel 12: Unused
              Channel 13: Unused
              Channel 14 (S3 series Only): Unused
              Channel 15 (S3A7/S3A3 Only): Unused
              Channel 16: Use in Normal/Group A
              Channel 17: Use in Normal/Group A
              Channel 18: Unused
              Channel 19: Unused
              Channel 20: Unused
              Channel 21 (Unit 0 Only): Unused
              Channel 22: Unused
              Channel 23: Unused
              Channel 24: Unused
              Channel 25 (S3 series only): Unused
              Channel 26 (S3A7/S3A3 Only): Unused
              Channel 27 (S3A7/S3A3 Only): Unused
              Temperature Sensor: Unused
              Voltage Sensor: Unused
          Normal/Group A Trigger: Software
          Group B Trigger (Valid only in Group Scan Mode): ELC Event (The only valid trigger for either group in Group Scan Mode)
          Group Priority (Valid only in Group Scan Mode): Group A cannot interrupt Group B
          Add/Average Count: Disabled
          Addition/Averaging Mask (channel availability varies by MCU): Select channels to perform addition/averaging below
              Channel 0: Disabled
              Channel 1: Disabled
              Channel 2: Disabled
              Channel 3: Disabled
              Channel 4: Disabled
              Channel 5: Disabled
              Channel 6: Disabled
              Channel 7: Disabled
              Channel 8: Disabled
              Channel 9: Disabled
              Channel 10: Disabled
              Channel 11: Disabled
              Channel 12: Disabled
              Channel 13: Disabled
              Channel 14: Disabled
              Channel 15: Disabled
              Channel 16: Disabled
              Channel 17: Disabled
              Channel 18: Disabled
              Channel 19: Disabled
              Channel 20: Disabled
              Channel 21: Disabled
              Channel 22: Disabled
              Channel 23: Disabled
              Channel 24: Disabled
              Channel 25: Disabled
              Channel 26: Disabled
              Channel 27: Disabled
              Temperature Sensor: Disabled
              Voltage Sensor: Disabled
          Sample and Hold Mask (Available only on selected MCUs): Select channels for which individual sample and hold circuit is to be enabled
              Channel 0: Enabled
              Channel 1: Enabled
              Channel 2: Enabled
          Sample Hold States (Applies only to the 3 channels selected above): 24
          Callback: NULL
          Scan End Interrupt Priority: Priority 8
          Scan End Group B Interrupt Priority: Priority 8
          Voltage reference(Only for S1JA): External VREFH0
          Over current protection(Only for S1JA): Enabled
          Programmable Gain Amplifier: Select PGA Channel from 'Channel Scan Mask,Gain from below options'
          PGA 0: Disabled
          PGA 1: Disabled
          PGA 2: Disabled
          
        Instance "g_adc1 ADC Driver on r_adc"
          Name: g_adc1
          Unit: 1(S7G2,S5D9,S5D5 and S5D3 only)
          Resolution: 12-Bit
          Alignment: Right
          Clear after read: On
          Mode: Continuous Scan
          Internal Calibration During Open(): Enabled
          Channel Scan Mask (channel availability varies by MCU): Select channels below
              Channel 0: Use in Normal/Group A
              Channel 1: Use in Normal/Group A
              Channel 2: Use in Normal/Group A
              Channel 3: Unused
              Channel 4: Unused
              Channel 5: Unused
              Channel 6: Unused
              Channel 7: Use in Normal/Group A
              Channel 8: Unused
              Channel 9: Unused
              Channel 10: Unused
              Channel 11: Unused
              Channel 12: Unused
              Channel 13: Unused
              Channel 14 (S3 series Only): Unused
              Channel 15 (S3A7/S3A3 Only): Unused
              Channel 16: Use in Normal/Group A
              Channel 17: Use in Normal/Group A
              Channel 18: Unused
              Channel 19: Unused
              Channel 20: Unused
              Channel 21 (Unit 0 Only): Unused
              Channel 22: Unused
              Channel 23: Unused
              Channel 24: Unused
              Channel 25 (S3 series only): Unused
              Channel 26 (S3A7/S3A3 Only): Unused
              Channel 27 (S3A7/S3A3 Only): Unused
              Temperature Sensor: Unused
              Voltage Sensor: Unused
          Normal/Group A Trigger: Software
          Group B Trigger (Valid only in Group Scan Mode): ELC Event (The only valid trigger for either group in Group Scan Mode)
          Group Priority (Valid only in Group Scan Mode): Group A cannot interrupt Group B
          Add/Average Count: Disabled
          Addition/Averaging Mask (channel availability varies by MCU): Select channels to perform addition/averaging below
              Channel 0: Disabled
              Channel 1: Disabled
              Channel 2: Disabled
              Channel 3: Disabled
              Channel 4: Disabled
              Channel 5: Disabled
              Channel 6: Disabled
              Channel 7: Disabled
              Channel 8: Disabled
              Channel 9: Disabled
              Channel 10: Disabled
              Channel 11: Disabled
              Channel 12: Disabled
              Channel 13: Disabled
              Channel 14: Disabled
              Channel 15: Disabled
              Channel 16: Disabled
              Channel 17: Disabled
              Channel 18: Disabled
              Channel 19: Disabled
              Channel 20: Disabled
              Channel 21: Disabled
              Channel 22: Disabled
              Channel 23: Disabled
              Channel 24: Disabled
              Channel 25: Disabled
              Channel 26: Disabled
              Channel 27: Disabled
              Temperature Sensor: Disabled
              Voltage Sensor: Disabled
          Sample and Hold Mask (Available only on selected MCUs): Select channels for which individual sample and hold circuit is to be enabled
              Channel 0: Enabled
              Channel 1: Enabled
              Channel 2: Enabled
          Sample Hold States (Applies only to the 3 channels selected above): 24
          Callback: NULL
          Scan End Interrupt Priority: Priority 8
          Scan End Group B Interrupt Priority: Priority 8
          Voltage reference(Only for S1JA): External VREFH0
          Over current protection(Only for S1JA): Enabled
          Programmable Gain Amplifier: Select PGA Channel from 'Channel Scan Mask,Gain from below options'
          PGA 0: Disabled
          PGA 1: Disabled
          PGA 2: Disabled
          
      Messaging
    

  • In reply to Kirti:

    Hello Forum,

    Any advice on this please?