Skip to main content
ssk
Associate III
August 25, 2015
Question

SPC5Studio configuration

  • August 25, 2015
  • 4 replies
  • 856 views
Posted on August 25, 2015 at 08:27

Hello,

I am using SPC5Studio for SPC560D MCU.

1. How can I access CTU configuration from SPC5Studio?

2. How can I configure ADC module for using CTU, one shot conversion vs scan, priorities for EOC etc?

3. Any user guide available for using SPC5Studio effectively? Lot of times, the wizard generated functions are difficult to understand the correct configurations.

Thanks.

Mike.
    This topic has been closed for replies.

    4 replies

    nooshin_1382
    Associate III
    August 25, 2015
    Posted on August 25, 2015 at 09:06

    Hi Mike

    I Have the same problem for ADC Module and PWM ST have A refrence for Advanced light control and diagnostics ,it is a good refrence using both ADC and CTU .

    I attach a refrence for u but i think u can find on st site .

    Best Regards

    Nazerian Vanima
    Erwan YVIN
    ST Employee
    August 25, 2015
    Posted on August 25, 2015 at 15:51

    Hello Mike ,

    it is a good idea to use this AN.

    Advanced light control and diagnostics using

    SPC56xBx and SPC56xCx microcontrollers

    2 Choices :

    1) use the Patch Mode to update and enable CTUEN in the SPC5Studio ADC driver.

    or 

    2) use an external ADC driver , use as example ADC Init and CTU init (cf AN)

      Best regards

           Erwan

    ssk
    sskAuthor
    Associate III
    August 25, 2015
    Posted on August 25, 2015 at 16:01

    Thanks Erwan and Nazerian for the reply. But this app note mainly uses discrete settings for different modules. Whether this type of configuration is possible with application configuration? Any document explaining different features for application configuration?

    Thanks,

    Mike.

    Erwan YVIN
    ST Employee
    August 25, 2015
    Posted on August 25, 2015 at 18:13

    Hello Mike ,

    You can find some example configurations in the Reference Manual

    25.3.3 ADC sampling and conversion timing

    25.3.4 ADC CTU (Cross Triggering Unit)

    yes ,

    it should work

    you have to take care 

    1) The CTU can be enabled by setting MCR[CTUEN].

     

    2) The CTU and the ADC are synchronous with the peripheral set 3 clock in both cases.

    3) in the SPC5Studio Driver , 

     

     

    you should use Injected Conversion not normal conversion

     

      /* Starts conversion.*/

      adcp->adc_tagp->MCR.B.

    NSTART

     JSTART= 1U;

    Best regards

                         Erwan