A/D Converter implementation PK-S5D9

Hi,

Please Suggest example  for ADC implementation with multiple channel.

I am using 

Board : PK-S5D9

 

 

 

 

Thanks 

  • Hi Kirti,

    Have you tried ADC Periodic Framework?
    The sample is for S7G2, but I think it is easily ported to S5D9.

    Download Detail Page | Renesas Electronics
    www.renesas.com/.../D6003138.html
    sf_adc_periodic Module Guide Resources | Renesas Customer Hub
    en.na4.teamsupport.com/.../16977522
  • In reply to tenballs:

    Hi,

    Thanks for this ,It using internal temperature sensor and gives device temperature .

    Where can I See which channel is it using ? I need Framework adc for MULTIPLE CHANNEL

    It is possible to add channel in configuration.xml file ..? if yes .please guide how can make it ?


    Many Thanks
    Kirti
  • In reply to Kirti:

    Hi Kirti-
    Can you provide a bit more detail on what you are trying to do?

    What version of SSP are you using?

    Which channels do you want to sample, and what mode(s) do you want to use? I believe the ADC Periodic Framework uses Single Scan mode (pre-configured and locked in lower Level HAL driver)

    If you want to use Normal Mode you can specify the channels you want to sample if the configurator. From the Module Guide referenced above:

    Channels 0-6 Unused, Use in Normal/Group A, Use in Group B Default: Unused
    In Normal mode of operation, this bitmask field is used to specify the channels that are enabled in that ADC unit. For example, if it is set to 0x101, then channels 0 and 2 are enabled. In group mode, this field is used to specify which channels belong to group A.

    Let us know if you have more information you can share and if the above helps.
  • In reply to WarrenM:

    Hi warren,

    Thanks for the reply..

    What version of SSP are you using?

        - SSP v1.7.5

    Which channels do you want to sample?

        - channel 0,channel 1,channel 2,channel 3,channel 4,channel5,channel6,channel 7

    what mode(s) do you want to use ?

       - single scan mode ..yes framework support single scan mode,is it different from normal scan mode? 

    I am unware about of normal mode 

    In user manual scanning modes I have read are 1.single-scan,2.continous scan,3.group scan

    I am trying to get digital equivalent value of analog input present at multiple channel (channel 0 -channel 7)

    should you need more information to guide me please let me know 

     

    Appreciation for quick reply ..

     

    Kirti

     

     

     

  • In reply to WarrenM:

    Hi warren,

    Thanks for the reply..

    What version of SSP are you using?

    - SSP v1.7.5

    Which channels do you want to sample?

    - channel 0,channel 1,channel 2,channel 3,channel 4,channel5,channel6,channel 7

    what mode(s) do you want to use ?

    - single scan mode ..yes framework support single scan mode,is it different from normal scan mode?

    I am trying to get digital equivalent value of analog input present at multiple channel (channel 0 -channel 7)

    should you need more information to guide me please let me know

    could you share a stepswise procedure to use adc framework model for sampling analog channels(not temprature sensor channel )..
  • In reply to Kirti:

    Hi Kirti-
    Looks like this question was answered here:
    renesasrulz.com/.../adc-configuration