Lab JI07-37
Send Pot to Display
15 points
OEES 215
//****************************************************************************** // JI07-37 Send Pot Output to the Display S215 10 0907 // ***************************************************************************** #include "s215-header16-f45.h" #pragma code //||||||||||||| Main Program |||||||||||||||||||||| void main (void) { float x; InitPorts(); ADCinit(0); //Initialize analog to digital converter while(1) { //|||||||||||||||||| Primary Loop ||||||||||||||||||||||| x = ADC10bit(); DispFP(x, 0); Delay10ms(20); //||||||||||||||||| End of Primary Loop |||||||||||||||||||| } } |
|