文件名称:B16TOBCD
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [ASM] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- cris*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Binary To BCD Conversion Routine
This routine converts a 16 Bit binary Number to a 5 Digit
BCD Number. This routine is useful since PIC16C55 & PIC16C57
have two 8 bit ports and one 4 bit port ( total of 5 BCD digits)
The 16 bit binary number is input in locations H_byte and
L_byte with the high byte in H_byte.
The 5 digit BCD number is returned in R0, R1 and R2 with R0
containing the MSD in its right most nibble.
Performance :
Program Memory : 35
Clock Cycles : 885-Binary To BCD Conversion Routine
This routine converts a 16 Bit binary Number to a 5 Digit
BCD Number. This routine is useful since PIC16C55 & PIC16C57
have two 8 bit ports and one 4 bit port ( total of 5 BCD digits)
The 16 bit binary number is input in locations H_byte and
L_byte with the high byte in H_byte.
The 5 digit BCD number is returned in R0, R1 and R2 with R0
containing the MSD in its right most nibble.
Performance :
Program Memory : 35
Clock Cycles : 885
This routine converts a 16 Bit binary Number to a 5 Digit
BCD Number. This routine is useful since PIC16C55 & PIC16C57
have two 8 bit ports and one 4 bit port ( total of 5 BCD digits)
The 16 bit binary number is input in locations H_byte and
L_byte with the high byte in H_byte.
The 5 digit BCD number is returned in R0, R1 and R2 with R0
containing the MSD in its right most nibble.
Performance :
Program Memory : 35
Clock Cycles : 885-Binary To BCD Conversion Routine
This routine converts a 16 Bit binary Number to a 5 Digit
BCD Number. This routine is useful since PIC16C55 & PIC16C57
have two 8 bit ports and one 4 bit port ( total of 5 BCD digits)
The 16 bit binary number is input in locations H_byte and
L_byte with the high byte in H_byte.
The 5 digit BCD number is returned in R0, R1 and R2 with R0
containing the MSD in its right most nibble.
Performance :
Program Memory : 35
Clock Cycles : 885
(系统自动生成,下载前可以参看下载内容)
下载文件列表
B16TOBCD.ASM