Programa en c

Solo disponible en BuenasTareas
  • Páginas : 3 (736 palabras )
  • Descarga(s) : 0
  • Publicado : 16 de febrero de 2012
Leer documento completo
Vista previa del texto
#include <msp430xG46x.h>

#include <LCD_defs.h>


unsigned char min, sec;
unsignedint msec;
//******************************************************************
// Write min//******************************************************************
LCD_min()
{
unsigned char min1,min2;

min1 = min/10;
min2 = min%10;switch (min1)
{
case 1: P7_A1;
break;
case 2: P7_A2;
break;case 3: P7_A3;
break;
case 4: P7_A4;
break;
case 5: P7_A5;break;
case 0: P7_A0;
break;
}
switch (min2)
{
case 1: P6_A1;break;
case 2: P6_A2;
break;
case 3: P6_A3;
break;
case 4: P6_A4;break;
case 5: P6_A5;
break;
case 6: P6_A6;
break;
case 7: P6_A7;break;
case 8: P6_A8;
break;
case 9: P6_A9;
break;
case 0: P6_A0;break;
}
}
//******************************************************************
// Write sec...
tracking img