The binary code you displayed is correct, however that is 82, not 52,
52 would put "2" on the 4th digit AND the first digit as well. (the numbers are hex, by the way - not decimal)
The binary code you displayed is correct, however that is 82, not 52,
52 would put "2" on the 4th digit AND the first digit as well. (the numbers are hex, by the way - not decimal)
Last edited by Charlie; - 7th March 2020 at 12:52.
Yes I see, is there a number to directly use decimal variable, or I need to convert it to hex?
And by the way, since I will have 16 total of such modules, to save number of MCU pins used, I come up with idea of using CD4514BE - 4 to 16 decoder, this should allow me to by using only 5 pins from MCU, drive up to 16 modules.
![]()
Last edited by CuriousOne; - 8th March 2020 at 05:19.
from 0-9 hex and decimal are exactly the same so no "conversion" is required. The high nibble is really decoding the device since you need a pin for each device so you want binary 0001, 0010, 0100, 1000. This is hex 1,2,4,8. It is simplest to treat the byte as 2 nibbles, the low one with the number to display, the other with the address.
Bookmarks