Posted: Sat Jul 11, 2015 12:52 am Post subject: IR-decoder NEC, Samsung, Toshiba.
IR-remote protocols NEC, Samsung and Toshiba are very close. This subroutine decode it all.
Address & Command bytes is ready received data,
Ir_receive bit indicate a received data,
Ir_repeat bit indicate a repeat key for NEC or Toshiba. Samsung has not special repeated key - transmitted whole data again.
Ir_error bit may be used to recognize receiving error.
Ir_protocol = 1 for NEC,
Ir_protocol = 2 for Samsung or Toshiba.
Subroutine is adaptive, so IR clock could go beyond the standard and AVR clock may be from 1 to 64 MHz - you can even change the frequency on the fly.
In attachment example with SSD1306 LCD.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum