hi i need read 24 channels for my end applicaton as of now iam trying to read 2 channels if i am done with adc 2 channels so that i can understand to do 24 channles
SDK DETAILS
S32 Design Studio for S32 Platform
Version: 3.4
Build id: 201217 (Update 3)
as of now iam configured as below
adc converter config and channels PTA 0 AND PTC14
const adc_converter_config_t adc_config_1_ConvConfig0 = {
.clockDivide = ADC_CLK_DIVIDE_4,
.sampleTime = 255U,
.resolution = ADC_RESOLUTION_12BIT,
.inputClock = ADC_CLK_ALT_1,
.trigger = ADC_TRIGGER_HARDWARE,
.pretriggerSel = ADC_PRETRIGGER_SEL_PDB,
.triggerSel = ADC_TRIGGER_SEL_PDB,
.dmaEnable = false,
.voltageRef = ADC_VOLTAGEREF_VREF,
.continuousConvEnable = false,
.supplyMonitoringEnable = false
};
const adc_chan_config_t adc_config_1_ChnConfig0 = {
.interruptEnable = true,
.channel = ADC_INPUTCHAN_EXT12
};
const adc_chan_config_t adc_config_1_ChnConfig1 = {
.interruptEnable = true,
.channel = ADC_INPUTCHAN_EXT0
};
PDB CONFIG
/*! @brief ADC pre-trigger configurations */
const pdb_adc_pretrigger_config_t pdb_config_1_adcTrigConfig0 = {
.adcPreTriggerIdx = 0U,
.preTriggerEnable = true,
.preTriggerOutputEnable = true,
.preTriggerBackToBackEnable = false
};
const pdb_adc_pretrigger_config_t pdb_config_1_adcTrigConfig1 = {
.adcPreTriggerIdx = 1U,
.preTriggerEnable = true,
.preTriggerOutputEnable = true,
.preTriggerBackToBackEnable = true
};
/*! @brief PDB timer configurations */
const pdb_timer_config_t pdb_config_1_timerConfig0 = {
.loadValueMode = PDB_LOAD_VAL_IMMEDIATELY,
.seqErrIntEnable = false,
.clkPreDiv = PDB_CLK_PREDIV_BY_128,
.clkPreMultFactor = PDB_CLK_PREMULT_FACT_AS_10,
.triggerInput = PDB_SOFTWARE_TRIGGER,
.continuousModeEnable = false,
.dmaEnable = false,
.intEnable = false,
.instanceBackToBackEnable = false,
};
HERE IS THE MAIN CODE
Hi sandeepc,
When debugging the project, setting a breakpoint in ADC_IRQHandler cannot pause it?
By they way, have you refer to those examples?
Example S32K148 PDB0-PDB1 ring S32DS3.4 RTM4.0.3
Example S32K148 PDB0-PDB1 ring DMA S32DS3.4 RTM4.0.3
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------