Philips Semiconductors 1 Oct 98 Implementing a USB-to-Infrared (Philips RCMM) Dongle - USB IR HID Device (OVU1000, Reference Design Ver 1.1) - USB Compound Hub with IR HID Device Author: Wim, Lemay Edited by: Wei Leong, Chui
Interconnectivity 1 Oct 98 Page 3 GENERAL HARDWARE BLOCKS FOR USB IR DONGLE 5V to 3V3 Regulator Power On Reset IR Power Up/Down IR Front-End CORE PROCESSING USB Controller IR Wakeup IR Transmitter Microcontroller ROM and Interfacing Envelope Detection IR Receiver USER INTERFACE Status Philips Semiconductors - Asia Product Innovation Center
Interconnectivity 1 Oct 98 Page 4 Design Blocks for USB IR Dongle: Infrared Keyboard/Mouse/Gamepad 5V to 3V3 Regulator MC78FC33 Power On Reset Discrete IR Power Up/Down CORE PROCESSING USB Controller PDIUSBD11 XTAL 12MHZ KDS-DAIWA Microcontroller P80C652 Address Latch 74HCT373 IR Wakeup Discrete External ROM AT27LV256 XTAL 24MHZ KDS-DAIWA Envelope Detection 74HCT86 USER INTERFACE IR Front-end IR Transmitter TSIP5201 IR Receiver TSOP 1136 Philips Part Other Vendor's Parts Philips Semiconductors - Asia Product Innovation Center
Interconnectivity 1 Oct 98 Page 5 DESIGN BLOCKS FOR USB COMPOUND HUB WITH IR HID SUPPORT IR KEYBOARD/MOUSE/GAMEPAD 5V to 3V3 Regulator MC78FC33 Power On Reset Discrete IR Power Up/Down CORE PROCESSING USB HUB Controller PDIUSBH11A/H12 Downstream Port Power MIC2526 IR Wakeup Discrete XTAL 12MHZ KDS- DAIWA Microcontroller P80C652 Address Latch 74HCT373 External ROM AT27LV256 Envelope Detection 74HCT86 XTAL 24MHZ KDS-DAIWA USER INTERFACE IR Front-end IR Transmitter TSIP5201 IR Receiver TSOP 1136 Philips Part Other Vendor Philips Semiconductors - Asia Product Innovation Center
Interconnectivity 1 Oct 98 Page 6 Implementing a USB-to-InfraRed Dongle TECHNICAL DESCRIPTION GENERAL This application note describes the implementation of A USB-IR dongle; and A USB compound hub with a USB-IR dongle device. The main difference in the two designs lie in the USB Controller used. To implement a USB device, the PDIUSBD11 (D11) general-purpose USB interface is selected. To implement a compound hub with USB-IR functionality, you must use PDIUSBH11A (H11A) or PDIUSBH12 (H12). The device functionality is the same for all the designs, H11A provides 4 USB walk-up ports and the H12 provides only 2 USB walk-up ports. The firmware implementation for the USB-IR dongle on the microcontroller can be divided into two parts. The microcontroller has to service the USB controller and at the same time decode and encode the data for the IR front-end. The hub functionality adds another 2 Kbytes of code onto the firmware. The USB-IR dongle portion uses the D11/H11A/H12 as the USB interface for implementing HID functionality. This includes Keyboard, Mouse and Gamepad functionality. For the USB-IR device only, it enumerates as a multi-interface composite device. The individual interfaces, each conforms to the HID Class definition, be it a HID Keyboard, a HID mouse or a HID gamepad. The default HID device driver from Windows 98 is loaded. Thus, the whole system may be implemented ready to ship without a need to develop your own device driver. For the compound hub with the USB-IR device, the hub is first enumerated. The generic driver for Windows 98 is loaded before it enumerates the embedded USB-IR device. The enumeration of the USB-IR device follows the same procedure as explained in the previous paragraph. The USB-IR device translates USB requests into IR signals conforming to the Philips Infrared RCMM (1-way) and Infrared RCMM² (2-way) protocols. The RCMM protocol is proprietary; an NDA would be required to obtain the protocol description. The contact person for the NDA is listed under the Contacts section. Philips Semiconductors - Asia Product Innovation Centre
Interconnectivity 1 Oct 98 Page 7 USB INTERFACE CONTROLLER D11, H11A and H12 are full-speed (12 MHz) USB Devices. Thus, a full-speed USB cable is required. The common mode chokes for EMI do not need to be added because both interface devices have built-in skew control for the D+/D- signaling lines. A termination resistor of 24 ohms for the transmission line is required. D11, H11A and H12 incorporate a SoftConnect internal resistor for the D+ pull-up detection. The USB interface controllers run on 3.3V. A step-down voltage regulator from 5V to 3.3V is used. The microcontroller communicates with D11/H11A/H12 via I 2 C. The command registers for D11/H11A/H12 may be obtained from the data sheets of the devices at www.flexiusb.com. D11/H11A/H12 will go into sleep mode 1 millisecond after detecting the absence of USB traffic for 3 milliseconds. The suspend pin (Open-Drain) from the USB controllers will go high immediately after the suspend detection. Upon sensing a suspend pin, the microcontroller needs to finish whatever it is processing and go into deep sleep so that the total suspend current is less than 500 µa. When it is processing a critical event, it may pull the suspend pin low to hold off the suspend condition; this may be done for a maximum of 10 milliseconds. The suspend condition is terminated when USB traffic resumes. Thus the system must be responsible for waking up the microcontroller. Or, the USB device can initiate a resume signaling to wake up the host. POWER ON RESET The charging ramp voltage across the 2017 capacitor will trigger a transistor and give a pulse to the input of ExOR gates, which reset the microcontroller. IR WAKE UP This is a -Hz oscillator with an on-time of around 20%, which gives power to the IR receiver. When the microcontroller is working this oscillator is frozen to give constant power to the receiver. IR RECEIVER TSOP1136 chip has a built-in Automatic Gain Control and a demodulator of the 36-kHz Modulation. Philips Semiconductors - Asia Product Innovation Centre
Interconnectivity 1 Oct 98 Page 8 ENVELOPE DETECTOR Integrates the receiver pulses and makes a reset of the microcontroller. Under normal working conditions, this part of the circuitry remains dormant. The device kicks into action only after it is put into suspend. It will be enabled every 1 second to scan for any IR signals from the remote IR keyboard/mouse/gamepad. ROM AND INTERFACING The microcontroller is configured to use an external EPROM, the program fetch done over the multiplexed address/data bus. A data latch separates the address byte from the data bytes. The processing power is in the P80C652 microcontroller, which is running at 24 MHz. The 652 was selected because it can go into power-down mode; this is crucial to pass the power requirement during suspend. INDICATION S The four red indications s are driven by BC847B NPN transistors and connect directly to the output of the microcontroller. FIRMWARE To appreciate the hardware, we must understand the firmware. It is, however, not the aim of this application note to go into the details of the firmware. A brief description below would explain the need of the circuitry as shown in the schematics. 36 khz Modulated IR Transmitter Circuitry All IR signaling is modulated on a 36-kHz carrier. This is done by the microcontroller whose output pin modulates the data to the IR s. Much of the circuitry here is used to power down the IR s while in Suspend State; this is to meet the stringent requirement of 500 µa maximum suspend current. Philips Semiconductors - Asia Product Innovation Centre
Interconnectivity 1 Oct 98 Page 9 Receiver circuitry The IR data from the TSOP1136 chip is already demodulated. Processing of this data is done via software. The microcontroller is interrupted on every transition of the received data pulse. Since the microcontroller interrupt responds to only falling/low-level trigger, an ExOR gate is used to invert the received data from the TSOP1136. The Philips protocol for RC5 is coded in biphase format as follows: The actual RCMM protocol document requires an NDA from the contact list. Philips Semiconductors - Asia Product Innovation Centre
Interconnectivity 1 Oct 98 Page 10 Reset and Recover from Suspend The reset pin is tied as shown in the diagram below. The reset to the microcontroller serves a dual purpose. The first is to do a proper power up reset. The second is to provide a wakeup signal to the microcontroller by pulling and releasing the reset line. There are two sources of waking the system from suspend. The first would be a host-initiated wakeup. In that situation, the suspend pin of the D11 would be pulled low. The second situation occurs when the wakeup is generated from the IR keyboard or IR mouse. When any key is pressed, this generates some toggling on the IR receiver, which is designed to wake up every second. Any detected IR signals during the awake frame would generate an enveloped pulse that triggers a Reset pin to wake the microcontroller from power-down mode. Philips Semiconductors - Asia Product Innovation Centre
Interconnectivity 1 Oct 98 Page 11 USER FUNCTIONAL DESCRIPTION The OVU1000 reference design from Philips can communicate through a Philips developed and owned Infrared RCMM (1-way) and Infrared RCMM² (2-way) 36-kHz modulated protocol with the following wireless peripherals: Philips Wireless Keyboard/Mouse (KW10XX) Philips Wireless Gamepads (GP3020): Up to four simultaneously operated gamepads without loss of data and with minimized latency The OVU1000 can also be upgraded, by only programming the EPROM with other software, to support additional wireless peripherals: PHILIPS Remote Controls with Trackball, FSR (Force Sensitive Resistor) and other PHILIPS Remote Controls. The Remote Control can be used as a pointing device and to control the HID controls of the WINDOWS 98 operating system controls. (Volume, Source Selection, ) Compatibility The OVU1000 is compatible with the USB specification 1.1 and compliant with USB HID specification. It complies with the Power Consumption specification described in the USB specification by using Power Control Hardware. The device works with Windows 98. OVU1000 can be used with Windows 95 if OSR2.1 and a proper HID driver are installed. OTHER ENCLOSURES - Attached you will find the Schematic in PDF format USBIRH.pdf (PDF file for the schematic of an IR receiver with PDIUSBH11) USBIRD.pdf (PDF file for the schematic of an IR receiver with PDIUSBD11) - Attached you will find the Bill Of Materials in PDF format USBIRH_BOM.pdf (Bill of Materials for IR receiver with PDIUSBH11) USBIRD_BOM.pdf (Bill of Materials for IR receiver with PDIUSBD11) Philips Semiconductors - Asia Product Innovation Centre
SUNSTAR 商斯达实业集团是集研发 生产 工程 销售 代理经销 技术咨询 信息服务等为一体的高科技企业, 是专业高科技电子产品生产厂家, 是具有 10 多年历史的专业电子元器件供应商, 是中国最早和最大的仓储式连锁规模经营大型综合电子零部件代理分销商之一, 是一家专业代理和分銷世界各大品牌 IC 芯片和電子元器件的连锁经营綜合性国际公司, 专业经营进口 国产名厂名牌电子元件, 型号 种类齐全 在香港 北京 深圳 上海 西安 成都等全国主要电子市场设有直属分公司和产品展示展销窗口门市部专卖店及代理分销商, 已在全国范围内建成强大统一的供货和代理分销网络 我们专业代理经销 开发生产电子元器件 集成电路 传感器 微波光电元器件 工控机 /DOC/DOM 电子盘 专用电路 单片机开发 MCU/DSP/ARM/FPGA 软件硬件 二极管 三极管 模块等, 是您可靠的一站式现货配套供应商 方案提供商 部件功能模块开发配套商 商斯达实业公司拥有庞大的资料库, 有数位毕业于著名高校 有中国电子工业摇篮之称的西安电子科技大学 ( 西军电 ) 并长期从事国防尖端科技研究的高级工程师为您精挑细选 量身订做各种高科技电子元器件, 并解决各种技术问题 微波光电部专业代理经销高频 微波 光纤 光电元器件 组件 部件 模块 整机 ; 电磁兼容元器件 材料 设备 ; 微波 CAD EDA 软件 开发测试仿真工具 ; 微波 光纤仪器仪表 欢迎国外高科技微波 光纤厂商将优秀产品介绍到中国 共同开拓市场 长期大量现货专业批发高频 微波 卫星 光纤 电视 CATV 器件 : 晶振 VCO 连接器 PIN 开关 变容二极管 开关二极管 低噪晶体管 功率电阻及电容 放大器 功率管 MMIC 混频器 耦合器 功分器 振荡器 合成器 衰减器 滤波器 隔离器 环行器 移相器 调制解调器 ; 光电子元器件和组件 : 红外发射管 红外接收管 光电开关 光敏管 发光二极管和发光二极管组件 半导体激光二极管和激光器组件 光电探测器和光接收组件 光发射接收模块 光纤激光器和光放大器 光调制器 光开关 DWDM 用光发射和接收器件 用户接入系统光光收发器件与模块 光纤连接器 光纤跳线 / 尾纤 光衰减器 光纤适配器 光隔离器 光耦合器 光环行器 光复用器 / 转换器 ; 无线收发芯片和模组 蓝牙芯片和模组 更多产品请看本公司产品专用销售网站 : 商斯达中国传感器科技信息网 :http://www.sensor-ic.com/ 商斯达工控安防网 :http://www.pc-ps.net/ 商斯达电子元器件网 :http://www.sunstare.com/ 商斯达微波光电产品网 :HTTP://www.rfoe.net/ 商斯达消费电子产品网 ://www.icasic.com/ 商斯达实业科技产品网 ://www.sunstars.cn/ 微波元器件销售热线 : 地址 : 深圳市福田区福华路福庆街鸿图大厦 1602 室电话 :0755-82884100 83397033 83396822 83398585 传真 :0755-83376182 (0)13823648918 MSN: SUNS8888@hotmail.com 邮编 :518033 E-mail:szss20@163.com QQ: 195847376 深圳赛格展销部 : 深圳华强北路赛格电子市场 2583 号电话 :0755-83665529 25059422 技术支持 : 0755-83394033 13501568376 欢迎索取免费详细资料 设计指南和光盘 ; 产品凡多, 未能尽录, 欢迎来电查询 北京分公司 : 北京海淀区知春路 132 号中发电子大厦 3097 号 TEL:010-81159046 82615020 13501189838 FAX:010-62543996 上海分公司 : 上海市北京东路 668 号上海賽格电子市场 D125 号 TEL:021-28311762 56703037 13701955389 FAX:021-56703037 西安分公司 : 西安高新开发区 20 所 ( 中国电子科技集团导航技术研究所 ) 西安劳动南路 88 号电子商城二楼 D23 号 TEL:029-81022619 13072977981 FAX:029-88789382