Thanks to everyone...embarrasingly simple in the end! (hey, it was late!)

Hi Darrel, I was with you up to this bit....

Quote Originally Posted by Darrel Taylor View Post
Code:
EE_Polarity DATA 0            ; Factory Default
mosfet_gate = 1 ^ Polarity    ; Turn OFF
OUTPUT mosfet_gate
;----------------------------------------------

mosfet_gate = 0 ^ Polarity    ; Turn ON
mosfet_gate = 1 ^ Polarity    ; Turn OFF

Can anyone shed a little light on what's going on there (never used a ^ before!)