Author Topic: UNITREND UT61E service pack 1, hack, improvements, new features  (Read 19536 times)

blankfield

  • Newbie
  • *
  • Posts: 30
Hi all,

I did some improvements to UT61E, this mod basis on one that I've found on EEVblog forum but I decided to add some silicon into UT61E so additional fatures are controlled by pressing yellow and blue buttons for 1s this is Youtube video of final effect.

In few words new features:
*backlight for 60s (on/off)
*auto power after 15min function (on/off)
*RS232 port (on/off)
*MAX/MIN/MAXMIN function this is different like peak max peak min

Bellow all necessary materials for this modification.

Cheers
blankfield









Code: [Select]
#define DATALOG BIT3 //P1.3
#define BACKLIGHT BIT4 //P1.4
#define MAXMIN BIT5 //P1.5
#define DCAC BIT1//P1.1
#define VHz BIT2//P1.2
#define DCAC_OUT BIT6//P2.6
#define VHz_OUT BIT7//P2.7


/*
 * ======== Standard MSP430 includes ========
 */
#include <msp430.h>

/*
 * ======== Grace related includes ========
 */
#include <ti/mcu/msp430/Grace.h>

/*
 *  ======== main ========
 */
int main(void)
{
    Grace_init();// Activate Grace-generated configuration
    while(1){
    __bis_SR_register(LPM3_bits + GIE);
    }
}

void P1INTERRUPT(void){
IE1 &= ~(DCAC+VHz);
__delay_cycles(10000);
TACCR1=0;
TACCTL0&=~CCIFG;
TACTL |= MC_1;
switch(P1IN&(DCAC+VHz)){
case 0:
//VHz+DCAC buttons pressed
if(P1OUT&DATALOG) P1OUT &= ~(DATALOG);
else P1OUT |= (DATALOG);
__delay_cycles(20000);
break;
case 2:
//VHz button pressed
while (!(P1IN&VHz) && !(TACCTL0&CCIFG));
TACTL &= ~MC1;
if (!(TACCTL0&CCIFG)){
P2OUT &= ~(VHz_OUT);
__delay_cycles(10000);
P2OUT |= (VHz_OUT);
}
else{
P1OUT &= ~(BACKLIGHT);
__delay_cycles(10000);
P1OUT |= (BACKLIGHT);
}
break;
case 4:
//DCAC button pressed
while (!(P1IN&DCAC) && !(TACCTL0&CCIFG));
TACTL &= ~MC1;
if (!(TACCTL0&CCIFG)){
P2OUT &= ~(DCAC_OUT);
__delay_cycles(10000);
P2OUT |= (DCAC_OUT);
}
else{
P1OUT &= ~(MAXMIN);
__delay_cycles(10000);
P1OUT |= (MAXMIN);
}
break;
case 6:
//no button pressed
break;
}
TACTL &= ~(MC1 + MC0);
while(!(P1IN&(VHz+DCAC)))
IFG1 &= ~(DCAC+VHz);
IE1 |= (DCAC+VHz);
}
From 0 to 1, from VEE to VCC.

mts9131

  • Newbie
  • *
  • Posts: 1
Re: UNITREND UT61E service pack 1, hack, improvements, new features
« Reply #1 on: January 04, 2017, 01:08:34 AM »
hello dear
i hope you can update the pictures in the post cause thy are not responding

thanks a lot for the great job your done with this meter ;)

Regards