DOC PREVIEW
MIT 6 111 - Study Guide

This preview shows page 1-2-3 out of 8 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

IntroductionProcedureReceiver FSM Design RequirementsWhat to Turn In:Massachusetts Institute of TechnologyDepartment of Electrical Engineering and Computer Science6.111 Introductory Digital Systems Laboratory (Spring 2009)Laboratory 3 – Infrared Remote Checkoff SheetStudent Name:___________________________________________________________________TA Signature/Date:_______________________________________________________________Must show to TA at beginning of checkoff:- Block diagram of Infrared Remote System in Learn Mode - Finite State Machine diagram - Verilog code printout - Simulation waveform of “Learn mode” printout Be able to demonstrate your working lab:- Demonstrate the “Learning” of four remote commands. - Display the transmitted waveforms on the logic analyzer showing both the modulated carrier and the command bits. You may do this with two waveforms.Be able to respond to any of the following questions and possibly others: - What are possible problems encountered during the “Learn” mode?- Describe your timing of your receiver and how wide of a tolerance in bit timingis acceptable with your design.1- Describe how you would implement the IR transmitter FSM.2Massachusetts Institute of TechnologyDepartment of Electrical Engineering and Computer Science6.111 Introductory Digital Systems Laboratory - Spring 2009Laboratory 3 – Infrared Remote ControlHanded Out: 3/4/2009Checkoff (see page 4 for details on what to turn in): 3/12/2009IntroductionIn this lab, you will design finite state machine(s) to “learn” four Sony Infrared Command(SIRC) and use it to control a Sony television.Serial communications, where data is transmitted over a single channel one bit at a time, is used every where. Examples are PS/2 mouse and keyboard, USB port and PCI-Express in newer PC’s.Another example is the wireless infrared remote control used for TV’s and stereo. Serial communications is in contrast to sending many bits in parallel, for example the parallel port on older PCs. Serial communications saves on cable pins, wires and cost. However, to implement serial communications, you need a “serializer” at the transmitter end and a “deserializer” at the receiver. (See http://web.mit.edu/6.111/www/f2008/handouts/L14.pdf for more details.)For the wireless remote, the communications channel/medium is infrared light at 950 nm wavelength. Sony uses a 12 bit, 15 bit and 20 bit protocol. We will be using the 12 bit pulse-width modulated serial protocol. With this protocol, a data “1” is 1200 us and a data “0” is 600 us. Bits are separated by 600us1During the “on” time, the signal is a 40 kHz square wave. For simplicity, we will not show the 40kHz carrier in future timing waveforms. 1 Picture from www.sbprojects.com/ir/sirc.htm3The format of the data stream is shown below. In this example a command 19 (volume lower) is issued for the TV. 1 A partial listing of the commands is attached at the end.With this protocol, the length (duration) of each command is a function of the data. RS-232 and the PS/2 serial protocol use a fixed data time for each bit. The data rate is independent of the data and is purely a function of the bit (baud) rate. See figure below (fromhttp://www.arcelect.com/rs232.htm)ProcedureThe Lab exercise consists of two parts. You will wire up a simple circuit with an infrared LED transmitter, compile a Verilog source file that we provide and verify that the circuit controls the TV. The source file contains the FSM that creates the 40 kHz carrier and serializes the data stream to the infrared LED. In the second part you will wire an infrared receiver and design a FSM that learns new Sony commands, stores the command for use. While the data rate for IR controls is such that a FGPA is not really needed and can be implemented with software, the design principles are applicable at much higher data when hardware must be used. 1 Picture from www.sbprojects.com/ir/sirc.htm4The following diagram illustrates a possible organization of your design. This diagram is a high level view and does not show every necessary signal.debounceb u t t o n 0b u t t o n 1b u t t o n 2b u t t o n 3e n t e r ( l e a r n )d o w n ( r e s e t )R e c e i v e r F S MSynchronizerg l o b a lr e s e td i v i d e r2 7 m h zg l o b a lc l o c k7 5 u shex displaycommand & addressc o m m a n d d a t a ( 6 3 : 5 6 )a d d r d a t a ( 5 5 : 4 8 )h e x d i s p l a yc o m m a n d & a d d r e s sT r a n s m i t t e r F S M+ 5 V2 N 2 2 2 2u s e r 3 [ 3 1 ]t r a n s m i ta d d r5c o m m a n d7R c vc h i pi r _ i n p u tp i n 1+ 5 Vp i n 3p i n 21 6 d i g i t h e x d i s p l a y addr msb addr lsbcommand msbcommand lsb1=transmit addr msb addr lsbcommand msbcommand lsbdecodingfor debugging usetransmit4 7o h m1 k+-3 . 3 u f5Part 1Wire up the infrared transmitter (Vishay TSKS5400S Infrared Emitting Diode, 950 nm, GaAs) on your protoboard. The led is the blue component. The pin out for the 2N2222 BJT is shown below. Note that the collector (pin 3) is connected electrically to the case! Compile and load the bit file. Verify that this changes the channel on the TV using the up button. The command and the address are displayed on the led display. Observe the signal from the user output on an oscilloscope.64 7 o h m1 k+ 5 V2 N 2 2 2 2u s e r 3 [ 3 1 ]+-3 . 3 u fPart 2Wire up the infrared receiver (RPM7140-R) on your protoboard. The receiver is an integrated infrared digital chip that demodulates the 40 kHz signal and provides an inverted output signal tothe labkit. The output of the receiver (pin 1) is the input signal to the labkit. All that is required is to supply Vcc = 5V and ground. (You may keep the components in this lab for your personal use.)p i n 1p i n 2p i n 3 V c c = 5 vI R R e c e i v e r C h i p0 . 1 u fDesign and implement a digital system that will read the data from the receiver, learn the command and then transmit the commands using button 0, 1, 2 and 3 with your transmitter.Receiver FSM Design RequirementsWith serial communications, incoming data may be glitchy. For that reason, it is not good design practice to use an edge as a trigger [example: always @ (posedge data) ]. For this lab, your receiver FSM must be implemented by oversampling the incoming data at 75 us (600us/8). With sampling, the probability of an error is greatly reduced since the glitch must coincide


View Full Document

MIT 6 111 - Study Guide

Documents in this Course
Verilog

Verilog

21 pages

Video

Video

28 pages

Bass Hero

Bass Hero

17 pages

Deep 3D

Deep 3D

12 pages

SERPENT

SERPENT

8 pages

Vertex

Vertex

92 pages

Vertex

Vertex

4 pages

Snapshot

Snapshot

15 pages

Memories

Memories

42 pages

Deep3D

Deep3D

60 pages

Design

Design

2 pages

Frogger

Frogger

11 pages

SkiFree

SkiFree

81 pages

Vertex

Vertex

10 pages

EXPRESS

EXPRESS

2 pages

Labyrinth

Labyrinth

81 pages

Load more
Download Study Guide
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Study Guide and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Study Guide 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?