|
RC-6 p~tp uutpy tp~~ IK {p~p|. Kstp } p{~|y q|u}z ~urp{y {|pry ~p {~||up, y|p ytu y|xrp twzy{, ~{tu. N ru y ytuy p|y, yy~u y}y, spqpy y q|u} yquu~yu}. Sstp qpy|y { |p} typ~y~~s pr|u~y y p ytu {pxp|p ~pt{z! Nyx{p y}, t~, "{p {~{", {~}y~ y .t. y .. r qu} } xp pr|u~y } DT - {p{ {pxp| u~ tq~!!! B } pxtu|y } uy|y yp y~y, rx}w~y {|p RC-6. Philips RC-6 Protocol O~r~u qu~~y {|p. RC-6 ys~p| }t|yrp~ ~p y~p{p~z ~uuz ~p pu 36 {C. Wy{| uwy}p pq z ~uuz t|wu~ q }uwt 25 % y 50 %. Dp~~u }yrp~, y|x Mp~uu{u {tyrp~yu. ^ x~ppu, {pwtz qy qtu y}u y "1" y "0" r rt~} ys~p|u. E|y y}r| - "1", urp |ry~p ru}u~y uutpy qyp - "1", y rp |ry~p - "0". E|y y}r| - "0", urp |ry~p ru}u~y uutpy qyp - "0", y rp |ry~p - "1".
Mp~uu{u {tyrp~yu - tpx}urpu u|y |{p ~py~pu ~| y t|w~p xp{p~yrp ~|u}. U}p uutpy r |p } p}y} ~p ys~p|p {u |p ~p rtu yu}~y{r. ^y yu}~y{y tuur y u~ |~ (TSOP48.., ~ y ~u y}uu x~pu~y). Oqpyu r~y}p~yu, pyr~z ru~ ~p rtu yu}~y{p r{yz "1"!
P|{p ~py~pu uuty~ urs qpzp (uuty~p yrx{p y~~yxpyy
r }p~uu{} {tu). Drp qpzp pr| y~qpz
Rp 2_qpzp @ Qp}y ~p y}uu }yrp~y {tr 01 y 02. @ P|{p {tp rustp ~py~pu y~y}|p urs qyp, xpu} |utu uu ty~ |~z prz qy. S.E. rus ~p RS@QS rty |p qyp. Hp ~y} |utu qy {~| ~pwpy {|pryy. ^ qy y uutpu uut~s ~pwpy ~p {|pry }u~u ru x~pu~yu ~p yr|w~u. P } qy |us{ utu|y }u~ ~pwpy {|pryy. D|uu |utu y {~|~ qyp - rustp ~|y. @ xpu} uutpu qpz tp~~. Np yrutu~~ typsp}}p ryt~, ~uxpryy} uutprpu}s {tp ru~ rustp |u uutpy rxrppu r ~yu «1». ^ } y} qpy r~y}p~yu, u t~ yx |ryz pq }p~uu{s {tp. Npy~pu uty~y y {p~yrpu uty~yuz. Bustp r uuty~u qyp u uupt y~y}|p. O s uuptp u~ tq~ r|~ y~~yxpy (R p{y} p|sy}} ~p ytup|~ pqp ~utsyu yu}~y{y qux {rpurz pqy|yxpyy). Py~y xp{|pu r }, y ytu y~y}|p xp{pu xp~r uyt y{|p utu|u~y r~ ys~p|p, p xpu} xp{pu y{| wytp~y ytp y~y}|p.
Pz tu{tu RC-6 {tp. Py}u t| {~||up PIC16F1936 p{rz 32 }C. D| rtp tp~~ y|xu rrt RB0. #define IKDU PORTB,0 ; t| utu|u~y |u~y IK tp~~ y|x urp~y yx}u~u~y ys~p|p ~p rtu INT (RB0) y~ty{py ys~p|p IK #define LED00 PORTA,1 ; t| utu|u~yu t|yu|~y y|xu pz}u TMR2 ~pz{p pz}up
banksel T2CON ; ~pz{p urp~y
banksel INTCON ; ~pz{p urp~yz @ sp}}p tu{tyrp~y RC-6 {tp
ORG 0x0004 @ @
D| |u~y t|~yu|~z y~}pyy y|xzu: |
|