We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
"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!
I found the problem. I swithced to another board and it worked right away. The first board had probably been damaged by excessive voltages. But thank you for your time.