Searching \ for '[SX] 16 Bit Calculations' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/ubicom/devices.htm?key=sx
Search entire site for: '16 Bit Calculations'.

Exact match. Not showing close matches.
PICList Thread
'[SX] 16 Bit Calculations'
2006\11\21@091013 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

Mary,
 What type of calculations do you want to perform ?

P.S. I added a subject line to your post for you.

Bean.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=156248#m156430
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\11\21@173309 by MARY_JONESn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, MARY_JONES wrote:

my final project will include addition, subtraction, multiplicatio, and division.
Currently i am trying to figure out how to do addition and subtraction

I am using 8 dip swith button as form of input and 8 LED's as outputs.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=156248#m156547
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\11\21@173506 by MARY_JONESn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, MARY_JONES wrote:

n thanks for the subject line Bean
Huda
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=156248#m156549
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\11\21@173704 by MARY_JONESn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, MARY_JONES wrote:

n thanks for the subject line Bean mary
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=156248#m156550
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\11\21@185817 by rodneymcn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, rodneymc wrote:

Mary,
Still confused...

Can you detail your input?

For example, you have a byte input now, apparently.  Do you need to have a word input (2 bytes) and a word result (2 bytes)?

First off, are we talking an infix calculator or RPN?
If it's an infix calculator , then you need a middle step for the operator (e.g. 3 + 5 =)
If it's RPN, then you put the operator at the end (3 ent 5 ent + )
Then you need to devise the input.  Are you fixed with only 8 switches for input?  How are the operators handled? How is entry handled?  
If you need a word input  you need to have a means of reading in the byte values twice per 'digit' (MSB/LSB) or have 16 switches.

As far as output, If the result is a word you'll need to somehow come up with how to display 2 bytes on the LED's (e.g. display MSB, pause, display LSB, or use 16 LED's.)
Sounds kinda like a school project...

Rodney
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=156248#m156569
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\11\22@094352 by George Herzogn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, George Herzog wrote:

Well, SXLIST [www.sxlist.com] is definitely the right place to get started.  
I suspect that Mary wants to multiply 8 bits by 8 bits which gives 16 bit results.  And Calculator may be a misnomer, she might want to demonstrate binary operation of math calculations.  
It does seem that she should consider having 16 leds though.  That would require she use an SX-48 to have enough i/o.  Of course she could keep the 8 leds and display a high and low byte sequentially and stay with an SX-28.

With a DIP switch, this is certainly not going to be an infix or RPN calculator.  That would require 10 numeric keys AND four function keys AND an equal key AND a clear
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=156248#m156629
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

2006\11\23@201533 by transistortoastern/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, transistortoaster wrote:

If you write a program in SX basic, you can use the built in multiplication, division, modulo, addition, etc with 2 byte resullts or operands. Just write the code and take a look at the compiler output and you will see how all these operations are handled with more than 8 bits.
Frank
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=156248#m156854
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)

More... (looser matching)
- Last day of these posts
- In 2006 , 2007 only
- Today
- New search...