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/MSP430F6779: Interfacing EMDC with another MCU over UART

Part Number: MSP430F6779

Tool/software: Code Composer Studio

I want to use the EMDC GUI to configure the MSP430F6779 and then interface the MSP430F6779 with PIC Microcontroller.

We are trying to achieve the following.

Design energy measurement solution using ENERGY Measurement Design Center (EMDC) GUI.
Generate code and deploy it as is (no code changes at all) using JTAG into EVM430-F6779.
Connect PIC Microcontroller ( lets call it Host) via UART.
Read meteorology values from EVM430-F6779 to host MCU. Is it possible ?

We would like to change the default baud rate from 250K to 115200 or 9600.

if we change code that is generated by EMDC to change baud rate. Would the EMDC software work with 115200 baud rate. reason we what to do that is because the device we would like to use does not support 250K baud rate.

  • Hi,

    It is possible to do this. But you may take much effort to do it.

    Here is the EMDC UART protocol, you can build your PIC Microcontroller side host code according to this protocol.
    software-dl.ti.com/.../ch_comm_protocol.html

    EMDC uses 250k baud rate because there are much data need to be transferred in a short time. If you want to decrease the baud rate, you may need to decrease the data size or sort code structure.

    Best regards,
    Stanford
  • Hi Stanford,

    Thanks for your quick response.

    We would like to change the default baud rate from 250K to 115200 or 9600.
    How to change the default baud rate generated by EMDC? for that which file or register i have to modify.
    I am very new to TI controllers . So pls provide me detailed explanation .
    This code is generated by EMDC for 250K baud rate

    //250K Baud Rate @ 25MHz
    #define UART__PRESCALER (0x06)
    #define UART__FIRST_STAGE_MOD (0x03)
    #define UART__SECOND_STAGE_MOD (0x02)

    if i change this into 115200 baudrate
    //115200 Baud Rate @ 25MHz
    #define UART__PRESCALER (0x0D)
    #define UART__FIRST_STAGE_MOD (0x0A)
    #define UART__SECOND_STAGE_MOD (0x00)

    Is this changes are enough to communicate @115200 baudrate or any further modification req
  • Hi,

    It looks like that this is enough. You can double check the baud rate by using Oscilloscope.
    Also remember that low baud rate may impact the software process.

    Best regards,
    Stanford
  • Hi,
    What will happen if we decrease the baud rate?
    Whether Energy Measurement Design Center supports Windows 7 Professional or NOT?
  • Hi,

    May send wrong data or just can't work.
    It supports Win7.
  • The 250k baud rate ensures a poly-phase configuration with all results selected could transmit the data between samples. The EMDC-generated code can be modified to change the baud rate, but since the EMDC GUI is set to 250k baud and can't be changed, the GUI can't be used to calibrate the system or view results. However, a host MCU can be used instead. i read this in another thread.

    So EMDC GUI will not work for this 1152000 baud rate that is clear, but whether interfacing host MCU will work or not?

    we want to Read meteorology values from EVM430-F6779 to another host MCU. but the host MCU device does not support 250K baud rate. So pls provide me any suggestion
  • Hi,

    You are rigth, EMDC GUI will not work for this 1152000 baud rate. Interfacing host MCU can work, but you should use high baud rate to do it.

**Attention** This is a public forum