Microcontroller › 8051 › project on microcontroller based power factor improvent by static vars compensation › hi dear fellows,, i found a
hi dear fellows,,
i found a code of interfacing of ADC0808 with 89c51 here,this is the code
// Program to test ADC 0808. The output pins are connected to LED's. external clock is used for driving the ADC 0808.
sbit ale=P1^0; //address latch enable
sbit oe=P1^3; //output enable
sbit sc=P1^1; //start conversion
sbit eoc=P1^2; //end of conversion
sbit ADD_A=P1^4; // Address pins for selecting input channels.
void delay(unsigned int count) // Function to provide time delay in msec.
ADD_C=0; // Selecting input channel 2 using address lines
but it working when i put it into the keil ,it gives synatax error in its last 4 to five lines ,i am very worried about my project because time is very short so please help me and check this code ,and tell me why it is not working and send me its corrected form at