• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Power Management » /etc... Power » /etc... Power Forum » MPPT with SM72442 and SM72295
Share
/etc... Power
  • Forum
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

MPPT with SM72442 and SM72295

This question is not answered
Joel
Posted by Joel
on May 15 2012 01:58 AM
Prodigy90 points

Hi,

I wish to make a MPPT module with the SM72442 SolarMagic IC and the driver SM72295.

For my tests, my PV solar panel gives a output voltage up to 22 V (P = 50 Wc and Isc = 3,2 A)

I want 15 V DC on the MPPT module output

I've already bought these components. I looked for the technical documentation and I found the application note AN-2124 for SM3320. and the application note AN-2122 for SM3320-RF-EV. I downloaded the technical documentation RD-190 for this SolarMagic Eval Board.

My fisrt question : They use an external amplifier for IOUT (around LMP7717MF).  Can I use the internal amplifier of the SM72295 by connecting Rsense with SIB and SOB pins instead of this solution ?

Second question : By program, it is possible to read IOUT with SM72442 (BOUT of SM72295 connected to AIOUT of SM72442) and then control the PM OUTPUT to obtain the Panel Mode (PM_OUT is connected to the driver SM72482).

Third question : Rsense for IOUT (Rsen_out) is connected to low side (between VOUT- and GND). It is possible to place this Rsense in high side position between the Drains of N-MOSFET (Q2) and the cathode of D1 placed on the output (I make reference to the SM3320-RF-EV schematic - sheet 1/3, page 1 of SM72295 datasheet and page 2 of SM72242 datasheet).

Thanks for your help. This project is very important for me.

Joel

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Michael Sch
    Posted by Michael Sch
    on Jul 04 2012 13:26 PM
    Prodigy30 points

    Hello

    I also hava a problem regarding the i2c communication with the SM72442.

    I have already set up a connection between my MC and the SM72442. The first Data Byte I receive from SM72442 is alwasy 7 (length of Bytes). So this seems to be ok.

    But the Data Bytes from 1 to 6 are fluctuiting a lot. For example: 1.fetch: Byte1 = 171, 2.fetch: Byte1 = 255 3.fetch Byte1 = 79...and so on.

    Furthermore I get high values out of register1, although i havent applied a voltage to AVIN, AIIN, AVOUT and AIOUT pins...

    The 7th Databyte is alway 0. This seems logical to me because the last bits are not used and reserved.

    1. question is: Is it necessary to do first the startup or something else, that values , which are send over I2C, are correct?

    2. question: With the adress 0xE1I am asking for the values of register 1. Am I right?

    3. Is there something i haven't mentionend so far?

    Thanks for your Support!

    rgds Michael

    i2c SM72442
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Michael Sch
    Posted by Michael Sch
    on Jul 05 2012 10:22 AM
    Prodigy30 points

    I finally got it,

     For all those whoe are struggeling with a similar issue: Take care, that the last byte must not be acknowledged ;)

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Michiel Clarisse
    Posted by Michiel Clarisse
    on Dec 03 2012 09:44 AM
    Prodigy10 points

    Hey Michael,

    I try to interface the I2c on the SM72442. The address of the slave is 0x4 (0x04??).  As you can see in the attachement, the SCL line 'walks' on a 100Khz frequency. 

    on the falling edge of the 8th clockpulse and the 9th clockpulse there's is high puls on the SDA --> no ack !!!

    Here some code from my project

    #define I2C_MPPT_ADDR 0x4 //device address
    #define I2C_READ_reg0 (0xE0)//offset base address SM72442
    #define I2C_WRITE (0x00)
    #define I2C_READ (0x01)

    void initI2C(long baudRate)
    {
    long templong;
    // READ_I2C = 1; //make SDL input pin
    // Clk_I2C =0; //make SCL output pin

    templong = ( ( ((unsigned long)GetPeripheralClock() ) / (baudRate) ) - ( ((unsigned long)GetPeripheralClock() )/10000000UL)) -1;
    I2C1BRG = templong;

    I2C1CONbits.DISSLW = 1; //Slew rate control disabled for Standard Speed mode (100 kHz);
    I2C1CONbits.SCLREL = 1; // 1 = Releases SCLx clock
    I2C1CONbits.A10M = 0; //7-bit
    I2C1CONbits.I2CEN = 1; //enable I2C module

    }

    char read_MPPT(unsigned int addr, unsigned char *return_data)//int
    {
    int i;

    // start
    I2C1CONbits.SEN = 1; //start condition
    while(I2C1CONbits.SEN);
    //for(a=0;a<10;a++);
    // write
    I2C1TRN = I2C_MPPT_ADDR+I2C_WRITE;

    i = 0;
    while(I2C1STATbits.TRSTAT)
    {
    i++;
    if(i>=100-0)//100
    {
    I2C1CONbits.PEN = 1;
    return(0);
    }
    }

    if(I2C1STATbits.ACKSTAT == 0) // 0 = ACK

    ... 

    after this, there's a stop condition generated because I don't receive any ACK.

    Hope you can see some strange code or something?!

    THANX in advance.

    Greetz,

    Michiel

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Michael Sch
    Posted by Michael Sch
    on Dec 08 2012 06:16 AM
    Prodigy30 points

     Hello Michiel,

    I can't say if your code is right because i dont now the Register of the used MCU and more details.

    But to read out a register you have to do following precedure:

    Send Start condition

    Send Address with Write enable (which is in your case 00001000 = 0x08 (With WriteEnable Bit) )

    Send the Register address you want to read (which is 0xE0 for Register 0)

    Send Stop condition

    Send a new start condition

    Send Address with Read enable (which is in your case 00001001 = 0x09 (With ReadEnable Bit))

    Read 8 Bytes (Length Byte + 7 Register Bytes) and acknowledge every byte but not the last one!

    Send a Stop condition

    So it works fine in my application. And i receive a acknowledge of the SM72442

    I hope this helps you

    Regards Michael

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use