Here's my code for writing to a serial LCD.
The code compiles fine, downloads, and runs. However, the PICkit2 gives me this error message.
Verification of configuration failed.
What does this mean, and how should I correct the problem?
Thanks.
Rich (BB code):
'****************************************************************
'* Name : Serial LCD.pbp *
'* Author : tracecom*
'* Notice : Copyright (c) 2013 Trace Communications *
'* : All Rights Reserved *
'* Date : 3/5/2013 *
'* Version : 1.1 *
'* Notes : PIC16F84A *
'* : Modern Device LCD117 Serial Adapter & 2x16 LCD. *
'****************************************************************
Include "modedefs.bas"
serout PORTB.0,T9600,["?BFF"] ' Set LCD backlight to maximum brightness.
PAUSE 200 ' Pause to allow LCD EEPROM to program.
SEROUT PORTB.0,T9600,["?G216"]' Configure the LCD geometry: 2x16.
PAUSE 200 ' Pause to allow LCD EEPROM to program.
main:
pause 1000 ' Wait for the LCD to startup.
serout PORTB.0,T9600,["?f"] ' Clear the screen.
pause 1000 ' Wait one second.
serout PORTB.0,T9600,["Wherever you go,"] ' Send the string "Wherever you go,".
serout PORTB.0,T9600,["?m"] ' Move the cursor to the second line.
serout PORTB.0,T9600,[" there you are."] ' Send the string " there you are.".
pause 1000 ' Wait one second.
goto main ' Do it again.
Verification of configuration failed.
What does this mean, and how should I correct the problem?
Thanks.