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)); } /* End of File */