Strange bug on EP9302-based custom board

Aaron J. Grier aaron at
Thu Dec 15 19:42:18 UTC 2005

On Thu, Dec 15, 2005 at 11:53:46AM -0600, Jay Monkman wrote:
> What do I2C and OSLink have to do with the tick rate? Do you plan on doing
> something like this?
> 	for (bit = 0; bit < 10; bit++) {
> 		write_i2c_bit(word[bit]);
> 		write_i2c_clock();
> 		rtems_task_wake_after(1);
> 	}
> That's a real waste of CPU time. You'll end up spending a significant
> amount of time in interrupt processing.

i2c is synchronous and can deal with timing jitters.  you can use either
software delays or polled counter loops with interrupts on and still be
fine for i2c.

  Aaron J. Grier  |   Frye Electronics, Tigard, OR   |  aaron at

More information about the users mailing list