can't get my serial LCD to work with SX
I can't get my Parallax serial LCD to work with the SX chip. I know I am doiing something wrong but·don't know what. With the BS2·I had no problems sending and displaying on the LCD. Since the SX/B code is different I don't know how to set it up. I have the LCD 27976
can someone point me in the right direction. Also I would like to use serial LCD and I see some code for some other serial LCD but it's not the one I have.·The SX chip is a lot different than the BS2.
can someone point me in the right direction. Also I would like to use serial LCD and I see some code for some other serial LCD but it's not the one I have.·The SX chip is a lot different than the BS2.
![cry.gif](http://forums.parallax.com/images/smilies/cry.gif)
Comments
.Thanks for your fast reply. This is a great site and Parallax has great products and unmatched support. Thanks again
Function
Transmit asynchronous serial byte (e.g., RS-232).
Pin ....is any SX IO pin (RA.0 .. RA.7, RB.0 .. RB.7, RC.0 .. RC.7, RD.0 .. RD.7, RE.0 .. RE.7).
BaudMode.... is a string constant that specifies serial timing and configuration. SX/B will raise an error if the baud rate specified exceeds the ability of the target FREQ.
Value..... is a byte variable or constant (0 - 255) to be transmitted.
SEROUT RA.0, T9600, "A"
That is the way SX/B explains it to me but no matter what I try to do I can't display any text # or data of any kind. AM I having hardware problems? I got my Baud set at "T9600" lcdtx set to RA.0What am I doing wrong?
' Device Settings
'
DEVICE SX28, OSCXT2, TURBO, STACKX, OPTIONX
FREQ 4_000_000
Internal 4mhz
yes you are right it does show the test mode so I have plenty of power to it? Are my device settings off I have a 50mhz resonator but I just use what the test programs settings are...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Shawn Lowe
My last words shall be - "NOT YET!!!"
I looked at me device settings and set it up I try to program the chip and I get this error
lcdTx··PIN·RA.0···' LCD serial connection
"unkown Command· lcdtx"
anyone have a test code that I can use with the 50mhz resonator
and all I want it to do is display.. "hello" the·test code i downloaded·just looks complicated to a newbie like me.. Sorry for being so green guys but switching over from BS2 to the sx is harder than I thought. If I see the code·in just a simple piece of code I will understand it so much better..Thanks
lcdtx···· pin· ra.0
error 16 unkown command··· "lcdtx"
I can 't even debug it shows that error all the time now.. is there something in the SX/B compiler setting??? this is getting strange
to get a screen shot for JonnyMac,
(1)reproduce your problem with SX/B, (2)then press the button on you're keyboard that says "Print Scrn". (3)Then open "Paint" from the Windows Accessories folder. (4) Click on "Edit", then "Paste". (5) that will give you a snap shot of your computer. (6) Next you need to save it in a format, that is small enough to be transmitted to the forums. (7) "File"-"Save As. In the pop-up box on the bottom, you have the option to "Save as type", Select .PNG and then save it. (8)upload the program by just picking the file with the attachment manager
If you have made any changes to the program, you can easily upload the program by just picking the file with the attachment manager also
Myself, I think you need to start over. Leave the program alone, Put both Dip switches on the LCD to the ON position make sure your wire connections are correct (be sure you are using the same ground that the chip does) and after you program the chip, remove the SX-Key or Blitz and make sure you have a 4Mhz resonator in place.
Then turn on your SX and see if it works.
Also, if you don't have it, Your manual is here
Post Edited (Capt. Quirk) : 6/21/2007 6:09:04 AM GMT
The BS2 code you sent me said T2400 in the comments.
The code I just sent you uses T2400.
But the faster baud rates would be better, try the code as it (with the display set to 2400) and see if it works.
19,200 would make it much more responsive.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
“The United States is a nation of laws -· poorly written and randomly enforced.” - Frank Zappa
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
Post Edited (Bean (Hitt Consulting)) : 6/21/2007 1:38:04 PM GMT
It's not "strange". Your SX chip is working, your SX-key is working and your LCD is working. That means it's something simple, that is staring you in the face and it will be worth a good laugh, after you find it.
<
Bill
You do know that the Debug system is not the same as the BS2. .....Read This
When you use the SX-Key and you want to just program the chip with the resonator in place, use the shortcut keys "CTRL-P" (this is the simplest way, you don't need Debug yet)
If you want to program it with the "Debug" feature you need to remove the resonator, conect the SX-key, turn on the PDB.
Then·set the clock speed with "CTRL-K", Now your ready to click on the "spider" and debug. But you really should read that link and This One Too.
Post Edited (Capt. Quirk) : 6/21/2007 6:50:20 PM GMT
The compiler is telling you that "lcdtx" is not a command it recognizes. In fact, it is not a command at all! It is part of a pin definition and it looks to be correct. Since the compiler is misunderstanding the purpose of the "lcdtx" entry there is very likely an error BEFORE that line. You may have an improperly defined FREQ statement. For 50MHz it should look like this:
It is also possible that you might have accidentally typed an invalid character prior to the line that is reporting the error. I recommend re-downloading JonnyMac's demo program. I think you should be able to run it exactly as it is in Debug or Run modes with the SX-Key attached and without any resonator. If you want to use your 50MHz resonator then you will need to change the FREQ entry as I have described above.
I hope this helps.
- Sparks
What SX/B compiler version are you running? Look at the output of a file that will compiler (use Ctrl-L) and the compiler version will be listed at the top. I agree with Sparks: the problem is likely above the point where the IDE is pointing to -- that's why I'd like to "see" what you're seeing.
but at least we all know now what we are dealing with. What new update do I have to download now to get this thing working...????
READINC tmpW1, tmpB1
error "unkown Command "readinc"
Thank you all for your help .....
It's not uncommon for manufacturers to send a product disc that does not contain the latest version of their software. Why? Simple. When they make the discs, they farm out the work to a disc duplicator and have hundreds, thousands, or more made all at once. This gives them a great price break. It also means that they may come out with new versions of the software before they finish using all the discs they had made that had the older software.
It always pays to go to a company's website and see if they have a new version of the software whenever you have any problems. Annoying perhaps, but a simple fact of life.
Thanks,
PeterM