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.

MSP430FE425 used for Energy meter

Other Parts Discussed in Thread: MSP430FE425

Dear All,

I am using MSP430FE425 for Energy meter application. With the TI demo code, I am able to display the parameters perfectly, Where as during scrolling the meter hangs at VA page & doesn't resume back.

Below is the Code I have used :

if(Auto_Mode==0)

  {

/*

    if(key_press_count>14)

              key_press_count=1;

      */

    //key_press_count=2;

        

    switch(key_press_count)                // count value selects what to display.

    {           

      

      case 1:       //ok

        clear_lcd();

        display_date=1;            // represents Hours , minutes and seconds.

        _DINT();

        read_rtc();

        _EINT();

        update_rtc_display(rtc.hour, rtc.minute, rtc.second,

                rtc.day, rtc.month, rtc.year);

        LCD[0]|=(SEG_c);           // Semicolon.

        Date_icon;    

.

.

.

.

case 10:

          display_dec(VA_Previous.l,2);

          V_icon;

          A_icon;

}

Please guide me to come out of this & 

HOW IS THE ENERGY CALCULATION DONE IN CASE OF MSP430FE425 FOR ENERGY METERS.????

 

Regards

Mahesh.V.S.

  • Dear Mahesh.V.S.

     

    Please Be clear with ur code....

     

     

    /*

        if(key_press_count>14)

                  key_press_count=1;

          */ 

    What about this part is this commented in code, than taht could be the problem.

     

        First Are use incrementing the key_press_count every time  when key is pressed ?,  if so, is VA parameter is the last Display Parameter in auto display mode?

    -> According to what ur saying, that key_press_count  is incremented. which can be assumed because u can see other parameter till VA.

    ->so, make sure that are u making key_press_count is made Zero after it enters VA parameter.

    Regards,

    Praveen Reddy Athapuram.

  • Hello Mahesh, 

    I'm guessing that it's been a fairly long time since you've worked on the MSP430FE425...

    I am facing some trouble with the LCD interface... the Static mode itself... Could you share any details regarding the same?

    also, what lcd hardware are you using ? 

**Attention** This is a public forum