Do you have communication between F84 and Pickit2?
Ioannis
Do you have communication between F84 and Pickit2?
Ioannis
For the benefit of anyone who might land on this thread in the future, here's some code that works.
'************************************************* ***************
'* Name : Serial LCD.pbp *
'* Author : tracecom *
'* Notice : *
'* : *
'* Date : 3/5/2013 *
'* Version : 1.0 *
'* Notes : PIC16F84A *
'* : Modern Device LCD117 Serial Adapter & 2x16 LCD. *
'************************************************* ***************
Include "modedefs.bas"
serout 0,T2400,["?BFF"] ' Set LCD backlight to maximum brightness.
PAUSE 200 ' Pause to allow LCD EEPROM to program.
SEROUT 0,T2400,["?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 0,T2400,["?f"] ' Clear the screen.
pause 1000 ' Wait one second.
serout 0,T2400,["Wherever you go,"] ' Send the string "Wherever you go,".
serout 0,T2400,["?m"] ' Move the cursor to the second line.
serout 0,T2400,[" there you are."] ' Send the string " there you are."
pause 1000 ' Wait one second.
goto main ' Do it again.
ETA: I do get an error message from the PICkit2: Verification of configuration failed.
But the LCD works.
Last edited by tracecom; - 6th March 2013 at 00:59.
Bookmarks