A Hex can be converted to BCD in three steps:-
Let's say your Hex value is
0x38f and you want to convert it to it's BCD form.
Hexadecimal is the numeric system widely used by systems designers and computer programmers. It comprises of 16 symbols from 0 to 9 and A to F.
Binary Coded Decimal or BCD is a set of binary encodings for decimal numbers used in early digital computers. In BCD, a binary sequence is used to represent each digit of the source decimal number