#include "t89c51cc02.h"#include "datatypes.h"Go to the source code of this file.
| Functions | |
| void | ADC_init (void) | 
| initialize A/D hardware | |
| WORD | ADC (BYTE) | 
| execute A/D conversion for specific input channel | |
Definition in file adc.h.
| 
 | 
| execute A/D conversion for specific input channel 
Reads the voltage from the specified input source and does a standard conversion. 
 
 
 Definition at line 29 of file adc.c. Referenced by Bumper_read(), Fingersensors_read(), Photosensor_read(), and Sharp_read(). | 
| 
 | 
| initialize A/D hardware The A/D converter of the T89C51CC02 is initialized to use P1.0 and P1.1 as analogue inputs. A standard conversion (see T89C51CC02 datasheet) is used. Definition at line 13 of file adc.c. Referenced by main(). | 
 1.4.6
 1.4.6