⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hauppauge-wintv-cx88-ir.txt

📁 V4l driver for DVB HD
💻 TXT
字号:
The controls for the mux are GPIO [0,1] for source, and GPIO 2 for muting.GPIO0  GPIO1  0        0    TV Audio  1        0    FM radio  0        1    Line-In  1        1    Mono tuner bypass or CD passthru (tuner specific)GPIO 16(i believe) is tied to the IR port (if present).------------------------------------------------------------------------------------>From the data sheet: Register 24'h20004  PCI Interrupt Status  bit [18]  IR_SMP_INT Set when 32 input samples have been collected over  gpio[16] pin into GP_SAMPLE register.What's missing from the data sheet:Setup 4KHz sampling rate (roughly 2x oversampled; good enough for our RC5compat remote)set register 0x35C050 to  0xa80a80enable samplingset register 0x35C054 to 0x5Of course, enable the IRQ bit 18 in the interrupt mask register .(andprovide for a handler)GP_SAMPLE register is at 0x35C058Bits are then right shifted into the GP_SAMPLE register at the specifiedrate; you get an interrupt when a full DWORD is recieved.You need to recover the actual RC5 bits out of the (oversampled) IR sensorbits. (Hint: look for the 0/1and 1/0 crossings of the RC5 bi-phase data)  Anactual raw RC5 code will span 2-3 DWORDS, depending on the actual alignment.I'm pretty sure when no IR signal is present the receiver is always in amarking state(1); but stray light, etc can cause intermittent noise valuesas well.  Remember, this is a free running sample of the IR receiver stateover time, so don't assume any sample starts at any particular place.http://www.atmel.com/dyn/resources/prod_documents/doc2817.pdfThis data sheet (google search) seems to have a lovely description of theRC5 basicshttp://users.pandora.be/nenya/electronics/rc5/  and more datahttp://www.ee.washington.edu/circuit_archive/text/ir_decode.txtand even a reference to how to decode a bi-phase data stream.http://www.xs4all.nl/~sbp/knowledge/ir/rc5.htmstill more info

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -