Hello,
I'm newbie to microcontroller. I'm having the implementation problem in my code. I am varying the duty cycle for each new iteration in for loop. When I set the breakpoint at any line inside the 'for' loop(iteration =x), it won't jump to 'x+1'th next iteration. It will directly go to 'x+~20'th iteration. In short, I think it's not waiting till it writes the register. Simply it's skipping. When I inserted blank 'for' loop having 4000+ iterations at end of the loop. It's working fine.
Is there any module to work that it will generate the interrupt after writing and will wait till it completes? or any other suggestions are welcome.
for (i=0;i<62;i++)
{
if (hetREG1->FLG == 0x00001ffe)
{
hetRAM1->Instruction[L14].Data = ((uint32) a_max[i] << 7)
.
.
.
.
hetREG1->FLG = 0x00001ffe;
}
}
Regards,
Suyog