2015-08-24 11:27 PM
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.2015-08-25 12:06 AM
2015-08-25 06:51 AM
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 Erwan2015-08-25 07:01 AM
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.2015-08-25 09:13 AM
Hello Mike ,
You can find some example configurations in the Reference Manual25.3.3 ADC sampling and conversion timing25.3.4 ADC CTU (Cross Triggering Unit)yes ,it should workyou 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