This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Shaft encoder trouble

I am trying to write some code for speed measurement via an encoder integrated in an electric motor. The encoder gives 64 pulses per revolution. And from the manual it should be possible to calculate the speed with use of Timers 3 and 5 on the MCB167-net evaluation board.
But it is the first time I am trying to program a microcontroller and I am having great difficulties to get it working. Does anyone know where to find some examples of such code...?

Thanks

Parents
  • "But it is the first time I am trying to program a microcontroller and I am having great difficulties to get it working."

    Start by reading the uVision Getting Started guide, and working through the example projects in it.

    Also, look at any examples that came with your dev kit.

    You need to do the basics first - get to understand the processor & tools - before moving on to the specifics of this particular application!

Reply
  • "But it is the first time I am trying to program a microcontroller and I am having great difficulties to get it working."

    Start by reading the uVision Getting Started guide, and working through the example projects in it.

    Also, look at any examples that came with your dev kit.

    You need to do the basics first - get to understand the processor & tools - before moving on to the specifics of this particular application!

Children