hvpis and encoder (only in hvpis)