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.

MSP430F2274: halcogen+ccs ->rs485 -> msp430

Part Number: MSP430F2274
Other Parts Discussed in Thread: HALCOGEN

Hi,

I am working on the msp430f2274 controller, a major part of my work is ADC is almost completed & I face another challenge its new to me, generate code in form of HALcoGen (MCU) it is my main controller to send data through rs485, msp430 receive that data to generate PWM signals.

here, my doubt how to enable UART, some videos related TI website I searched and watch it almost understand initial operation include steps file but I want its only way to do HALCoGen only or otherwise we do hard code into ccs only its posssible . i want some example code for UART rs485 to communicate msp430 

  • Hi,

    please confirm my understanding:

    1) Your main MCU is a Hercules microcontroller

    2) You're using HALcoGen to generate the code for the Hercules MCU

    3) The Hercules MCU communicates with MSP430F2274 via RS485

    4) You're looking for example code to implement UART setup on MSP430F2274

    We provide example code within the MSP430Ware. You can also search for examples using the Resource Explorer (both online or integrated into CCS).

    Best regards,

    Britta

  • Hi Mam,
    Yes, this is the correct flow.
    Thank you , I will refer those links.
  • Britta Ruelander said:

    Hi,

    please confirm my understanding:

    1) Your main MCU is a Hercules microcontroller

    2) You're using HALcoGen to generate the code for the Hercules MCU

    3) The Hercules MCU communicates with MSP430F2274 via RS485

    4) You're looking for example code to implement UART setup on MSP430F2274

    We provide example code within the MSP430Ware. You can also search for examples using the Resource Explorer (both online or integrated into CCS).

    Best regards,

    Britta

    p3.4 & p3.5  input of the controller (to collect rs485 data )

    p2.3 & p2.4 an output of the controller (PWM ref signal format)

  • Hi,
    Here I attached the photocopy of my requirement.
    1. Here I know the set voltage and current value, based on that value I will set duty cycle.
    2. I don't know how to make the connection between RS485 to that exact GPIO pins and that pins give to PWM pins P2.3&P2.4.

  • Hi,
    sorry I give wrong data in this image that i attached, concept is correct but changes in pins numbers .
    1.we get pwf ref outputs in p2.3(Iref) &p2.4(vref).
    2.we recived a packet of data in rs485 to microcontroller (it holds voltage & curent value)
    pls , how to do it these give flow details
  • Hi,

    did you have a look at some of our code examples? They'll give you an example of setting the port and pins for PWM outputs and UART.
    The device family User's Guide also describes the correct flow of the settings.
    Besides this, can you specify where you see issues?

    Thanks and best regards,
    Britta
  • Hi,

    please note that I'm closing this thread due to inactivity.
    Replying to it will re-open the thread if needed.

    Best regards,
    Britta

**Attention** This is a public forum