Hello everyone,
I have a bit of trouble to generate a random value with the cc1110. The Datasheet of the CC1110 says that I have to set ADCCON1.RSTRL to "01" and I assume that I have to read RNDL and RNDH after that.
So I tried:
uint8_t Random1;
uint8_t Random2;
ADCCON1.RCTRL=01; //heres where the error accurs
Random1 = RNDH;
Random2 = RNDL;
But I get an error Message that says " expression must have struct or union type" . Now I dont know where the Problem is and I hope somebody of you Guys could help me.
Thanks in advance Ran