??? 05/15/05 14:29 Read: times |
#93442 - Advance calculation and processing |
Hello:
I've got a problem in averaging. I program in assembler, and I use 89S52, which is a 8-bit MPU. I want to know how to take average of two or more 8-bit number stored in RAM? for example, 20H = #253, 21H = #189, how to make "average = 221"? And one more question: Is it a must to use C, rather than assembler, for advanced calculation, such as Sine function or >8-bit calculation in 8051? Stanley |
Topic | Author | Date |
Advance calculation and processing | 01/01/70 00:00 | |
It is easy | 01/01/70 00:00 | |
What if I persist? | 01/01/70 00:00 | |
ok | 01/01/70 00:00 | |
Not entirely sure | 01/01/70 00:00 | |
late night or miller time? | 01/01/70 00:00 | |
sine function | 01/01/70 00:00 | |
Correction | 01/01/70 00:00 | |
it works, but | 01/01/70 00:00 | |
Overflow ? | 01/01/70 00:00 | |
calrification![]() | 01/01/70 00:00 | |
Another sine alternative | 01/01/70 00:00 |