Adam - *blush* personally Signed framed Masterpieces are available in exchange for internationally negotiable crinkly drinking vouchers...


Ria - Yes it is, with a few changes...

1. Change ALL the PIC defines to 877A instead 876A...

eg

@ DEVICE pic16F876A, XT_OSC

becomes

@ DEVICE pic16F877A, XT_OSC

2. Add additional TRIS statements to account for Ports D and E.

eg

TRISE=%11111111

Remembering that parts of PortE will still have Analog on them...

3. Compile with the command line

PBPW -p16f877A sample -v