SparkFun Forums 

Where electronics enthusiasts find answers.

Your source for all things Atmel.
By gabeand
#45160
Hello. I'm trying to get the DX160 Serial LCD to work with my picaxe microcontroller. I'm using the 08M, and the code is relatively short. However, I cannot get it to do anything. I've used the demo program provided in order to use my PC's RS-232 connection to control it. I've even converted those RS-232 signals to TTL by using the MAX232, and the screen still worked. But when I tried using my picaxe to do even the simplest command, it wouldn't do anything. The following code was supposed to clear the screen:

main:
serout 1, N2400_4, (186)

But the splash screen still remains. Any help would be greatly appreciated. Thanks in advance.
By jasonharper
#45162
The DX160 manual wrote:Software selectable baud rates from 4,800 to 115,200.
Why are you expecting 2400 baud to do anything? Unfortunately, it appears that the only way to get even 4800 baud out of your 08M is to use 'sertxd' instead of 'serout', which doesn't give you any choice of which pin to use.
By gabeand
#45174
I see what happened. According to the manual I have, it can actually go to 2400 baud. I changed the baud rate using the example software. I hooked it up to my pc and changed the baud rate first. Then, I hooked it up to my picaxe. I'm pretty sure it is set to 2400 baud because when I power it up, the splash screen says that's what it's set at.

However, I looked at the manual on the sparkfun website just now, and it appears to be different. Maybe people are having trouble making 2400 baud work? I will try using a different baud rate and see what happens. Thanks!
By whayworth
#45185
I've got a sneaking suspicion you might get more help if you were to post this in the PIC forum. :)

But since it's here...has the baud rate change worked?
By jasonharper
#45188
If your DX160 can actually be set to 2400 baud, then I think the problem was that you had your signal inverted - try T2400_4 mode on the PICAXE instead.
By gabeand
#45191
Oops, I'm sorry. I didn't realize that I put this post in the wrong forum section. I am working with a picaxe, and I believe that is different from a pic microcontroller, so where should I put this post?

By the way, I have not had time to try out a different baud rate, but I will try it soon. Thanks everyone, for all your help.
By whayworth
#45192
Quoth Wikipedia:
PICAXE is the name of a UK-sourced microcontroller system based on a range of Microchip PICs.
The AVR's very different, as I understand it, in underlying architecture from the PIC, so you'd best post in there. :)
By gabeand
#45210
Ahah! I got it. I needed to set it to idle high, so I used the following code:

main:
serout 1, T2400, (186)

Thanks very much for everyone's help.
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]