Reducing the frequency of interrupts generated from peripheral to a CPU