fixed RFA1 timer compare register set mode function (from henryponti)