Pravin Gosavi
Member
Hello. I am using PIC microcontroller. I have created an interrupt subroutine. I want to get data from a port pin (say Data_Pin). Everytime interrupt occurs I want to update bits of a 16 bit variable one bit at a time starting from 1st bit to 16th bit depending on the state of the Data_Pin. In short I want to get data serialy using a port pin (not by other methods like UART).
I am stuck at how to "write" individual bits of the "int variable".
I am stuck at how to "write" individual bits of the "int variable".