I am transmitting data to another board and use LED toggling to verify the data transmission. Since I need to visibly make sure that the data is tranmsitted, I have to give a certain delay (bsically a simple while/for loop). I have come across function with a value inside the loop. I need to know the basis for that value in the loop.
For example ,
1
2
3
|
for (i=0U;i<xxxxU;i++) { } /* Wait */ |
How to decide a value of XXXX to select a 4ms delay????
Also how do I decide a delay of 4ms in my TI-Hercules TMS570LS3137. Could anyone please explain.?