Tobias
- 14th November 2007, 04:34
First off, I got my ICSP sorted out. Much thanks to the forum. While looking for a few components, I found a serial LCD from my STAMP days. I tried to attach a ZIP file of the spec sheet but it is over the attachment size limit. I thought to myself that this would be pretty handy to debug a new board and/or code. I can insert a few lines of code into my program, solder one wire to a free pin, provide the LCD with 5v and ground, then be sorting out a new program much quicker using this display.
So I am testing this on a PIC18F4523. I looked up the SerOut command and came up with the following code. I also set the serial LCD up for a baud rate of 9600 using the DIP switches on the back of its housing.
-----------------------------------------------
include "bs2defs.bas"
define OSC 40
ADCON1 = 7 ' Set PORTA and PORTE to digital
LCD var PortA.2
high LCD
SEROUT LCD,N9600, ["Grace",10 ] ' Display "Grace"
------------------------------------------------
The results of the code is just an underscore in the first space on the the first line. I think the underscore is like a default when no data is received though.
I know one variable is if I am getting the 'mode' correct in the SEROUT command. I have tried the other three X9600 with the same results.
I would have imagined this would be a pretty easy crossover from STAMP to PIC with this serial LCD. Please clue me in on what I am missing.
Thanks
So I am testing this on a PIC18F4523. I looked up the SerOut command and came up with the following code. I also set the serial LCD up for a baud rate of 9600 using the DIP switches on the back of its housing.
-----------------------------------------------
include "bs2defs.bas"
define OSC 40
ADCON1 = 7 ' Set PORTA and PORTE to digital
LCD var PortA.2
high LCD
SEROUT LCD,N9600, ["Grace",10 ] ' Display "Grace"
------------------------------------------------
The results of the code is just an underscore in the first space on the the first line. I think the underscore is like a default when no data is received though.
I know one variable is if I am getting the 'mode' correct in the SEROUT command. I have tried the other three X9600 with the same results.
I would have imagined this would be a pretty easy crossover from STAMP to PIC with this serial LCD. Please clue me in on what I am missing.
Thanks