Convert Decimal to 2 bytes, I'm stumped

jreminton,

WOW, that Works for me!
Just to recap, I'm writing code to write to the communications on an ICOM radio, which is all in HEX, via the communications (I'm using Bluetooth).

The receive string looks like:
<FE FE E0 A4 14 0A 02 55 FD>
There are 2 start bytes (FE FE), From Address (EO), To Address (A0), Command (14), the data (02, 55) and StopByte (FD).

I'm trying to construct the data array (bytes) to set the RF output power to the radio.
Your solution solves my problem, quite simply!!!

Thank you !

Sir Michael