You can use back the previous code. Just replace pic16F628a with pic18F4620.