Thanks Demon, this is just a trial program and I wanted to set the PIC up properly before arranging the code nicely with labels etc.