We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
thanks for your answer.
Configure and use a hardware timer
I only need this time at the beginning to initialize my lcd controller. So the interrupt only has to occur once during the whole programm.
Is it really the best solution to use a timer + ISR to do that? Or how is it possible to say that the ISR should only be called once during the programm?
I wrote: Then either set it to generate an interrupt or peek at the register content until 3ms has passed.
Are you sure that you won't ever require any time-based functions anywhere during the entire operation of the rest of your system?
That would be quite unusual!
not unheard-of, but unusual.
but there's no specific wait function in Keil uvision for ARM controllers? (like in GCC or WinARM)
Joe
Only the developer - you - really know what hardware you can spare for implementing a timing feature.
Only the developer - you - know what timing resolution that is meaningful for the project.
Only the developer - you - know if timing hardware should be used with an ISR or if it should be polled.
Only the developer - your - know at what delay length it is meaningful to switch between busy-looping and switching over doing something else.
Several good reasons why Keil shouldn't try to guess what is a correct implementation of a delay function.
What kind of wait function does GCC or WinARM provide?
-- Joost