文件名称: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
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
