Hello,how can I write encoder interface software.where can I find sources and informations about mechanical encoder
It is my assignment.We use S12 DG128 microcontroller in this lesson.Also we use Codewarrior in the projectSoftware for what platform? Microchip has a quad module in one product.
'Encoder' covers a wide gamut of devices,
Cite an example of the encoder.
Max.
Thank youLike all these things, start with what you know. Draw some diagrams.
What waveforms (voltage levels) come out of the device?
How do these levels change when the encoder turns? What happens when the encoder turns in reverse?
How could you tell which way the encoder is turning just by looking at the waveforms?
Does your software need to look at the voltage levels or the voltage steps (change in levels)?
What would happen if your software missed some of the steps (because it was writing to a display - for example)?
What I am saying here is before you think about the actual micro-controller and the programming environment, you need to think very carefully about how the encoder works. Do this in the right order and the actual software design will logically follow.