rotary encoder absolute, serial manchester

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

 Good afternoon, I am Colombian, I dont have good English, I hope  you understand

   

I will comment that my project is to know how I can help.

   

 

   

I have two rotary encoder, they send the absolute position by a frame of serial data by a Manchester code, the encoders are of 11 bits.

   

 

   

To get the position, I decode the signal. The Manchester decoder is not the problem, the problem is the timing, and for that I get a interrup for rising edge  and falling edge  to synchronize the decoder.

   

The delivery code encoder is shown in Figure

   

 

   

I must get the data (15 bits) of the first frame.

   

I do not know what idea you have to be able to help.

   

 

   

Attached two codes

   

One simulates the clock and then with a interrup on and off an output pin.

   

The other has a signal input to the decoder.

   

 

   

none works.

   
        
0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

This is not an easy problem to solve, since the data is a bitstream not related to any standard serial protocol. To avoid utilizing the CPU with the task of bit-banging I would suggest to find a solution using Verilog which might turn out to be problematic if you haven't worked with HDLs yet.

   

I recently did some timed bit-banging using counters in Verilog which worked quite well with a 24MHz clock, timing the width of a signal pulse.

   

This might be a way of getting your problem solved

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Use the quadrature decoder component ?

   

 

   

   

 

   

Or a port of http://www.psocdeveloper.com/uploads/tx_piapappnote/an2145.pdf

   

 

   

Regards, Dana.

0 Likes