Part Number: MSPM0G1506
Tool/software:
Hello
Regarding the Workaround for VREF_ERR_01, what specific modifications are required?
I'm thinking of using delay_cycles to wait for 200us, but is this close enough?
Do you have any sample code?
Thank you
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.
Part Number: MSPM0G1506
Tool/software:
Hello
Regarding the Workaround for VREF_ERR_01, what specific modifications are required?
I'm thinking of using delay_cycles to wait for 200us, but is this close enough?
Do you have any sample code?
Thank you
Hi Kei,
You can use delay_cycles to add in the necessary delay. Another option is to use a timer set to 200us and set a boolean flag to know when you're VREF has settled.
Regards,
Luke
Thank you for your reply.
When using delay_cycles, how do I calculate the number of cycles to wait for 200us?
Thank you very much.
Hi Kei,
A delay cycle should be equal to 1 clock cycle, so the equation would be DelayCyclesVal = DelayTime(s) * CPUFrequency (Hz).
For 200us and at 32MHz it will be DelayCyclesVal = 200 * 10^-6 * 32000000 = 6400.
Regards,
Luke