adaptation of Markus work with PIC32