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 could not completely understand the tutorials on Nigel's Website. Here's my code that needs some modification. I know it's easy but I'm bit confused for now. Any suggestions?