3847 views|4 replies

558

Posts

0

Resources
The OP

MCS-51 MCU Practical Subroutine Library [Copy link]

Contents: Currently, several versions of subroutine libraries have been published, each with its own characteristics. The square root algorithm in this library is a fast approximation algorithm that can achieve the same accuracy as the Newton iteration method, but the speed is about twenty times faster, exceeding the speed of double-byte fixed-point division. This subroutine library has made major revisions to the subroutine library in the appendix of the book "Microcontroller Application Programming Technology": (1) According to the current popular IBM PC-based development system's regulations on assembly language, readers do not need to modify it and can use it directly. (2) The floating-point operation subroutine library has been further tested and optimized, and the conversion subroutines between decimal floating-point numbers and binary floating-point numbers have been completely rewritten to improve the operation accuracy and reliability. (3) Several new floating-point subroutines (transfer, comparison, clearing, zero judgment, etc.) have been added to make the work of writing data processing programs simpler and more intuitive. The instructions for use list the most important items: label, entry condition, exit information, affected resources, and stack requirements. For the meaning of each item, please refer to the content of Chapter 6, Section 6.3.7 of "Microcontroller Application Programming Technology". The program listing has four columns: label, instruction, operand, and comment. The comments are as detailed as possible to facilitate the reader's understanding. The use of the subroutine library is as follows: 1. Link all the contents of the subroutine library after the application program and compile it uniformly. The advantage is that it is simple and convenient, but the disadvantage is that the program is too long and a large number of irrelevant subroutines are also included in it. 2. Only link the relevant parts of the subroutine library after the application program and compile it uniformly. Some subroutines need to call some low-level subroutines, which should also be included. The advantage is that the program is compact, but the disadvantage is that the subroutine library needs to be carefully edited.

MCS-51单片机实用子程序库 57页 0.3M.pdf

334.51 KB, downloads: 429

This post is from 51mcu

Latest reply

Thanks for sharing!!!!  Details Published on 2011-1-3 15:49

112

Posts

0

Resources
2
Good stuff, thanks for sharing
This post is from 51mcu

376

Posts

2

Resources
3
Thanks for sharing!!!!
This post is from 51mcu

23

Posts

1

Resources
4
There are many such things. I still need to see how the original poster's is.
This post is from 51mcu

15

Posts

0

Resources
5
Thanks for sharing!!!!
This post is from 51mcu

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list