clear
DEFINE OSC 4
DEFINE LCD_DREG PORTD
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTE
DEFINE LCD_RSIT 0
DEFINE LCD_EREG PORTE
DEFINE LCD_EBIT 1

(It stops here with a syntax error on this > ) LOW PORTE.2
(I have tried several other methods from the book that would all set port E, pin 2 to low, but for the life of me, I don't know what is going wrong. It loos so simple. I have the newest compiler, and I am trying to teach myself with a breadboard, and some book learning. Since the circuit isn't part of the problem, or even part of the question, this has to be about the syntax. I took this example code directly from a book by Harprit Singh Sandhu. I love his books, and the way he writes, and own a few of them. I considered that his book may be based on dated code, so I looked through the compiler manual and tried other ways to turn pin2 of PortE low. The compiler doesn't like anything I put place of Low PortE.2 It looks too simple, and I just don't get it, so you can imagine that I feel very ignorant to have to ask. The rest of the code follows, and maybe that will also generate syntax errors. What is the problem. Insults are Ok, I deserve them, but please make them constructive insults.


TRISD = %00000000
TRISE = %00000000
ADCON1 = %00000111

PAUSE 500

LCDOUT $FE, 1
LCDOUT "NOW IS THE TIME FOR"
LCDOUT $FE, $C0
LCDOUT "A CUP OF PEA SOUP"
END