طراح

طراح

زندگی یعنی پژوهش و فهمیدن چیز جدید ( پروفسور حسابی)
طراح

طراح

زندگی یعنی پژوهش و فهمیدن چیز جدید ( پروفسور حسابی)

خواندن کدهای ریموت مادون قرمز سونی read Sony IR remote code - AVR


The SIRC protocol uses a pulse width encoding of the bits. The pulse representing a logical "1" is a 1.2ms long burst of the 40kHz carrier, while the burst width for a logical "0" is 0.6ms long. All bursts are separated by a 0.6ms long space interval. The recommended carrier duty-cycle is 1/4 or 1/3


The picture above shows a typical pulse train of the SIRC protocol. With this protocol the LSB is transmitted first. The start burst is always 2.4ms wide, followed by a standard space of 0.6ms. Apart from signalling the start of a SIRC message this start burst is also used to adjust the gain of the IR receiver. Then the 7-bit Command is transmitted, followed by the 5-bit Device address. In this case Address 1 and Command 19 is transmitted

Commands are repeated every 45ms(measured from start to start) for as long as the key on the remote control is held down

The table below lists some messages sent by Sony remote controls in the 12-bit protocol. This list is by no means meant to be complete, as the assignment of functions is probably quite dynamic

AddressDevice
1TV
2VCR 1
3VCR 2
6Laser Disc Unit
12Surround Sound
16Cassette deck / Tuner
17CD Player
18Equalizer
 

CommandFunction
0Digit key 1
1Digit key 2
2Digit key 3
3Digit key 4
4Digit key 5
5Digit key 6
6Digit key 7
7Digit key 8
8Digit key 9
9Digit key 0
16Channel +
17Channel -
18Volume +
19Volume -
20Mute
21Power
22Reset
23Audio Mode
24Contrast +
25Contrast -
26Colour +
27Colour -
30Brightness +
31Brightness -
38Balance Left
39Balance Right
47Standby

مرجع: http://www.sbprojects.com/knowledge/ir/sirc.php

دانلود برنامه نوشته شده برای atmel studio

نظرات 0 + ارسال نظر
برای نمایش آواتار خود در این وبلاگ در سایت Gravatar.com ثبت نام کنید. (راهنما)
ایمیل شما بعد از ثبت نمایش داده نخواهد شد