di(); // turn off interrupts read(IN_CH1); ei(); // re-enable interrupts