Can anyone help me ....
Xtreme
Posts: 8
Hello,
I want to make a code in the sx key for a 16bit and 8bit calculator doing multiplication, division, addition, substraction. The problem is that i don not know how to set the wires and the buttons to make it work. I did the code i do not know if is right.
I hope there is someone who can help me.
Thank You
I want to make a code in the sx key for a 16bit and 8bit calculator doing multiplication, division, addition, substraction. The problem is that i don not know how to set the wires and the buttons to make it work. I did the code i do not know if is right.
I hope there is someone who can help me.
Thank You
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Is there a sample in the SX/B help file of multiplexing buttons or wiring up a keypad? If not, might be good to add. I think it might but what Xtreme is looking for, but I'm not sure.
Thanks, PeterM
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
If you want Assembler rather than SX/B level code, you really don't have to start completely from scratch as there is quite a bit already available.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
Thank you for trying to help me. At this time i am not at home and i cannot send you the code, I will within 24 hours. What i want to do is to write an assebler code for a programmable calculator. I do not know how to set the wires and the buttons on the board. ·My board is the SX Tech Board.
IMHO, an RPN calculator would be quite interesting and I think the stack approach would be very easy to impliment. A 4x4 keypad would provide you the function keys along with the number keys.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
I tried the side you are giving me, but it says that there is no such site.
Do take a look as the code is public and it is a very good beginning.
Dyslexia is taking hold.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
I entered the code here (that s the 8- bit calc for addiotiuona na dsubtraction )
please be aware that going through other peoples code is a tedious and thankless task.
In this case there is a rather obvious lack of attention by it's creator.
If you try to assemble this, the assembler will point out quite a few errors.
Perhaps you could attend these first?
The patience and diligence of regular contributors to this forum never ceases to·amaze me, they·should be regarded as·a highly valued resource, in my opinion.· Please do not contibute to their burnout.
bongo
·
sorry for the mistakes the code had, thats the correct code
Should be mov !rb,#$00 ; all of port B lines are output
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module"·available from Parallax for only $28.95 http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module"·available·for only·$49.95·www.sxvm.com
Available now! Cheap 4-digit LED display with driver IC·www.hc4led.com
"I reject your reality, and substitute my own." Mythbusters
·
The next step is to program an SX and debug, or load this into Gunther's SX sim. With either of these tools you can step through the program and see exactly what the SX is doing and therefore learn and fix any errors.
A lot of time must have gone into developing these tools, take advantage of them. I wonder why Gunther would go to the trouble of SX sim, and then give it away? One assumes he must be completely mad.
You will never (and you may quote me on this) get anything worthwhile running without debug or SX sim. Learning how to use them is not optional.
The good news is that this will not take you long. At first appearances you may have started with something a bit simpler, but the 8 bit math is good.
bongo
The problem i have is that i do not know how to set the wires in the board. However that code has the input number already. What i really want is to put a dip switch and so the user will input the numbers he/she wants and get the results.
Thank You
At the bottom of this page: http://www.parallax.com/sx/index.asp you will find an offer of a free book download. I think you will find everything you need plus more in there.
Have also noticed people that buy a kit that includes Gunther's book highly recommend it. (Gunther's book)
There has been a lot of material written specifically for the purposes of getting started. And there is also a logical progression in those tutorials that you can not get from this discussion group.
Go look 'em up. As you may have noticed, I am not going to directly answer your questions, even if I was clear about what they are. I cannot, because I know if we go down that road, your questions will never end. They will just get more sophisticated. You need to familiarize yourself with the resources that have already been placed, all over this website.
Good luck and concentrate grasshopper...............
bongo
Cheers,
Peetr (pjv)
If you want quick results, look at http://www.parallax.com/detail.asp?product_id=604-00030a
I will first try with the one i have
I totally have to disagree wih your comments sounds like a college professor i once had. Some people just need that one little hump to get over in the beginning and then thier off running. Maybe he doesn't have a lifetime to search all over the forum or website, which by the way is not the easiest to navigate. They way i look at it is you may learn something from his questions, trials and tribulations, if you don't ever learn from someone else in life then you must be a god. I am one that is also a newbe and just remember·we have all·been there too, at least he has tried. At work I get alot of enjoyment out of training coworkers and when they have grasped a certain situation or a piece of equipment then there's alot of job staisfaction. I also teach them what has worked best for me and let them decide if it works good for them or not.
Kudos to John, Bean and everyone else with a positive attitude to help!
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (DigitalDj) : 4/26/2006 12:29:29 AM GMT
This is one of those things that cuts both ways. It's pretty clear that Xtreme didn't even assemble his code the first time he posted it because it won't even assemble as it was written. When someone hasn't even taken care of step one (making sure the code will assemble), it tends to put people off wanting to help. If he wanted help with explaining why he was getting error messages, that would be one thing, Instead, it was simply posted with a "Here you go forum people" kind of message, leaving you to assume that he wanted members here to debug and correct his code. That's just not the way it works. At some point, beginners have to do some of the work.
In addition, Xtreme has stated a couple of times that he "doesn't know how to set the wires in the board". First, I think that English is a second language for Xtreme, so that's always a challenge for both sides. Second, his statement is incredibly vague (see previous sentence), which makes it hard for anyone to figure out what is being asked. Third, in my post on 4/20, I specifically take a guess at what Xtreme wants and Jon offers up that a sample is available. However, Xtreme never once commented on this to say if the guess was wrong and provide clarification of what he meant, or to thank anyone if it was right. This also makes people less interested in helping.
Folks here try to help out as much as possible, but so often the people who post come with an attitude that as long as they have done some bare minimum amount of work that the forum should leap to their feet and do the rest for them. I am not saying that Xtreme is necessarily doing that, but it feels dangerously close. Perhaps this is the language barrier (if I'm right about that), but once again, this tends to put most people off being willing to help.
Finally, you mention that, "Maybe he doesn't have a lifetime to search all over the forum or website." Well, lets put the shoe on the other foot. If he doesn't have the time to search, what makes him or you or anyone think that the rest of us have the time to do it for him? Nothing is more frustrating than someone who can't or won't do even the most rudimentary Google search for answers, and that is something I see all too often on the forums. Remember, all the help given here is voluntary, so the folks asking for help need to bend over backwards, not the folks giving the answers.
I agree that we should all have a positive attitude, but I think you missed the point of Bongo's post completely. I think Bongo's post has an extremely positive attitude. It wasn't a "Let me change your diaper and tuck you into bed" attitude, but more of a "It's time for you to learn how to use the free resources at hand and then come back with more specific questions" attitude. Showing that you have tried and failed before asking for help gets a lot more respect than coming to the forum and just saying, "Teach me everything I need to know." Bongo is trying to nudge Xtreme into the "More Respect" category.
Thanks, PeterM