David, Both the Send_cmd and Send_data routines have delays built into=20 them. You need to this: LDC_clear(); wait_ms(15); As the wait_ms(x); is built into the Send_cmd routine which is=20 called by the LCD_clear routine.I believe that I haven't configure the=20 RA0 pin correctly but I can't find it. I am lost at this point. Thanks, rich! On 10/23/2015 3:50 AM, David Duffy (AVD) wrote: > I think you'll find that the LCD clear command takes a long time to > perform, so make sure you add a delay in there too. > > Take another look at the LCD data sheet as it will specify how long each > command takes to complete. > > You *have to* wait after a few of those commands as the LCD will ignore > you while it is busy. > David... > > On 23/10/2015 5:49 PM, Richard R. Pope wrote: >> James and et al, >> The code is posted on pastebin.com. Here is the link to it: >> http://pastebin.com/VhpXvqaQ. >> Thanks, >> rich! >> >> On 10/23/2015 2:38 AM, Richard R. Pope wrote: >>> James, >>> I understand. I'm going to post the code in a couple of minutes= .. >>> Thanks, >>> rich! >>> >>> On 10/23/2015 2:27 AM, James Cameron wrote: >>>> As r/s line never goes high, work on that. LCD_Send_data requires it >>>> to go high in order to clock data out. It's the cause of the LCD >>>> ignoring you. >>>> >>>> I suggest writing a new program just to set r/s high, and test it >>>> against your LEDs. >>>> >>>> Pastebin won't have a trouble with a large C program. It won't be >>>> private. Don't use it if you don't mind others seeing it, but as >>>> you're posting to PIClist you should already be fine with that. >>>> >>>> As for compression, don't worry about it. As long as you have a >>>> modern web browser, it will handle compression for you. >>>> >>>> On Fri, Oct 23, 2015 at 01:32:57AM -0500, Richard R. Pope wrote: >>>>> James, >>>>> I just finished installing the LEDs. I increased wait(); to = about 2 >>>>> seconds instead of about 20ms. The e line goes high and low. The r/w >>>>> line goes high and low. The r/s line never goes high. Can I zip the c= ode >>>>> and put it into pastebin? I have never used it before. We could go >>>>> private but then others will miss out on what we are doing here. >>>>> Thanks, >>>>> rich! >>>>> >>>>> > --=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 .