Interface and implementation improvements for PIC (8259) and PIT