That compiles OK. The problem I am having is with
vdd33 = readvdd33;
I keep getting invalid conversion errors.
I am sure that it is my inexperience of "the depths of C". I have "played" with Arduino code for a while now and Google is my friend when I get stuck. But this has got me baffled!