I have to wait 3ms to be able to initialize my lcd controller from epson. How could I calculate this time with the Realview Compiler? Is there a specific function where I could say the controller should wait for 3ms to do the next instruction?
I'm working with the LCP2214 controller.
Gerd
The compiler is just a compiler. Implementing a wait can be done by a (linked) library (which has other implications as mentioned by other posters) or, if you're running some kind of Operating System, as a system call to handle timer related issues in a more generic way, which is in fact also a library call. So there's about 3 options: - do it yourself, as a function or generic timer handling for the rest of your app - use some kind of third-party library function (if available) - use some kind of OS functionality (if available)
Kind regards, Joost Leeuwesteijn