Hello. I copied "LCD_4bit.c" and "LCD.h" files from Keil examples folder to my project folder and add it to my project. Then I changed Pins definition in "LCD_4bit.c" according to my project board LCD pins(LPC 2378). (I don't think that The problem is here.) Then I could successfully Build it, but when I download it to my project board,there is no signs that LCD works. However when I compile "LCD_4bit.c" in IAR environment ,the produced "hex file" works well on my project board. Thanks for your help.
obviously if hll delay is not optimized away you have minimum delay and you do not need interrupt protection.
Why would you need interrupt protection in the first place? Interrupts during the delay will surely extend the duration of the loop IF it does not use a hardware timer as reference (and maybe even if it does).
The point is, Zooeesti, that you mix up largely unrelated stuff.
<QUOTE>Why would you need interrupt protection in the first place? Interrupts during the delay will surely extend the duration of the loop</QUOTE>
Tapeer,
you get it, late again and probebly taking all credit for the wisdom.
look for the word <BOLD>minimum</BOLD> in your fav reference book
Always yo're freind.
Zeusti.