Henrick,

Yes, sorry, RD is variable of pin PORTA.3
The "RD[i] = 1" is from the PBP manual where I subbed RD for a PORTx.x pin in the original.
I'll try your suggested change.
Thanks,
Jim