Firstly, as far as I am aware, there is no command such as LCDINIT, therefore you should not have found it in your manual. However, saying that, the compiler should have flagged that as an error since it's not a reserved word either. I've tried several LCDINxxx words like LCDINA, LCDINITF, LCDINFRED and they all compile happilly too... so a bad mark for PBP in that respect.
That aside, the point I'm trying to make is, that if the word isn't in the PBP manual, or it's not a valid PIC Register name it shouldn't be used. Your original example had LCDCMDOUT, LCDINIT and WAITMS none of which are valid PBP words which you would have discovered if you looked in the PBP manual. This is why I asked if you're using PBP.
As I've just mentioned, there is NO "Initialise LCD" command in PBP. The LCD is initialised on your first instruction to it (which usually is Clear Display - eg LCDOut $FE,$01), however the LCD is a slow device to wake up at Power-On, so you should have a 1 second (or thereabouts - some LCD's need two seconds) delay in your program from power-on to allow for the LCD to settle before you output anything to it.
I don't use Microcode Studio which is why I can't answer questions on it, but I have all the versions of PBP for the last couple of years which allows me to check for errors in older versions too. The only tools I use is MPLAB from Microchip and PBP from MeLabs. Unless I have to, I also prefer to use the MeLabs assembler which comes with PBP. Other than the manual and the PIC's Datasheets, there are no other downloads that I use.
Melanie




Bookmarks