After some time of idleness i got to work again on my IR setup. I still have some problem understanding what happens.
This is my setup:
Transmitter: picaxe28x1, IR led (tsal6100)with cathode connected to pwm (%50 duty, 38000Hz), anode to an output pin.
pwm bla bla (set up of pwm)
pulsout 7, 250
Receiver: picaxe28a, IR receiver and demodulator (tsop1238) properly connected.
pulsin INPUT_PIN, 0, w0