Hi, Henrik

I suppose you meant :
Code:
if coil1 = 1 then
thy1 = 1
thy2 = 0
thy3 = 0
thy4 = 0
endif
because there are no RMW issue when using HIGH and LOW ( as they include a TRIS command that takes some time ) ... tested "in live" with 3.5 µF loads ...

Alain