Hello, I´m trying to change the value of the CONFIG1 register once it has been initialized to another value, but everytime I try to change its value all the registers turns their value to 0 (including CONFG1 register).
A Scheme:
Initialization:
WREG(CONFIG1)--> A6
Later, inside the main loop of my program:
RREG(CONFIG1) =A6
WREG(CONFIG1)-->A5
RREG(CONFIG1) = 0
RREG(CHANNEL2) =0
...
Could you please tell me where could be the problem?
I can change any ohter register without problem, but everytime I change CONFIG1 all the registers turn to 0.
Thank you very much
I hope to hear from you soon.
Best Regards