Serial LCD

vfxmorley

New Member
Hi there. im using the Sparkfun serLCD v2.5 on an 18x board.

Sending the most simple of code ;
serout 3, N2400, ("please work")

always outputs the following ;

|| (this is a dash dash in the same character space)

Any ideas?

Im pretty sure its outputting on the correct output as i can add a pause and it does delay the output of the character above. is the serial output limited to only certain outputs?

Any help would be great

Dave
 

vfxmorley

New Member
thanks westaus

Ive tried all the suggestions and code and it still outputs the same character

Im running the CHI-035

output is pin 3

code im using is

SETFREQ m8
SEROUT 3,T9600_8,("helpme")

i even tried this code as well

setfreq m8 'sets picaxe frequency
pause 2000 'wait 1 sec (at 8mhz) to initialise lcd
serout 3, t4800,(124,9) 'i think this will turn off the boot screen
serout 3, t4800, (124,11) ' 11 = $0B = Ctrl-k
setfreq m4 'returns picaxe to default speed
serout 3,t2400,(254,128,"can you see this")


really not sure what else to try? can i give you anymore info?
 

vfxmorley

New Member
it wasnt the code. it was the fact that i had the wrong output pin connected to the LCD.

I dont know if i just keep missing the obvious in the manual but i seriously cant find an image of the CHI035 board that shows what outputs relate to the numbers outputs that should be used in your code! does it exist?

the way i solved it was to add a LED and use
testloop:
high 4
pause 200
low 4
pause 200
goto testloop

once i had this going i probed around with the multimeter till i figured out where output 4 was.

rewired the LCD back then hey presto

setfreq m8 'sets picaxe frequency
pause 2000 'wait 1 sec (at 8mhz) to initialise lcd
serout 4, t4800,(124,9) 'i think this will turn off the boot screen
serout 4, t4800, (124,11) ' 11 = $0B = Ctrl-k
setfreq m4 'returns picaxe to default speed
serout 4,t2400,(254,128,"can you see this")

Only problem is now that the only place i could find output 4 was on the IC1 chip itself. But Im sure this wont be a problem as ill find another output that has a pin out on the edge of the board.

thats for tomorrow. Ive at least done what i wanted to get done for now.

Thanks

dave
 

eclectic

Moderator
Pic 1 is the best "output guide" I can find at the moment.

It's from the CHI030/035 datasheet.


Secondly, there is another direct link
to output pin 0

See the datasheet diagram and the photo.

e
 

Attachments

westaust55

Moderator
@vfxmorley,

great to hear that you got the LCD working and what the problem was. :) :)
Thanks for the feedback. Feed back even helps the experienced members build up a knowledge database of the types of "hiccups" others have experienced for future reference.

Unfortunately many just fade away from the forum without letting us know whether they solved their problem or gave up. :rolleyes:
 
Top