文件名称:B16TOBCD
介绍说明--下载内容来自于网络,使用问题请自行百度
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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.