资 源 简 介
单片机编程的bcd码和hex码的互换,BCD2HEX
例子:
c=BCD2HEX(0x255) //255 转成HEX为0xff
c=HEX2BCD(0xff) //0xff 转成BCD码为 2-microcontroller programming bcd yards and hex code swap BCD2HEX example : c = BCD2HEX (0x255)// 255 to HEX conversion c = 0xff HEX2BCD (0xff)// 0xff conversion of 255 BCD