Thanks Richard - that did the trick!
Everything compiles and programs.
Now to breadboard it and make it work

Cheers
Barry
VK2XBP