[an error occurred while processing this directive]
|
...
unsigned int ii;
...
Init();
...
while(1)
{
...
ii=ADCL+(ADCH*256);
...
}
void Init(void)
{
char i;int a;
...............................
ADMUX=0x01;
ADCSR=0xa1;
for(a=0;a<0x0fff;a++);
ADCSR=0xe1;
...............................
}/*Init*/
E-mail: info@telesys.ru