Search 8052.com...
User (Email)
Password
Remember Logon
Forgot password?
Create Account
Oleg Sergeev Homepage on 8052.com
Welcome to my homepage
Here you can see and download useful programs, schemes, suggestions etc about C51 serie MCU.
Conversion subroutines
Convert 24-bit binary to 4-byte BCD
METHOD:
Gorner algorithm
SIZE:
59 / 100 bytes
TIME:
689...1073 / 18...1131(max) machine cycles
Convert 24-bit binary to 4-byte BCD
METHOD:
Adding of nibble decimal weight precalculated in tables
SIZE:
404 bytes
TIME:
38...179(max) machine cycles
Convert 24-bit binary to 4-byte BCD
METHOD:
Adding of byte decimal weight precalculated in tables
SIZE:
2379 bytes
TIME:
29...76(max) machine cycles
CRC subroutines
CRC-16 with 0x1021 polynome
METHOD:
Direct calculation
SIZE:
51 bytes
TIME:
approx. 132 machine cycles per each byte
CRC-16 with 0x1021 polynome
METHOD:
Table realization
SIZE:
560 bytes
TIME:
approx. 28 machine cycles per each byte
Good luck with stuff above!
Regards,
Oleg
(C) Copyright 1997 - 2008 by
Vault Information Services LLC
. All Rights Reserved.
Information provided "as-is" without warranty. Please
see details
.
Contact us
for usage and copy permission.