Hi@Pohsuan
The project you provided is actually our demo code in S32 DS.
I don't understand your question.
Do you want ADC to be hardware triggered or PDB to be hardware triggered?
If it is an ADC hardware triggered demo project, then this routine is it, because PDB is used here to trigger ADC sampling.
If you mean PDB is hardware triggered, then you need to add TRGMUX module to set the trigger source of PDB.
Please correct me if I understand your question wrongly, or tell me your specific requirements, I can spend some time to help you create a routine