PIC controller