Rotary Decoder – 2 wire 2x Interface


Quantity Pricing

The following are the unit prices, as you vary the quantity purchased:






All prices are in Canadian dollars. We use the total number purchased (ELM402P + ELM402SM) for the calculation.


The ELM402 is an 8 pin integrated circuit that is used to convert the signals from a rotary encoder into a series of up and down output pulses. The low power CMOS technology used ensures that only a very small current is required over the entire 2.0 to 5.5 volt operating range.

There is no need for external filtering or debounce circuits with the ELM402, as this is all performed within the integrated circuit. After debouncing the encoder signals, the ELM402 then determines the direction of shaft rotation, and generates the appropriate pulses at the Up or Down output pins. The duration of these pulses can be selected for either 0.2 or 2.0 msec.

The ELM402 provides 2x decoding of a rotary encoder signal. If your application requires 4x decoding, please see the ELM403 (it is identical to the ELM402 in every respect, except that it provides 4x decoding).


  • Digital audio potentiometer controls
  • Variable voltage or temperature circuits
  • Positioning controls
  • Tuning circuits


  • Low power CMOS design
  • Wide supply range – 2.0 to 5.5 volts
  • Complete debouncing of the encoder inputs
  • No external filtering needed
  • 2x decoding
  • Startup delay timer
  • High current drive outputs

Connection Diagram

( PDIP or SOIC, top view )
ELM402 connection diagram

Block Diagram

ELM402 block diagram


The ELM402 data sheet (ver A, 54K):

pdf icon

Alternative Labelling

To help us meet demand, Microchip Technology has been programming and labelling some of the ELM402SM chips for us. These ICs may look different, but are functionally identical. You may receive ICs that look like those shown above, or as shown below. The differences are only in appearance:

sku: ELM402SM