Hello,friends:
My colleagues meet a question,when she want to write frequency and duty to emios register,sometimes sucess, sometimes write fail,we can not resolve it.
whether you meet the similar question,please tell the way to solve it,thank you.
below is the result that write value to emios fail.
Hello,
Hmm, your assembly look correct.
sometimes write fail,we can not resolve it.
Could you described the situation closer? Is the exception triggered? Do the eMIOS counter run when you update the duty?
etc...
Best regards,
Peter
Hello,
1. when we use boot and app function ,the eMIOS register write function is abnormal.
I am not sure what I should imagine under this statement. What is the outcome of debug? Any exception? Reset? Instructions are skipped?
If you think it is clock, then simply change it and check if the write is successful. Possibly check whether eMIOS has clock at all. etc...
Best regards,
Peter