[an error occurred while processing this directive]
|
long ReadADC (void)
{
long ADCword = 0;
while ( DRDY ) ;
transmitMasterSPI( CommRD | CommData );
transmitMasterSPI( 0xFF );
ADCword = SPDR;
ADCword <<= 8;
transmitMasterSPI( 0xFF );
ADCword |= SPDR;
return ADCword;
}
E-mail: info@telesys.ru