icsoul wrote on Oct 17th, 2008, 5:22am:Could you give some advice to avoid this effect?
That's sort of a paradoxical request: the cross event is specifically intended to control the timestep such that the crossing time is accurately resolved.
You could change the code so that it samples the voltage and determines for itself whether a rising or falling edge has occurred, but you run the risk of missing an edge.