most satellite positioner encoders are a reed switch operated by a multipole disc magnet , you have two encoders sharing one interrupt . what happens if one positioner stops with the reed closed ,wont that lead to lost impulses for the other encoder ?
as has been discussed before when you have a multi-byte variable that's altered in a interrupt routine its true value is indeterminate while the isr is active .
the correct procedure to access the var is to
disable isr
examine var (copy compare or whatever)
enable isr
Bookmarks