Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

IR Decoding Using 16F877A and mikroC

Status
Not open for further replies.

Kirshanthan1010

Newbie level 3
Joined
Nov 20, 2010
Messages
4
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,304
Can some one help me with decoding IR signal using 16F877A and mikroC please!!!!!
 

Hi,
Do you understand the protocol properly? Refer to this site for description and understanding:
SB-Projects: IR remote control: SIRC protocol

Then you can do it like this:
1) Wait for IRpin to go low. When it does wait for 1.6ms. If it is still low, you have received the start bit. Then wait for the pin to go high. This is for start bit detection. For command detection, wait for pin to go low. Wait 800us. If it is still low, you have received a 1, else it's a 0. Wait for the next command. This is how I made by receivers, so it's a tested method.
2) You could use the capture method and check the time the pin is high/low to detect the 1 or 0 state.

I think the first method is easier and it works effectively.

Hope this helps.
Tahmid.
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top