![]() Since you only have 256 possible input values, it doesn't need to be large. One brute force but simple approach is to use a lookup table. In the special case of the input value only being 0-255, various shortcuts are possible. Note that this works regardless of how large the original number is. The remainder from each division are the digit values in least to most significant order. One way to generate decimal digits is to keep dividing a number by 10. While it is possible to string together enough dedicated digital logic chips to achieve what you want, a microcontroller is the simplest solution for most cases. This could be successively, like counting, or outright dividing. If you want to convert binary to decimal, you're going to have to do a divide in one form or another.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |