added configurability to configureADC