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.

C code for Interfacing CD4052 with MSP430F427.

Other Parts Discussed in Thread: MSP430F427, CD4052B

I need help in programming for 3 phase energy meter. ADC are interfaced through CD4052 on msp430f427 adc channel. 

Please help me how to handle adc routine and get correct data for each phase voltage and current.

Please provide c code/ logic.

  • Hi Suman!

    Do you mean the CD4052B signal multiplexer? Look at the picture:

    Via A and B you select if X and Y are connected to X0 and Y0, X1 and Y1, X2 and Y2 or X3 and Y3. That's it. So connect the CD4052B to two GPIOs of the microcontroller and you can switch the signal in all four ways. The inhibit pin can be tied to GND if not used.

    Dennis

**Attention** This is a public forum