/* Listing 3 */

/*****************************************************
	ADC.C 

	Routines for basic control of the ADC on the 
	Lab Master AD.

	Copyright Don Bradley, 1991.

	Permission is granted for used of these routines
	in any manner as long as this copyright notice is 
	included.

	Tested using Quick C 2.5 and MSC 6.0 on a 
	Toshiba T5200.

 *****************************************************/

#include <conio.h>

#include "labmastr.h"

void disable_adc()
/*& Disable adc through stopping timer 5's output. */
	{
	timer5_off();
	}

void enable_adc()
/*& Enable adc through starting timer 5's output. */
	{
	timer5_on();
	}

int adc_status()
/*& Return the ADC status */
	{
	return (inp(ADC_STATUS));
	}
