Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Asynchronous following error
#6
One thing to be aware of is that the trigger capture is level triggered in the Gate1 IC. Reading the HomeCapt register automatically re-arms the triggering circuit, and if the trigger input is still at the specified state, it will immediately latch the present position again into the HomeCapt register, and a subsequent read of HomeCapt can report a different position that what was captured at the front edge of the trigger.

I'm not sure if your logic protects you against this. Remember that another task, such as the IDE watch window monitoring the value of HomeCapt, can re-arm the trigger before your code reads HomeCapt.

Another possible issue is how the encoder generates its signal. Encoders like this typically synthesize a high frequency digital quadrature signal from a lower frequency analog sinusoidal signal through an internal tracking feedback loop. In some encoders, this loop produces excellent (stable, accurate) results, but in others, undesirable non-physical effects come into the signal.
Reply


Messages In This Thread
Asynchronous following error - jsinoir - 12-05-2018, 02:41 AM
RE: Asynchronous following error - Tony - 12-05-2018, 03:51 AM
RE: Asynchronous following error - jsinoir - 12-06-2018, 01:57 AM
RE: Asynchronous following error - jsinoir - 12-06-2018, 02:06 AM
RE: Asynchronous following error - curtwilson - 12-06-2018, 11:52 AM
RE: Asynchronous following error - jsinoir - 12-07-2018, 12:22 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)