Ported what i have so far to the PIC18F… (18F47J53 in particular) Works the same! Original was for XMOS