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.

MSP430I2040: MSP430I2040: Does the EMDC generated code supports Communication protocol (RS232) from PC?

Part Number: MSP430I2040
Other Parts Discussed in Thread: EVM430-I2040S

Hello,

I have EVM MSP430i2040 loaded with code generated by EMDC.

Does it supports Communication protocol (RS232) mentioned in document in below link?

http://www.ti.com/lit/an/slaa638/slaa638.pdf

If yes,

please clarify what would be command format if I want HOST_CMD_GET_READINGS_PHASE_N.

As per my understanding it would be  0x68,0x99,0x99,0x99,0x99,0x99,0x99,0x68,0x23,(len=0x02),(CMDH=0x61),(CMDL=0x00), (para=?), (CS=?), 0x16.

In above string len=2 is it correct?

what would be parameter value?

How CS should be calculated? (pls explain with example)

Thanks,

Anuradha.

  • Hi Anuradha,

    The document you linked above (slaa638: Single Phase and DC Embedded Metering (Power Monitor) Using MSP430I2040) is referring to the user's guide for the legacy Energy library. The code you are working with is generated by EMDC which is our latest energy metering library and it does not natively support RS232 out-of-box.

    Please refer to the EMDC Technology Guide for detailed information on the communication protocol spec and instructions on how to connect to the EVM430-i2040S. The F5529 LP must be used since EMDC supports USB HID devices only whereas a normal RS-232-to-USB adapter is a USB CDC device which won’t work.

    Best regards,

    Matt

**Attention** This is a public forum