lab8_s11_ic_remote

lab8_s11_ic_remote - University of Florida Electrical and...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
University of Florida EEL 4744 – Spring 2011 Dr. Eric M. Schwartz Electrical and Computer Engineering Dept. Colin Watson, TA Page 1/4 Revision 1 13-Apr-11 Lab 8: Remote Controlled Synthesizer OBJECTIVES To introduce the input timing feature of a microcontroller (called the input capture). This feature will be used to recognize signals from an infrared remote control. Combine the systems that have been used throughout the semester and use them simultaneously. REQUIRED MATERIALS 1 – Keypad circuit (from previous lab) 1 - LCD circuit (from previous lab) 1 – 40 kHz Remote Control 1 – 4.7k-10k Resistor 1 - .1 μF Capacitor All the parts from lab 7 You WILL need the following documentation: o Enhanced Pulse Width Modulator (ePWM) Module (OC) Reference Guide (SPRUG04A) o Enhanced Capture (eCAP) Module (IC) Reference Guide (SPRUG04A) o IR detector spec sheet INPUT CAPTURE INTRODUCTION The input capture function is an important architectural feature of the timer system of the DSP. Physical time is kept in the 32-bit free running counter register TSCTR. The timer can cleared to zero at configured resets and must be enabled to operate. Input capture functions are used to record the time at which events on the input capture pin, external to the processor, occur. This is accomplished (automatically) by latching the contents of the free running counter and storing it in an input-capture timer register (CAP1:CAP4). There are six input capture (eCAP) modules available to you, each with their own set of control and CAP registers; only one module is needed for this lab. The four CAP registers can be individually configured to latch the counter value at different times (rising or falling edges), and only ONE CAP register will be loaded at a time. The two-bit Mod4 counter determines which CAP register is next in line to be loaded with the count value. The free running (TSCTR) counter can be configured to reset after these CAP registers are loaded, or to continue running. See the documentation for more information. The registers associated with each eCAP module are: TSCTR ;Time-Stamp Counter CTRPHS ;Counter Phase Offset CAP1 ;Capture 1 Register CAP2 ;Capture 2 Register CAP3 ;Capture 3 Register CAP4 ;Capture 4 Register ECCTL1 ;Capture Control Register 1 ECCTL2 ;Capture Control Register 2 ECEINT ;Capture Interrupt Enable Reg ECFLG ;Capture Interrupt Flag Reg ECCLR ;Capture Interrupt Clear Reg ECFRC ;Capture Interrupt Force Reg PROGRAM INTRODUCTION You have decided it is time to enhance your apartment so that you can spend more time in bed, on the couch or in your favorite chair. You would like to operate various appliances remotely; however, you cannot afford a fancy wireless setup. Since you already have a TV/DVD/DVR/Blu-ray/MP-3 remote control, you decide to use this to control your appliances. You have decided that the first step is to design a receiver that can recognize your TV/DVD/DVR/Blu-ray/MP-3 remote control signals
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

lab8_s11_ic_remote - University of Florida Electrical and...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online