Floating point number display method and apparatus applied to 8-bit single chip microcomputer
A display method and a display device technology, which are applied in the direction of electrical digital data processing, digital data processing components, instruments, etc., can solve the problems of reducing code operation efficiency and affecting the performance of single-chip microcomputers, etc., so as to increase the selection cost and optimize product performance. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] figure 1 It shows the flow of the floating-point number display method applied to an 8-bit single-chip microcomputer provided by Embodiment 1 of the present invention, specifically including S101 to S104, which are described in detail as follows:
[0026] S101. Obtain a calculation formula of a floating point number to be displayed.
[0027] In 8-bit microcontrollers, various data display problems are often encountered, such as voltage display, temperature display, etc., and these data exist in the form of floating point numbers. Therefore, it is first necessary to obtain a calculation formula for calculating the floating-point number to be displayed according to actual needs.
[0028] S102. Multiply the calculation formula by 10 according to the display accuracy requirements of the floating-point numbers to be displayed n processing, n is a natural number.
[0029] In this embodiment, the obtained calculation formula of the floating-point number to be displayed is m...
Embodiment 2
[0034] figure 2 It shows the flow of the floating-point number display method applied to an 8-bit single-chip microcomputer provided by Embodiment 2 of the present invention, specifically including S201 to S204, which are described in detail as follows:
[0035] S201. Obtain a calculation formula of a floating point number to be displayed.
[0036] S202. Simplify the calculation formula, so that the known numbers in the simplified calculation formula are co-prime numbers.
[0037] In this embodiment, when the numerical value of the known number in the calculation formula is relatively large, the calculation formula can be simplified, and the common divisor of the known number can be removed, so that the known number in the simplified calculation formula is a coprime number . When the data calculation amount of the calculation formula is large, the data calculation amount of the subsequent steps can be effectively reduced and the operation efficiency can be improved by simpl...
Embodiment 3
[0044] image 3 It shows the flow of the floating-point number display method applied to an 8-bit single-chip microcomputer provided by Embodiment 3 of the present invention, specifically including S301 to S305, which are described in detail as follows:
[0045] S301. Obtain a calculation formula of a floating point number to be displayed.
[0046] S302. Simplify the calculation formula, so that the known numbers in the simplified calculation formula are co-prime numbers.
[0047] S303. Multiply the calculation formula by 10 according to the display accuracy requirements of the floating-point numbers to be displayed n processing, n is a natural number.
[0048] In this embodiment, the value of n may refer to the foregoing embodiment 1 or embodiment 2, and details are not described here.
[0049] S304, multiply by 10 n The processed calculation formula directly performs integer calculation to obtain an integer value result.
[0050] Since the input variable type of the cal...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com