Have you read the PBP manual yet?

Look at RCTIME, POT, and the ADCIN commands.