Dear matej:
Thanks very much for your replay. I am not very clear about your explain.but I tried another way to solve the problem.
I just modify the array ADC0CommandList. like this:
volatile char ADC0CommandList[6][4] =
{
{0x40,0xD0,0x00,0x00}, // end of sequence + int [41], current sense channel [D0], 4 clock cycles sample time [00],
{0x00,0xCB,0x00,0x00}, // end of list + no int [C0], HD voltage [CB], 4 clock cycles sample time [00]
{0xC0,0xC8,0x00,0x00},
{0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00}
};
and then I read the ADC0ResultList[2] value in ADC0done_ISR. and motor can run normal.
besides I didn't change anything.
I can read the value from ADC0ResultList[2] .but I don't know if I am right .
could you tell me if I can modify the program like this?
Best regards,
David