Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/30/02 16:22
Read: times


 
#35242 - RE: To:Rob
or you could just re-write the routine to

void write_adc_byte(unsigned char output_data) {
unsigned char index;

for(index = 0; index < 8; index++) // Send 8 bits to the adc
{
ADC_DIN = ((output_data & 0x80) ? 1 : 0);
output_data=output_data << 1; // Shift the byte by one bit
ADC_CLK = HIGH; // Clock the data into the adc
adc_delay();
ADC_CLK = LOW;
}


adc_delay();
}

List of 13 messages in thread
TopicAuthorDate
serial adc            01/01/70 00:00      
RE: serial adc            01/01/70 00:00      
RE: serial adc            01/01/70 00:00      
To:Rob            01/01/70 00:00      
RE: To:Rob            01/01/70 00:00      
RE: To:Rob            01/01/70 00:00      
RE: To:Rob            01/01/70 00:00      
RE: To:Rob            01/01/70 00:00      
RE: To:Rob            01/01/70 00:00      
hi rob            01/01/70 00:00      
RE: hi rob            01/01/70 00:00      
RE: hi rob            01/01/70 00:00      
RE: hi rob            01/01/70 00:00      

Back to Subject List