Hi All,

I got my 18F2431 today and I am trying to learn how to fly it.
I thought I would start with a very simple LCD routine:

Code:
'****************************************************************
'*  Name    : LCD_18F2431                                      *
'*  Author  : Barry Phillips                                    *
'*  Notice  : Copyright (c) 2012 Baztronics                     *
'*          : All Rights Reserved                               *
'*  Date    : 22/06/2012                                        *
'*  Version : 1.0                                               *
'*  Notes   : LCD test program for 18F2431                                                *
'*          :                                                   *
'****************************************************************

' Define LCD registers and bits
Define	LCD_DREG	PORTB
Define	LCD_DBIT	0
Define	LCD_RSREG	PORTB
Define	LCD_RSBIT	5
Define	LCD_EREG	PORTB
Define	LCD_EBIT	4
Define	LCD_BITS	4
Define	LCD_LINES	2

Mainloop:
LCDOUT  $FE, $01                    ' Clear screen
LCDOUT  $FE, $80, "Hello World"
Pause 1000                          ' Pause 1 second
LCDOUT  $FE, $C0, "Hello Again"
pause 5000                          ' Pause 5 seconds
goto Mainloop                       ' Loop forever
When I tried to complie the program I get the following error messages

[ASM WARNING] Invalid RAM location specified. (0) : Warning [219]

repeated 13 times.

I was expecting a severe learning curve with this new device but I would have thought something as simple as this would have been straight forward.

Can someone please enlighten me on what needs to be done to correct this problem?

Cheers
Barry
VK2XBP