ARM-based AD sampling program