Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

IR-decoder NEC, Samsung, Toshiba.

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here
View previous topic :: View next topic  
Author Message
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Sat Jul 11, 2015 12:52 am    Post subject: IR-decoder NEC, Samsung, Toshiba. Reply with quote

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.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5922
Location: Holland

blank.gif
PostPosted: Mon Jul 13, 2015 10:53 pm    Post subject: Reply with quote

ha, super ! A big frequency range and lot of protocols.
Thank you for sharing.

_________________
Mark
Back to top
View user's profile Visit poster's website
aphawk

Bascom Member



Joined: 23 Jan 2010
Posts: 168
Location: Brazil

brazil.gif
PostPosted: Tue Jul 14, 2015 6:02 pm    Post subject: Reply with quote

Mrshilov,

Thank you, is a very nice program, with a new approach, I like this solution, without frequency clock problems, and the best : multi-protocol !

Paulo
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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