Location:
Search - BCD Division
Search list
Description: 这是MCS51单片机十进制运算子程序库,包括:单字节、双字节、多字节的加法、减法、乘法、除法、开方运算等。-This is the MCS51 metric calculation subroutine library, including : single-byte and double byte. Multi-byte addition, subtraction, multiplication, division, etc. rooting.
Platform: |
Size: 5120 |
Author: 蔡成林 |
Hits:
Description: 8051运算类子程序,包括双字节乘法子程序、多字节数乘10子程序、多字节无符号数出除法子程序、多字节BCD码减法子程序、多字节BCD码取补子程序、多字节BCD码左移十进制一位(乘十)子程序。-8051 subroutine computing category, including double-byte multiplication subroutine, multi-byte count by 10 subroutines, multi-byte unsigned number of the division subroutine, multi-byte BCD subtraction subroutine code, code access multi-byte BCD complement subprogram, multibyte BCD code to the left of a decimal (by ten) subroutine.
Platform: |
Size: 13312 |
Author: Michael Lee |
Hits:
Description: 被除数由高到低存于TEMP_STR-->TEMP_STR+4中,除数存于TEMP_STR+10-->TEMP_STR+14中,
运算后商存于TEMP_STR-->TEMP_STR+4中,余数存于TEMP_STR+5-->TEMP_STR+9中
高字节在前
方法:移位相除
10位BCD码除法 XUE:20080729-High to low dividend deposited in TEMP_STR-> TEMP_STR+ 4, the divisor stored in TEMP_STR+ 10-> TEMP_STR+ 14, the operations are kept in after TEMP_STR-> TEMP_STR+ 4, the remainder stored in TEMP_STR+ 5-> TEMP_STR+ 9 in the high byte of the former method: shift 10 BCD division code division XUE: 20080729
Platform: |
Size: 1024 |
Author: xuehanlong |
Hits:
Description: 用VHDL语言设计一个数字秒表:
1、 秒表的计时范围是0秒~59分59.99秒,显示的最长时间为59分59秒。
2、 计时精度为10MS。
3、 复位开关可以随时使用,按下一次复位开关,计时器清零。
4、 具有开始/停止功能,按一下开关,计时器开始计时,再按一下,停止计时。系统设计分为几大部分,包括控制模块、时基分频模块、计时模块和显示模块等。其中,计时模块有分为六进制和十进制计时器。计时是对标准时钟脉冲计数。计数器由四个十进制计数器和两个六进制计数器构成,其中毫秒位、十毫秒位、秒位和分位用十进制计数器,十秒位和十分位用六进制计数器。计时显示电路时将计时值在LED上七段数码管上显示出来。计时电路产生的计时值经过BCD七段码后,驱动LED数码管。-With VHDL language design digit stopwatch: 1, Stopwatch s time scope is 0 second ~59 minute 59.99 second, the demonstration longest time is 59 minute 59 second. 2, The time precision is 10MS. 3, The reset switch may momentarily use, presses down a reset switch, the timer reset. 4, Has starts/the stop function, according to the switch, the timer starts to time, presses again, stops timing. The system design divides into several major parts, including control module, time base frequency division module, time module and display module and so on. And, the time module influentials for the senary and the decimal base timer. The time is to the standard clock pulse counting. Counter by four decade counters and two senary counter constitution, a millisecond position, ten milliseconds positions, a second position and the rank with the decade counter, ten second position and ten ranks use the senary counter. When time display circuit will time the value on the nixietube to demonstrate on LED. The
Platform: |
Size: 5120 |
Author: SAM |
Hits:
Description: 在目前所发表的十六进制转化成BCD码的处法中,一般都采用移位相加的方法,其计算过程都比较费时,不适宜很多场合,且很多不适宜C语言调用。而在C语言中,有些初学者用求余的方法来做这种运算,造成程序十分臃肿。下面这段程序仿照竖式除法来进行运算,速度超快。-Published in the current hex code into a BCD at law, in general, have adopted the method of shifting the sum of its calculation is relatively time-consuming and not suitable for many occasions and many of them not suitable for C language calls. In the C language, some beginners seeking more than the method used to do this operation, resulting in a very cumbersome process. This procedure along the lines of the following vertical division to carry out operations, super-fast.
Platform: |
Size: 1024 |
Author: 高先生 |
Hits:
Description: 义隆单片机:二进制数转换为ASCⅡ码 多字节二进制加法 多字节二进制减法 二进制乘法运算 多字节二进制除法 BCD 数转换为二进制数 二进制数转换为BCD 码-Elan SCM: binary code is converted to ASC Ⅱ multi-byte binary addition multi-byte binary subtraction binary multiplication multi-byte binary division BCD number is converted to a binary number binary number is converted to BCD code
Platform: |
Size: 2048 |
Author: 郑雄 |
Hits:
Description: 16位二进制数求除法程序,16位二进制数转化为BCD码-16-bit binary division program requirements, 16-bit binary number into BCD code
Platform: |
Size: 3072 |
Author: 石传东 |
Hits:
Description: Code VHDL for Newton Raphson BCD Division and Carry Save Multiplication in BCD
Platform: |
Size: 8192 |
Author: Juan Manuel |
Hits:
Description: BCD码的字符串除法
BCD数字经过减6修正后的除法功能-BCD code of the string division
Platform: |
Size: 1024 |
Author: 刘杰 |
Hits:
Description: 除法计算:把用除以10的办法二进制数转成BCD码例子-Division calculation: 10 ways to use the binary number divided by the converted BCD code example
Platform: |
Size: 1024 |
Author: wdf |
Hits:
Description: 松翰子程序库,@DAA 实现DAA 指令
ADD_BCDINC n 字节压缩BCD 加1
MOV_BCD1W n 字节压缩BCD 左移1 位
ADD_BCDNB n 字节压缩BCD 加法
SUB_BCDNB n 字节无符号压缩BCD 减法
MUL_BCDNB n 字节压缩BCD 乘法
DIV_BCDNB n 字节压缩BCD 除法
CHA_NHEXTOMBCD n 字节的HEX 码转换为m 个字节的压缩BCD 码
CHA_1HEXTO2WBCD 1 字节HEX 转换为2 位十进制数
CHA_1HEXTO3WBCD 1 字节HEX 转换为3 位十进制数
CHA_2HEXTO5WBCD 2 字节HEX 转换为5 位十进制数
CHA_4HEXTO10WBCD 4 字节HEX 转换为10 位十进制数
CHA_5WBCDTO2HEX 5 位十进制数转换为2 字节HEX
CHA_1HEXTOASCII 1 字节HEX 转换为ASCII 码
CHA_ASCIIT01HEX ASCII 码转换为1 字节HEX
ADD_HEX2B 2 字节HEX 加法-Sonix subroutine library, @ DAA DAA instruction ADD_BCDINC n bytes to achieve compression plus 1 MOV_BCD1W n bytes of BCD BCD compressed left a ADD_BCDNB n bytes compressed bytes of BCD addition SUB_BCDNB n unsigned bytes compressed compressed BCD subtraction MUL_BCDNB n BCD BCD multiplication DIV_BCDNB n bytes of compressed HEX division CHA_NHEXTOMBCD n bytes m bytes of code into the compression code CHA_1HEXTO2WBCD 1 byte HEX BCD converted to two decimal CHA_1HEXTO3WBCD 1 byte HEX converted to three decimal CHA_2HEXTO5WBCD 2 HEX byte is converted to 5 decimal CHA_4HEXTO10WBCD 4 bytes of HEX 10-bit decimal number converted to decimal conversion CHA_5WBCDTO2HEX 5 to 2 bytes of HEX CHA_1HEXTOASCII 1 byte ASCII HEX conversion code CHA_ASCIIT01HEX ASCII code is converted to 1 byte HEX ADD_HEX2B HEX 2-byte addition
Platform: |
Size: 166912 |
Author: 向常俊 |
Hits:
Description: 用VHDL语言设计计数显示电路。设计输出为3位BCD码的计数显示电路。由三个模块构成:十进制计数器(BCD_CNT)、分时总线切换电路(SCAN)和七段显示译码器电路(DEC_LED)-VHDL language to count the display circuit. The design output for display circuit 3 BCD count. Consists of three modules: the decimal counter (BCD_CNT), time division bus switching circuit (SCAN) and seven-segment display decoder circuit (DEC_LED)
Platform: |
Size: 46080 |
Author: hhsyla |
Hits:
Description: bcd码的ALU单元,包含全加、全减、乘法、除法器-bcd code ALU unit, including All-Canadian, all subtraction, multiplication, division, unit
Platform: |
Size: 52224 |
Author: georgeniu |
Hits:
Description: 目录:1. 堆栈时钟初始化
2. RAM自测子程序
3. 二进制转化为BCD码(二进制16位(65536)放R15,结果放R4,R5)
4. BCD码转化为二进制(BCD码放R4,二进制放R5) R5=XO+10*(X1+10*(X2+10*X3))
5. BCD码转化为二进制(BCD码放R4,二进制放R5)R5=XO+10*X1+100*X2+1000*X3
6. 冒泡排序法(适合20个数字以下)
7. X=a^+b^(a为2个字节,b为2个字节,X为3个字节)
8. 比较器的应用
9. 从0X1080H起始的位置写数字,然后读出写入的数字并放在以0X200H开始的位置
10. 采用中断方式,利用TimerA, P1口输出3个不同频率的波形
11. 在比较模式下,使用输出模式7,输出PWM波形
12. CHU32_16除法子程序-Contents: 1. Stack clock initialization 2. RAM self-test routine 3. Binary converted to BCD (binary 16 (65536) put R15, the results put the R4, R5) 4. BCD code into binary (BCD laying R4, binary put R5) R5 = XO+10* (X1+10* (X2+10* X3)) 5. BCD code into binary (BCD laying R4, binary put R5) R5 = XO+10* X1+100* X2+1000* X3 6. bubble sort method (suitable for 20 digits less) 7. X = a ^+b ^ (a is 2 bytes, b is 2 bytes, X is 3 bytes) 8 9 comparator application from writing starting position 0X1080H number and then read out the written numbers and placed in the starting position with 0X200H 10. using interrupt mode, use TimerA, P1 port output three different frequency waveform 11 in Compare mode, using the output mode 7, the output PWM waveform 12 . CHU32_16 division subroutine
Platform: |
Size: 3072 |
Author: fzgh |
Hits:
Description: 目录:1. 堆栈时钟初始化
2. RAM自测子程序
3. 二进制转化为BCD码(二进制16位(65536)放R15,结果放R4,R5)
4. BCD码转化为二进制(BCD码放R4,二进制放R5) R5=XO+10*(X1+10*(X2+10*X3))
5. BCD码转化为二进制(BCD码放R4,二进制放R5)R5=XO+10*X1+100*X2+1000*X3
6. 冒泡排序法(适合20个数字以下)
7. X=a^+b^(a为2个字节,b为2个字节,X为3个字节)
8. 比较器的应用
9. 从0X1080H起始的位置写数字,然后读出写入的数字并放在以0X200H开始的位置
10. 采用中断方式,利用TimerA, P1口输出3个不同频率的波形
11. 在比较模式下,使用输出模式7,输出PWM波形
12. CHU32_16除法子程序-Contents: 1. Stack clock initialization 2. RAM self-test routine 3. Binary converted to BCD (binary 16 (65536) put R15, the results put the R4, R5) 4. BCD code into binary (BCD laying R4, binary put R5) R5 = XO+10* (X1+10* (X2+10* X3)) 5. BCD code into binary (BCD laying R4, binary put R5) R5 = XO+10* X1+100* X2+1000* X3 6. bubble sort method (suitable for 20 digits less) 7. X = a ^+b ^ (a is 2 bytes, b is 2 bytes, X is 3 bytes) 8 9 comparator application from writing starting position 0X1080H number and then read out the written numbers and placed in the starting position with 0X200H 10. using interrupt mode, use TimerA, P1 port output three different frequency waveform 11 in Compare mode, using the output mode 7, the output PWM waveform 12 . CHU32_16 division subroutine
Platform: |
Size: 1024 |
Author: fzgh |
Hits:
Description: VHDL语言编写的8位BCD除法器,可以实现浮点数计算,只支持正数运算,并用isim进行仿真-VHDL language 8 BCD division, can achieve floating-point calculations, which only supports a positive number arithmetic, and use isim simulation
Platform: |
Size: 525312 |
Author: liudongzhu |
Hits:
Description: 松瀚单片机的汇编程序,包含乘除法和二进制或十六进制转bcd-1)sonic asm files for math of division and multiplication.2)hex to bcd
Platform: |
Size: 2048 |
Author: zhanghonglang |
Hits:
Description: 单片机C常用功能函数。包括ASCII、BIN、HEX、BCD等相互转换,四舍五入除法等功能。-Microcontroller C functions commonly used functions. Including ASCII, BIN, HEX, BCD etc. conversion, rounding division, and other functions.
Platform: |
Size: 2048 |
Author: Ivan |
Hits:
Description: 一、对程序进行改错
多字节非压缩型BCD数除法 (96875/5=19375)
二、十进制转化为二进制
编制程序,把十进制数15786转化成二进制数(One:For a correction of program
Multi byte non compression type BCD number division (96875/5=19375)
Two:Decimal into binary
To program a decimal number 15786 into binary numbers)
Platform: |
Size: 155648 |
Author: 寒修末
|
Hits:
Description: 数字时钟可以显示分、秒,并通过按键进行复位;数字时钟由四个基本模块组成,顶层模块、分频模块、计数模块、译码显示模块。(1)分频模块 分频器将开发板提供的6MHz时钟信号分频得到周期为1s的控制信号,控制计数器改变状态。(2)计数模块:秒钟和分钟利用两个模60的BCD码计数器实现。计数器分为高4位与低4位分别控制低4位每秒钟加1,变化状态为0~9,低4位状态变化到9时,高4位加1,变化状态为0~5。秒钟计数达到59时,分钟低四位从1开始,每59秒加1,低4位状态变化到9时,高4位加1,变化状态为0~5,计数器采用异步复位。(3)译码显示模块BCD码通过4-7译码器译码后驱动数码管显示。以上功能分别由BCD码显示模块和七段译码管功能设计 (4)顶层模块层模块是将各功能模块连接起来,(The digital clock can display the minute and second, and reset it by key.
The digital clock is composed of four basic modules, the top layer module, the frequency division module, the counting module and the decoding display module.)
Platform: |
Size: 293888 |
Author: 若能绽放光芒 |
Hits: