2018-08-28 11:39 PM
Hello all,
I am using the nucleo Board Stm32F303Ze where I want to trigger the ADCs with Timer1 after 3 or 5 cycles when the Timer is set to 144 MHz. The configuration is done in CubeMX.
Generally the triggering of the ADCs and the transmission via DMA and USART3 works perfect so far. However, this is only the case when I put the Prescaler ot the Timer to 100 or higher (even with lower timer frequencies). A lower Prescaler value doesnt work. The ADC-Clock is set to 72MHz.
Has anybody an idea why it works only for high Prescaler values? I also tried different optimizer levels which did not change the behavior.
Thank you a lot in advance!
Best regards
2018-08-29 02:23 AM
Google isr overhead
2018-08-29 07:17 AM
Hi,
thank you a lot for your help! You are right. So I think an interrupt after one ore some periods is not possible in that way. Is there a hardware solution, that I can configure the ADCs to sample after e.g. 30ns?
Thank you and best regards,
2018-08-29 02:48 PM
Easy.
.
1. If you have to use onboard adc,find a mcu capable of such sampling speed.
2. If you are ok with outboard adcs, use one or more of them and interlace their sampling sequence. Pay attention to the adc / mcu interface.
2018-08-30 12:04 AM
Thanks for your answer!
I have to trigger all 4 internal ADCs, that after a certain time interval after a given point of time all of them start to sample simultaneously. They dont have to have a sampling time of 30ns its just the time after which they should start. So for me it is interesting to find a way to trigger the ADCs simultaneously accurately after 30ns. After the sampling all Adcs can pause for about 1ms, so there should be enough time to process the aquired data. Do you know something how to realize this?
2018-08-30 04:49 AM
That's even easier.
1. Pick a St mcu with 4 adc modules. Or pick 4 mcus, each with one adc module.
2. Trigger them at once.
2018-08-30 05:14 AM
Yes this is what I try to do with the stm32f303ze. That works so far. But I only want to have a delay between start of eg Timer and start of ADCs-Sampling of about 30-50ns. Is this feasible?
2018-08-30 09:30 AM
sure. read the datasheet to see how the adc can be triggered. in general, you can trigger them via software: one instruction via shadow registers or 3 or more instructions via rmw. hardware triggering is simpler.
2018-08-30 10:27 PM
perfect, thank you! You helped a lot!
Best regards