RPascoal, code imported from joão 2008: mainly the interrupt handling was changed and code was cleaned now message receiving and encoder counting are first priority, second is message sending. MCC18 MPLAB 8.43