I am using the MC56F8006.
And I want to use timer to achieve delay .
Please tell me how to do it.
Thank you very very much.
I do not suggest you can use timer to implement the delay. Generally, we suggest customer use nop instruction to generate delay. If you use Timer, you can start time so that it can count the ticks, you can poll the timer counter, when it reaches a predefined value the delay time corresponds to, you can disable timer, and execute the next instruction.
Use the TMR Hold Register and the TMR Counter Register?
It is okay to read the TMRn_CNTR directly if you only use one Timer.
Thank you very much.
wish you have a happy life
Retrieving data ...