SEROUT

w0es

New Member
I am a little confused. I am just starting to play with the GLIC-K and I have learned the hard way to start my code with a very minimum data. I programmed a 18x with just Serout 7, T2400, (20,1) to turn on the backlight. It didn't work.

But I changed it to Serout 7, N2400, (20,1) and it worked. Can someone please help me to understand what I was doing wrong.

73
Earl
 

hippy

Ex-Staff (retired)
This is probably due to losing / corrupting the first byte of data sent. Txxxx is an 'idle high' baud rate, Nxxxx is 'idle low'. When the PICAXE resets or powers-up it initialises as 'idle low' ( outputs at zero / 0V ). If using Txxxx you need to explicitly set the output HIGH then PAUSE for a while.
 

BeanieBots

Moderator
I've been caught out with the very same issue and setting the pin high fixed it.
Another thing to watch out for is trying to talk to the GLIC-K when it's busy. If you don't explicitly test the busy pin, then give it a good generous pause 50 between commands or more as described for some of the 'special' commands.
 
Top