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.

MSP430F2252: PMP8740 - Embedded Software.

Part Number: MSP430F2252
Other Parts Discussed in Thread: PMP8740, MSP-FET

Dear Roberto,

Good Afternoon. Questions regarding PMP8740 - Battery Charger(34V, 60A) --> Software Code related.
I am seeing software code regarding this project. Base code inserted in controller and LCD turned on.
Step by step I am checking...

Q1) I saw in software code, 1 KHz frequncy used for PWM Outputs (Vref and Iref). Why 1 KHz Frequency
used for PWM Outputs(Vref and Iref) from Micro-Controller MSP430F2522? Any specific reason.

Q2) Can you send J1939 CAN Protocol sample code for MSP430F2522 Controller? Please provide
any J1939 CAN Protocol Sample codes.

Q3) How do I protect the embedded code in this MSP430F2522 Using Code Composer Studio(CCS) V8 IDE?
lock bits using CCS IDE? I used MSP-FET Flash Emulation Tool for Programming.

Thanks & Regards,

Vijay Shinde

  • Dear Vijay,
    I can answer Q1, but I don't know the answers about question #2 and #3: we have to contact MSP430 Team for that.
    Regarding answer to question #1, I selected 1 KHz frequency according to the speed of output voltage and current reference change.
    Since this is a battery charger, and those times are in the range of seconds, you can select the PWM frequency ~ 1 thousand time faster than the slope of change; this way, and because the PWM is translated into a DC signal (reference for both loops), when selecting 1 KHz and the filter to 5...10Hz, the ripple on reference voltages will be very small.
    Can you please ask the questions #2 and #3 to general MSP430 threads?
    If you don't feel comfortable with that, I can try to make this internal.
    Best regards,
    Roberto
  • Dear Roberto.

    Thanks for information. Please try to ask questions #2 & #3 internal..if possible...

    Thanks and Regards,

    Vijay Shinde

     

  • Hi Vijay,

    Vijay Shinde72 said:
    Q2) Can you send J1939 CAN Protocol sample code for MSP430F2522 Controller? Please provide
    any J1939 CAN Protocol Sample codes.

    Unfortunately, the MSP430 does not have an integrated CAN module. Also, I'm not aware of any CAN sample code. After searching online, I found a thread discussing this topic and there seems to be a company called Simma Software that sells CAN code for MSP430s.

    CAN Bus

    MSP430 CAN Support for SAE J1939, ISO 15765, and CANopen

    Vijay Shinde72 said:
    Q3) How do I protect the embedded code in this MSP430F2522 Using Code Composer Studio(CCS) V8 IDE?
    lock bits using CCS IDE? I used MSP-FET Flash Emulation Tool for Programming.

    One (permanent) option would be to blow the JTAG security fuse after you've programmed the device using the MSP-FET.

    MSP Code Protection Features

    Regards,

    James

  • Dear James,

    Thanks for information.

    Thanks & Regards,

    Vijay Shinde

**Attention** This is a public forum