A Hex can be converted to BCD using these steps:-
Let's say your Hex value is
0x38f, and you want to convert it to its bcd form.
Hexadecimal is a numeric system widely used by systems designers and computer programmers. It contains 16 symbols from 0 to 9 and A to F, thus having a base of 16.
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