Hello Jose Motta,
Sorry for our later reply because of overloaded cases, and thank you for your patient!
About the sample rate, from the datasheet

You can find the max rate is 400K, so your 22Ksps must can be achieved.
As you know, 10 bit ADC resolution, need 11 clock cycles, actually, the detail sample time is determined by your adc clock cycles, I don't know what the adc clock you are using now.
You can get your adc clock then 11* adc clock time is your real sample time.
You don't need to keep the sample time =22ksps, actually, you just need to keep the sample time is higher than 22ksps. this is just make sure your adc data can be successfully convert.
For the detail sample rate, normally, from the Nyquist's law, in practical usage, you need to keep the sample time 5-10 times than then wave frequency which you want to convert.
So, you can associate with the TIMER to trigger the ADC convert, then to realize the detail sample rate which you want. Timer sample rate is just to keep the adc sample point is which you want, the ADC sample time in the datasheet, you can consider it as the convert time, the time keep the adc successfully converted.
Wish it helps you!
If you still have question, just let me know!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------