Port the ADC initialization code
Port the ADC software code
Change the value if tick rate