Hello everyone, Well I have it working reliably. Now I can't get my delay routines=20 to work correctly. No matter what I try my delays do not change. Would=20 someone look at my delay routines and see if they can spot what I am=20 doing wrong? Here are the routines: extern void wait_us(unsigned int delay) { for(; delay; delay--) { NOP(); //This is about 500 nS at 1 MHz //NOP(); //Now we have one uS at 1 MHz //NOP(); //This is about 500 nS at 1 MHz //NOP(); //Now we have one uS at 1 MHz //NOP(); //This is about 500 nS at 1 MHz //NOP(); //Now we have one uS at 1 MHz } } extern void wait_ms(unsigned int delay) { wait_us(delay * 1000); //This gives us 1 millisecond } extern void wait_seconds(unsigned int delay) { wait_ms(delay * 1000); //This is one second } Thanks, rich! On 10/23/2015 1:13 PM, Isaac Marino Bavaresco wrote: > Richard, > > > My LCD routines may give you some insight: > > They can be configured to use the busy flag or delays, and have other > nice features. > > > Cheers, > > Isaac > > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .