Re: [CAD_CAM_EDM_DRO] Basic Stamp + Encoder
Posted by
James Owens
on 2002-06-30 17:19:48 UTC
Hi Dave,
I'll have a good look in my system and send you all that I have on this
subject tomorrow, it is late here.
I am working on just such a system and am quite close to finishing the
design. It would be wise to download the data sheets of the PIC's you are
thinking of using. You are quite correct, the history, conditional code or a
table are not necessary because the encoders are read via interrupts. No
transitions can be lost this way. It is very possible to read four encoders
and display the results and still have some spare time on a PIC running at
20 meg.
Regards,
Terry
| Hi Terry,
|
| I have not done any PIC programming but have worked for large computer
| manufacturers (CDC and now Cray) for years and have been programming in
all
| languages since about 1968. I think programming for a PIC would be a nice
| change of pace!
|
| I need a DRO for my Bridgeport and plan to make one eventually using a PIC
| to do the counting and drive the display. I have looked at the code for
the
| PC based DRO systems and see that it keeps a history of the last few
encoder
| transitions - I think this is an attempt to avoid missing transitions. The
| way it is done uses either a lot of conditional code (which will slow the
| program down) or a large table (which will not fit in a PIC memory). I
don't
| think this history is really necessary.
|
| I would like to see the code you have for PICs. It will give me another
| example to study and hopefully convince me that the history stuff is not
| necessary.
|
| Regards,
I'll have a good look in my system and send you all that I have on this
subject tomorrow, it is late here.
I am working on just such a system and am quite close to finishing the
design. It would be wise to download the data sheets of the PIC's you are
thinking of using. You are quite correct, the history, conditional code or a
table are not necessary because the encoders are read via interrupts. No
transitions can be lost this way. It is very possible to read four encoders
and display the results and still have some spare time on a PIC running at
20 meg.
Regards,
Terry
| Hi Terry,
|
| I have not done any PIC programming but have worked for large computer
| manufacturers (CDC and now Cray) for years and have been programming in
all
| languages since about 1968. I think programming for a PIC would be a nice
| change of pace!
|
| I need a DRO for my Bridgeport and plan to make one eventually using a PIC
| to do the counting and drive the display. I have looked at the code for
the
| PC based DRO systems and see that it keeps a history of the last few
encoder
| transitions - I think this is an attempt to avoid missing transitions. The
| way it is done uses either a lot of conditional code (which will slow the
| program down) or a large table (which will not fit in a PIC memory). I
don't
| think this history is really necessary.
|
| I would like to see the code you have for PICs. It will give me another
| example to study and hopefully convince me that the history stuff is not
| necessary.
|
| Regards,
Discussion Thread
wscalione
2002-06-29 15:02:17 UTC
Basic Stamp + Encoder
James Owens
2002-06-29 16:37:00 UTC
Re: [CAD_CAM_EDM_DRO] Basic Stamp + Encoder
turbulatordude
2002-06-29 18:28:30 UTC
Re: Basic Stamp + Encoder
Keith Bowers
2002-06-29 18:45:54 UTC
Re: [CAD_CAM_EDM_DRO] Basic Stamp + Encoder
David Micklethwaite
2002-06-30 04:49:45 UTC
Re: [CAD_CAM_EDM_DRO] Basic Stamp + Encoder
James Owens
2002-06-30 04:53:40 UTC
Re: [CAD_CAM_EDM_DRO] Basic Stamp + Encoder
James Owens
2002-06-30 05:05:04 UTC
Re: [CAD_CAM_EDM_DRO] Basic Stamp + Encoder
David Micklethwaite
2002-06-30 16:49:31 UTC
Re: [CAD_CAM_EDM_DRO] Basic Stamp + Encoder
James Owens
2002-06-30 17:19:48 UTC
Re: [CAD_CAM_EDM_DRO] Basic Stamp + Encoder
mayfieldtm
2002-07-01 10:13:37 UTC
RE: Basic Stamp + Encoder
timgoldstein
2002-07-01 10:15:41 UTC
Re: Basic Stamp + Encoder
Ian W. Wright
2002-07-01 11:08:06 UTC
Re: [CAD_CAM_EDM_DRO] RE: Basic Stamp + Encoder
serv4volley
2002-07-01 11:30:38 UTC
Re: Basic Stamp + Encoder