electronics_guy
Member level 2
Hi all, I am new to programming and I need some help in performing the concatenation operation in C. I am trying to write a code for ADC of PIC16F877A microcontroller. Here after the completion of the conversion, the 10 bit result is stored in two registers(ADRESL and ADRESH). I want to read and store the result in one single variable and I suppose that is possible only by concatenation operation. Plz, someone explain me the code so that I can do it or if there is some other logic, please post it.
Thanks in advance.
Thanks in advance.