Hi Ron,

Solved the problem - the value being written was a variable of type "word", where it needs to be a byte.

Thanks for your assistance.
-orjon.