Thanks Dave - that seems to have solved my problem.

Now to move on to the LCD display section followed (hopefully) soon after by the A/D section.

Cheers
Barry