This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/EK-TM4C123GXL: Connecting an OMRON encoder

Part Number: EK-TM4C123GXL

Tool/software: Code Composer Studio

Hello,

I am interfacing an OMRON quad encoder which produces this waveform on Phase A (and B). The voltage level varies between about 4.5 and 0 V so will it work if I attach it directly to the TM4C123GXL pins or does it need a level shifter? Thank you.

  • Hi William,

      I cannot see the waveform. Can you please attach again? If your input only varies between 4.5V and 0 then it should be fine as most of the TM4C123 GPIOs are 5V tolerant except those specifically called out not 5v tolerant . The output is only 3.3V. Please be cautious that the input never exceeds the maximum allowed as defined in the datasheet electrical section. 

      

  • Hello Charles,

    Thank you for your reply. Sorry I pasted the image which looked all right on my screen but obvioulsy I need to insert the file.

    My question was really whether the waveform will trigger the QEI interrupts correctly as it swings outside the 3.3V.

    Thanks again

    William

  • Hi William,

      Yes, it will trigger QEI interrupts correctly. 

  • Greetings,

    While agreeing w/vendor's Charles should not (some) attention be directed to the 'Degree of Over-Shoot' that cap evidences?

    Our firm employs 'self-designed' & 'other-branded' commercial encoders - none exhibit such over-shoot!    And - should you 'magnify the horizontal scale' - might transient levels (peaking beyond 5V even) reveal?

    Unknown are the 'drive conditions' under which the scope cap was taken.    It should be noted that 'excessive cable/wire length' - between encoder & MCU often adds inductance - which (likely) generates (unwanted) voltage spikes - which may (in time) prove injurious to the MCU...   (especially w/the motor noise - which (also) demands management...)

  • Thank you cb1_mobile for pointing out some additional considerations to consider. I may experiment to see if I can identify the reasons for the overshoot. At the moment there is nil progress because I blew up the Launch Pad and encoder by connecting the scope probe ground to a live rail so have to wait for replacements.