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.

Reading Current Transducer HX 03..50-P data using MSP430G2553

Other Parts Discussed in Thread: MSP430G2553

Hi there,

I am trying to write a code in order to read the Current Transducer HX 03..50-P data using my MSP430G2553 launchpad. Attached is my circuit. I am also trying to use a protection circuit in order to save my MSP from negative voltage (more than -1V). I have had a test circuit (potentiometer as analog input) done to test ADC of MSP430. Can any one please suggest how can I start to code in order to read the current sensor data?

  • Hi Tahsina,

    Have you looked at the ADC10 section of the family reference manual yet?

    http://www.ti.com/lit/ug/slau144j/slau144j.pdf

    You need to start by configuring the pin to be an ADC input (see datasheet). Then you need to configure the ADC appropriately for your design (ADC10CTL0 and ADC10CTL1). From the diagram it doesn't look like youve connected an external voltage reference for the ADC so you should select one of the two internal references. The sampling rate and sample time will depend on the system and your requirements. Make sure to set the input channel to match your input. Enable the ADC, start the conversion and wait for it to complete (ADC10BUSY). Read the result from ADC10MEM and perform the appropriate conversion. That should get you started but there are many more features you can explore.

**Attention** This is a public forum