Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/10/07 16:02
Read: times


 
#144321 - next version tannks Jan & Andy
Responding to: ???'s previous message
next version tannks Jan & Andy

comments still solicited

Erik


The '51 was never intended as a 'mathematical machine' but rather a process controller. The '51 is a microcontroller, not a microprocessor and, as such, has very limited mathematical processing capabilities. That fact and the fact it is an 8 bit device makes floting point slow and memory usage ntensive.

Many, many applications where the novice 'automatically' goes for a floating point package can be handled much more efficiently and faster by fixed point.

A variant of floting point that, as far as I know, does not have a name is what I would call "fixed math with inserted point" which fit the '51 as a glove.

Now what the heck is that you may ask. I will illustrate with an example (a Cash register).

$1,23 + $0.17, to a novice, seems like a natural app for the standard slow and tedious 'standard' floting point operation, but what is wrong with just doing 123 cents + 17 cents and inserting the decimal point on the display (and in the data stream to the printer), the user will never know the differennce.
The same method can be applied all over (instead of degrees use tenths of degrees, instead of kg use g ....

List of 16 messages in thread
TopicAuthorDate
FP FAQ edits needed            01/01/70 00:00      
   Choosing an appropriate order of magnitude            01/01/70 00:00      
   excuse me?            01/01/70 00:00      
      thx, I GOOFED            01/01/70 00:00      
         next version tannks Jan & Andy            01/01/70 00:00      
            scaling            01/01/70 00:00      
               Certainly not!            01/01/70 00:00      
   some inspiration            01/01/70 00:00      
   processor <-> controller, where is the difference?            01/01/70 00:00      
      the subtle differences are...            01/01/70 00:00      
         terminology taken too strictly            01/01/70 00:00      
            controller/processor removed, FAQ inserted.            01/01/70 00:00      
      Well, there's the "standard" definition ...            01/01/70 00:00      
         Of course, but makes this the one being a ...            01/01/70 00:00      
            let's put it in this way            01/01/70 00:00      
               quoting myself            01/01/70 00:00      

Back to Subject List