Mister E is right, the DEFINES must be in upper-case, and are not checked by the compiler, which means there are no error messages if you don't enter them correctly - they just don't work.
Also, you are using PORTA.4 as your LCD ENABLE. You MUST put a pull-up on this port if you are going to use it as an output.
Bookmarks