51_ infrared communication application in P (unfinished)

NEC 9ms high infrared protocol preamble, 4.5ms low, 0: 0.56mslow + 0.56mshigh 1: 0.56mslow + 1.56mshigh

Infrared transmitting circuit (remote control), a pulse width modulation, a carrier 38KHz infrared diode

Infrared receiver circuit, decoding IC

Interrupt 0, T0 (TMOD had wanted to use the T0.gate = 1, to calculate the pulse width, but do not know coded infrared signal is at a high level 1,0 difference !!), count computation time,> 6 1 signal, but contrary 0. the value displayed is always changing, despite many values ​​are the same,

Further, the determination to add the data to its respective two inverted phase if the statement is 0, displays the preset data identifies the error.

Doubt that the value shown is given by the count, count is the count come from the T0, roots in the T0 count. In theory, it should be sent by infrared code, the same key codes should be the same, I should be the same timing based on the value received under the agreement.

Guess you like

Origin www.cnblogs.com/pie-o/p/12037619.html