CAD CAM EDM DRO - Yahoo Group Archive

encoder Reading code

Posted by Bruce
on 2002-07-01 04:12:26 UTC
Bill,

I don't have any PIC/Stamp code, but I did write a Synrad laser controller
based on an 8051 uP. I used a Blue Earth micro controller. The laser power
was set manually via an incremental encoder and there was a "safety" manual
override switch--an M-code from another computer turned the laser on. The
power level was displayed on a 2 digit segmented LED.

The program is in 8051 assemble but it is fairly well documented--each
instruction has a comment--but it would still help to know a little 8051 asm
or find an 8051 manual online, as there are plenty. Also, there is a timing
issue with the Synrad laser, so the program had to perform each loop in a
certain amount of time, or the laser would "lase". A lot of the padding in
the program can be ignored. On the other hand, the encoder code was pretty
quick...but I was only reading one encoder and if one bit got missed, not
much bad happened.

If you are interested, I will be more than happy to email you the code.

Bruce Clark

Discussion Thread

Bruce 2002-07-01 04:12:26 UTC encoder Reading code