Hi Bruce

I was originally using SEROUT, but then it was pointed out that for SPI mode, I should be using SHIFTOUT. I have since corrected it, and resposted the code.

Later, I will attach a A/D on the SPI bus, so it is important to get these things right !

Best regards
Richard