101
break;
}
case 4:
{
n = (value % 10);
P2OUT = num[n];
P1OUT = 0x70;
break;
}
}
seg++;
if(seg > 4)
{
seg = 1;
}
TA0CTL &= ~TAIFG;
TAIV &= ~TA0IV_TAIFG;
}
void main(void)
{
GPIO_graceInit();
/* initialize Config for the MSP430 2xx family clock systems (BCS) */
BCSplus_graceInit();
/* initialize Config for the MSP430 A3 Timer0 */
Timer0_A3_graceInit();
/* initialize Config for the MSP430 System Registers */
System_graceInit();
/* initialize Config for the MSP430 WDT+ */
WDTplus_graceInit();
while(1)
{
};
}
void GPIO_graceInit(void)
{
/* USER CODE START (section: GPIO_graceInit_prologue) */
/* User initialization code */
/* USER CODE END (section: GPIO_graceInit_prologue) */
/* Port 1 Output Register */
P1OUT = 0;
/* Port 1 Direction Register */
P1DIR = BIT4 | BIT5 | BIT6 | BIT7;
/* Port 1 Interrupt Edge Select Register */
P1IES = 0;