Added sychronizer to pia
Scaler fix
Correct edge bit. Also interrupt 1 should still work in output mode.