This is a multi-part message in MIME format. ------=_NextPart_000_001B_01C42303.D52A26C0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Thank you Alan and Jan-Erik. If I where preoccupied about the +/-1 you'd probably LOL seeing my face when the motor encoder was connected! I wonder how can I filter THAT signal in 20ms or 10ms to apply some pi control! But don't worry by now, I'll figure it out. In the mean time I send to you the captures between 100ms each with the oscilator and with the motor. Thanks, Dennis Crawley Argentina ----- Original Message ----- From: "Alan B. Pearce" To: Sent: Thursday, April 15, 2004 8:54 AM Subject: Re: [PIC:] Capture > >Is it normal that the capture module varies ~1 unit > >the capture of an stable sqare signal in all > >the range of frecuencies? > >4000Hz 250 and 251 > >2000Hz 500 and 501 > >800Hz 1250 and 1251 > >What this capture means? > >There is something wrong in my interrupt routine? > > Nothing wrong, just that your sampling and the measured signal are not > synchronous. > > Any digital measurement system is likely to show +/-1 in the least > significant digit over a number of measurements for a stable input signal > unless there is some special synchronising hardware to make sure the > measurement always starts at a given point on the measured waveform. Even > then at certain points there will be some uncertainty which will cause what > you are seeing. > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu ------=_NextPart_000_001B_01C42303.D52A26C0 Content-Type: application/x-zip-compressed; name="logs.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="logs.zip" UEsDBBQAAgAIAJFEjjDHjxGkSwAAAEoEAAAMAAAAQ2FwdHVyZTEudHh0Mza1MjLlNDUw4OUyxsk0 Q2UaksDEbgJepjkxTEMS1OJlWtCQaYghaklPprEBXZmG9GFCAtXYCJVpgJVJUAGxTGO6Mk3oyjSl DhMAUEsDBBQAAgAIAHJEjjDlg1Z+GwEAAK4EAAAMAAAAY2FwdHVyZTIudHh0dZRBbkQxCEPXM1Lv EiAkpPc/WIdMgj1qu3uybD4B9EW+W3sM6fr1lDerRnHzTrqAg3hasTRkRcfvrDyGmRWLrWJVh36z qRuyOpBVD/jbLG6dPHr618x6cX03dZnQFZ7qc2cVnh5gWcTQVdub7cVrgtWK642pixMHZeERo6xR /TvbF1s/dXr2acVqCl2cdCm23qCP/mcdubPqdCc7e+p7+nuxKvR2d7d5wLMWss5Z0u9ePL8VxMcz aKcj3+XFdcPj06/R/8kq6ZN0Q512/DN7nmAD653b5lb8mRXKOvxG/nvnqcfpLWjOyfcGguYWmSWd stVP0H6DZpvcHJ47w0XvWtTz1gU8ie9MNkdx3cCifb3YBN+Ssy/Z/yj/AVBLAQIUABQAAgAIAJFE jjDHjxGkSwAAAEoEAAAMAAAAAAAAAAAAIAAAAAAAAABDYXB0dXJlMS50eHRQSwECFAAUAAIACABy RI4w5YNWfhsBAACuBAAADAAAAAAAAAAAACAAAAB1AAAAY2FwdHVyZTIudHh0UEsFBgAAAAACAAIA dAAAALoBAAAAAA== ------=_NextPart_000_001B_01C42303.D52A26C0--