Re: Problems with Basic Servo Code
Code:
INCLUDE "LCD_D.bas"
INCLUDE "ADC_Default.bas"
TRISA = 1 ' PORTA is input
TRISD = 0 ' PORTD is output
TRISB = 0 ' PORTB is output
LCDOUT $FE, 1 ' Clear LCD
PAUSE 250 ' Wait 0.5sec for LCD to initialize
or may be the NO delay
you have allowed BEFORE resetting is a bit short for LCD to power-up ... after having tested dozens of LCD's I generally set it to 700-800 ms ... to be sure.
LCD strange characters often come with too short a delay before sending the first command ...
Alain
Last edited by Acetronics2; - 16th March 2013 at 18:27.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks