![]() ![]() This is the starting work for converting 4 bit binary to BCD. Only two digits shouldnt be too hard to accomplish. If you have to use logic gates then you'll have to figure out the conversion, or else look up the TTL logic chips that do the binary to BCD already and go from there. The additions/subtractions/multiplies/divides take whatever time the ROM takes, which is usually quite fast but does depend on the spec's of the ROM chip. Or, using simple binary to BCD, binary codes for decimal 0 to 99 also map to 8 bits and 256 locations in ROM. So in other words, two BCD numbers with 4 bits and 4 bits maps to 8 bits BCD and 256 or less locations doing addition math, and another 8 bits and 256 for multiply, etc., so you could do a four banger 2 digit calculator in an 8 bit by 1024 ROM. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |