Pooling

A loop constantly checking for changes on a register, port or other input. An interupt is usually preferred. This method halts the processor when reading the interupt.

Example

while(1) {
	ADCSRA=0b11000011;          //ADC starts conversion
	while(ADCSRA==0b11000011);  //Check if ADC is done
	PORTB=~ADCH;
}

Backlinks