Ok, so we're down to what you want displayed. If you want to display the 9bit BINARY value into a DECIMAL presentation, like 000 to 511, you need to convert the value to a 3 digit BCD.
If you on the other hand can cope with the 9bit BINARY to a 3 digit OCTAL presentation, like 000 to 777, you...