cancel
Showing results for 
Search instead for 
Did you mean: 

Evaluation of Encoder Signal Level Shifting Approach

sktech
Associate II

I’m working with an encoder that has a specification of 1024 pulses per revolution (p/r), and it will operate at a maximum speed of 1500 RPM. At this speed, the signal frequency produced by the encoder is approximately 25.6 kHz.

The encoder outputs a 5V signal, while my MCU (the STM32H743VIT6) can only handle a maximum  input voltage of 3.3V. To address this, I plan to use a TXS0108E level shifter to convert the signal from 5V to 3.3V. Currently, I’m using a Blue Pill for testing until my main MCU arrives (the STM32H743VIT6).

I’d like to know if this is a good approach. Is the TXS0108E suitable for this application at the given frequency? Are there any better alternatives or recommendations for interfacing a 5V encoder output with a 3.3V MCU?

Thank you for your insights!

10 REPLIES 10
LCE
Principal

I basically just wanted to answer the same as Andrew did...

25.6 kHz should not be a problem for a resistive divider, unless you make the Rs crazy high.

 

What's your final solution used for?

Just playing around at home? 

Consumer product?

Something used in an industrial environment?

Could GND loops become a problem?

ESD protection?

 

No matter what, always use at least some serial resistors!