hi,
I didn't get a reply to the above post yet. I think this means that I have to give you an example of this glitch (whick keeps mentioning "GMIN") that happens in my frequency circuits.
See the attachment, I am trying to make a declining square-wave delay for a brushless optical-sensor motor driver circuit, because there is a slight delay in the signal from the optical encoder to the change of the magnetic field on the windings, which is a problem when one of the signals goes above 800Hz. This is why if I set the encoder so it changes state a bit before it is supposed to change state, the motor spins at a faster speed.
For example, A logic circuit would be on the starting state, where the signal from the encoder goes to the right inputs on the driver. When one of the signals go above 200Hz, a state change from a picaxe switches the logic circuit so the encoder's earlier signals go through this declining delay into the corresponding driver inputs. As the frequency gets higher, the delay time lowers a bit more than the frequency, in a way that compensates the processing and winding delay.
Anyway, when I click on 'run' in this circuit diagram, I often get the simulation terminating after a split second with the error log saying (I can't copy the error messages into this so I had to type them. If I try to by pressing ctrl+C, an error message says "TBD".):
Code:
[SPICE] transient GMIN stepping at time=0.0018281
[SPICE] transient GMIN stepping at time=0.00193992
[SPICE] transient GMIN stepping at time=0.0020315
[SPICE] transient GMIN stepping at time=0.00212308
[SPICE] transient GMIN stepping at time=0.00221465
[SPICE] transient GMIN stepping at time=0.00230612
[SPICE] transient GMIN stepping at time=0.00239528
[SPICE] transient GMIN stepping at time=0.0024868
[SPICE] transient GMIN stepping at time=0.00257832
[SPICE] transient GMIN stepping at time=0.00266984
... (the number of extra ones like the above varies before the next one)
[SPICE] TRAN: Timestep too small; timestep = 1.25e-019: trouble with node #U1:B VE#branch.
Could anyone give me a solution please?
In the 'so many axevsm errors...' thread, is anyone investigating why programs go wrong in addresses higher than $4000? (limiting the possible X1 program size down to 2048 (half of 4096).