programmable direct or inverse output