View Single Post
  #1 (permalink)
Old 24th June 2008, 11:55 AM
el3ktr1k
CE - Apprentice
 
Join Date: 24th June 2008
I'm a Crazy Electrical Engineer
Posts: 22
Question Reading in Data using a microcontroller

I'm not sure how digital serial input is read into the PIC. This is how I would guess it's done. You have a pin configured for input. You then have the first bit of data generate an interrupt. You then poll the input pin to see if the bit is a 1 or 0. You then store this value as the LSB at some location in memory. Then you wait for the next bit to come in. For example if the data is coming in at a rate of 10k bits/s then you would wait 0.1 ms and poll the input pin again and so forth until the MSB bit is read. Is this basically the general idea of how data is read in or does the PIC have a better way of doing it? Thanks for any help. I'm new at this stuff.
el3ktr1k is offline   Reply With Quote