Platform for a universal controller using PIC24FJ256