Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 3rd April 2008, 12:04 PM   (permalink)
Default math functions in 8051

hi

how to calculate cos angle(cos theta) in assembly language.

please help me
thank you
achuthkumar is offline   Reply With Quote
Old 3rd April 2008, 12:54 PM   (permalink)
Default

Quote:
Originally Posted by achuthkumar
hi

how to calculate cos angle(cos theta) in assembly language.

please help me
thank you
To what angular resolution.?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is offline   Reply With Quote
Old 3rd April 2008, 05:18 PM   (permalink)
Default

I would suggest using lookup tables if you at all can. Trig functions (or anything using or resulting in floating-point) will increase your processing time and memory demands significantly. Some 8051s will be better than others in this regard, though--the 8015 processor family is huge.


Torben
Torben is offline   Reply With Quote
Old 3rd April 2008, 09:18 PM   (permalink)
Default

Quote:
Originally Posted by Torben
I would suggest using lookup tables if you at all can. Trig functions (or anything using or resulting in floating-point) will increase your processing time and memory demands significantly. Some 8051s will be better than others in this regard, though--the 8015 processor family is huge.


Torben
hmmm... i think the only differnece between those different members of the 8051 family is the peripherals, but they all share the same architecture, and surely the same ALU.

achuthkumar, i suggest you read this part of my 8051 tutorial:
http://www.ikalogic.com/tut_8051_2.php
__________________
Ibrahim Kamal
check my electronics and robotics page: http://www.ikalogic.com/
ikalogic is offline   Reply With Quote
Old 4th April 2008, 01:00 AM   (permalink)
Default

Look at the clock rate for some turbo charged 8051's. Upwards of 48 MHz.
Let's not forget the hardware multiply and divide. 8 x 8 it's true, but better than a sharp stick in the eye.
__________________
We never have time to do it right; but we always have time to do it over.
Papabravo is offline   Reply With Quote
Old 5th April 2008, 12:15 AM   (permalink)
Default

Quote:
Originally Posted by ikalogic
hmmm... i think the only differnece between those different members of the 8051 family is the peripherals, but they all share the same architecture, and surely the same ALU.
There are differences in peripherals, but also in speed, instructions per cycle, and so on. There is (was) also at least one 8051 variant from Ramtron which included an FPU among its features, but that one appears to now be obsolete.


Torben
Torben is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
hyperterminal communication w/ 8051 spyghost Micro Controllers 8 22nd May 2008 10:54 AM
8051 Microcontroller (Urgent Help) UAE_Engineer Micro Controllers 5 22nd March 2007 11:13 AM
Could I get away with this? (8051 + AM29F010B) mstechca Micro Controllers 0 9th March 2006 02:04 AM
interfacing 16*16 matrix display with 8051 pmphilip Micro Controllers 0 1st February 2005 03:47 AM
8051 "data" storage within program memory - how? L0D|Mr_B Micro Controllers 1 11th January 2004 02:56 PM



All times are GMT. The time now is 01:20 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.