Hello,

Wondering if anyone can provide an algorithm for converting
a long integer ( up to 32 bit ) into two 16 bit words. The integer
value will be sent serially to the pic. I then need to convert that value into two word variables... a high word and a low word.

This is easy enough to do in Visual basic on a pc but I need to do it on the pic.

Is there some binary arithmetic trick or hex conversion i can use ?

Thanks

Jay