I'm trying to program small uC (ATMega8) to send IR codes configured in
Please tell if I understand well configuration file format I have found
(using my Yamaha as an example):
For this fragment of config:
# devices being controlled by this remote: YAMAHA AV RECEIVER RX-V396RDS
header 9035 4399
one 631 1604
zero 631 487
repeat 9037 2163
I have to emit initial pulse (38kHz), during 9035us, then 4400us space,
one is represented by 630us pulse and 1600us space, zero by 630us pulse
and 490us space,
after initial pulse, I have to emit 0x5EA1, MSB first, using ones and
zeros "just defined",
now comes 'key' code, MSB first, in this example 0xF807,
after code, there should be a gap, calculated ("dynamically", depending
of codes sent), that ENTIRE signal has 107ms.
Is that correct?
I don't understand "toggle bit" - which bit (0) of what ("pre-data" or
"key code") should I invert?
And toggle bit is to be inverted, if "button" is "released" and THEN