PDA

View Full Version : Change baud rate on SerLCD



Fredrick
- 2nd July 2010, 16:16
How do I change the baud rate on this display whit PBP?
http://www.sparkfun.com/datasheets/LCD/SerLCD_V2_5.PDF



'To set the backlight on I use this and itīs working.
SEROUT2 lcdtx,84,[124,157]

'But how do I set the baud rate?
SEROUT2 lcdtx,84,[124,"<control>k"] doesīt work

mackrackit
- 2nd July 2010, 16:35
SEROUT2 lcdtx,84,[124,k]
Maybe...

Fredrick
- 2nd July 2010, 16:56
Nope doesīt work. :(

HenrikOlsson
- 2nd July 2010, 17:11
Hi,
How about:

SEROUT2 lcdtx,84,[124, 11] ' 2400baud, 11 is ASCII code for CTRL-k
SEROUT2 lcdtx,84,[124, 16] ' 38400baud, 16 is ASCII code for CTRL-p

I'm not sure that's what they mean by <CONTROL>k etc but it's an idea. I looked at this page (http://www.columbia.edu/kermit/ascii.html) for reference and it shows capitals letters (CTRL-K etc) but it may be worth a try....

/Henrik.

Fredrick
- 2nd July 2010, 19:19
Thank you. Now it works : )