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.

MSP430F6779A: What happens to EMDC after a long period of interrupt disabling?

Part Number: MSP430F6779A

I have a question from previous about sometimes error -16 %

1) What happens to EMDC after a long period of interrupt disabling?


1) Supply AC power 240 V 60 Hz 10 A, Power Factor 0.5
2) Power on DC to MCU
3) Check LED pulse accuracy

Repeated step 1 - 3 until problem -16 % occurs.

Code modify from original cause the problem.

DesignCenter\guiApp\EMLibGUIApp.c

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
void EMLibGUIApp_Engine(void)
{
unsigned char i;
unsigned int interrupt_flag;
i = 10;
// delay 2.1 s
while(i)
{
i--;
__delay_cycles(1200000);
__delay_cycles(1200000);
__delay_cycles(1100000);
}
// disable interrupt 290 us
interrupt_flag = __get_interrupt_state();
__disable_interrupt();
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

line 137 to 144 // delay 2.1 s

line 147 to 157 // disable interrupt 290 us

2) What is maximum interrupt disabling time that the EMDC still operate correctly?

**Attention** This is a public forum