Quote Originally Posted by bogdan View Post
the code was for a samsung tv .... close, but not the same like the nec protocol

SAMSUNG IR protocol:
http://www.samsung.com/global/busine...000_090108.pdf (check "Figure 1. IR Signal")



NEC IR protocol:
http://www.mcselec.com/index.php?opt...=223&Itemid=57

... the leader/header for nec should be 9msec

change the
DEFINE PULSIN_MAX 990 (try with 10% deviation... 900*1.1)
- - - - - - - - - - - - - - - - - - - - -
IF (Header < 810) OR (Header > 990) THEN GOTO IRIN (again the -/+10% deviation)
Did you try this?