Graham Ogle
New Member
I'm back again with another BCD question. I can convert a number to BCD or a decimal to two BCD nibbles. But I need each nibble to be to base 10, i.e. the range is from 0 to 9, not 0 to 15. How can this be done please?
Alternatively, since the decimal nibble is never greater than 9, can I map these 4 bits, to 4 output pins and another 4 bit nibble to another 4 output pins? I can set all pins to one nibble or the other, but not independently.
I am trying to control a frequency synthesiser which needs a programming number upto 15999. I am trying to replicate BCD thumbwheels which would show upto 15 on the most significant digit and 9's on the other 3.
Any help would be much appreciated.
Thanks
Alternatively, since the decimal nibble is never greater than 9, can I map these 4 bits, to 4 output pins and another 4 bit nibble to another 4 output pins? I can set all pins to one nibble or the other, but not independently.
I am trying to control a frequency synthesiser which needs a programming number upto 15999. I am trying to replicate BCD thumbwheels which would show upto 15 on the most significant digit and 9's on the other 3.
Any help would be much appreciated.
Thanks