SoCKit User Manual
66
www.terasic.com
December 1, 2015
After the IR receiver on SoCKit receives this frame, it will directly transmit that to FPGA. In this
demo, the IP of IR receiver controller is implemented in the FPGA. As
Figure 5-11
shows, it
includes Code Detector, State Machine, and Shift Register. First, the IR receiver demodulates the
signal input to Code Detector block. The Code Detector block will check the Lead Code and
feedback the examination result to State Machine block.
The State Machine block will change the state from IDLE to GUIDANCE once the Lead code is
detected. Once the Code Detector has detected the Custom Code status, the current state will change
from GUIDANCE to DATAREAD state. At this state, the Code Detector will save the Custom Code
and Key/Inv Key Code and output to Shift Register then displays it
in nios2-terminal.
Figure 5-12
shows the state shift diagram of State Machine block. Note that the input clock should be 50MHz.
Figure 5-11 The IR Receiver controller
Figure 5-12 State shift diagram of State Machine
We can apply the IR receiver to many applications, such as integrating to the SD Card Demo, and
you can also develop other related interesting applications with it.