guravsid
Junior Member level 1
- Joined
- Oct 8, 2013
- Messages
- 17
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 108
Hi...
I want to receive the data from sensor. The output of IR sensor is one bit i.e. either '1' or '0'. If I connect the IR sensor output to RxD pin of 8051 microcontroller, the it will receive only one bit at a time. Then how do I receive the series of 8 bits and save it to the other port. Can anyone give me the necessary C code for that ??
I want to receive the data from sensor. The output of IR sensor is one bit i.e. either '1' or '0'. If I connect the IR sensor output to RxD pin of 8051 microcontroller, the it will receive only one bit at a time. Then how do I receive the series of 8 bits and save it to the other port. Can anyone give me the necessary C code for that ??