All PSoC Application Notes

AN2338: Fast and Compact Unsigned Binary to BCD Conversion


Author:

Eugene Miyushkovich

Date published:

Feb 03, 2006 02:12 PM

Software:

PSoC Designer 4.2


This Application Note describes a fast and compact method to convert 8- and 16-bit binary numbers to BCD (binary-coded decimal). This algorithm differs from similar methods in execution speed and code size. Also discussed are functions to convert 8- and 16-bit binary numbers to string (analogous to the standard function ‘itoa’).


 Application Note:

an2338_01.pdf | Size: 256 KBytes | Downloads: 643

 Project Files:

an2338.zip | Size: 42.9 KBytes | Downloads: 409