Strange amplitude when decoding an IR signal
I cant understand some behavior I am getting when working with an IR decoder.
I use a SX28 to generate an IR signal that is read from an IR decoder.
The decoder is sensitive to a frequency between 37-40Khz and outputs a high level when the carrier is detected and a low level when no carrier is detected. Low is 0V, while high is 5V.
When I clock the SX, the emitter, with a 4Mhz frequency I can read the codes without problem in the decoder side. In the decoder pins I get a signal with an amplitude of almost 5V, that is, it oscillates between 0 and 5V, which is what I expected. The shape of the signal is also right. The pulses width are calculated using PAUSEUS.
Now I have changed the frequency to 5Mhz for the SX and I get the same signal shape in the decoder. However I get an amplitude of the signal that is about 0.5V only. The result is that the decoder cannot decode the data as it interprets all incoming data as zero.
I understand that changing the master frequency could have an effect on the signal shape, but how is it that it has an effect on the signal amplitude in the receiver ? Can anyone explain this ?
Note: The signal is a standard IR with a 38Khz carrier.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I use a SX28 to generate an IR signal that is read from an IR decoder.
The decoder is sensitive to a frequency between 37-40Khz and outputs a high level when the carrier is detected and a low level when no carrier is detected. Low is 0V, while high is 5V.
When I clock the SX, the emitter, with a 4Mhz frequency I can read the codes without problem in the decoder side. In the decoder pins I get a signal with an amplitude of almost 5V, that is, it oscillates between 0 and 5V, which is what I expected. The shape of the signal is also right. The pulses width are calculated using PAUSEUS.
Now I have changed the frequency to 5Mhz for the SX and I get the same signal shape in the decoder. However I get an amplitude of the signal that is about 0.5V only. The result is that the decoder cannot decode the data as it interprets all incoming data as zero.
I understand that changing the master frequency could have an effect on the signal shape, but how is it that it has an effect on the signal amplitude in the receiver ? Can anyone explain this ?
Note: The signal is a standard IR with a 38Khz carrier.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
I have changed the pulse settings and I get back the correct amplitude.
By the way, where is the Andy code to take a look ?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.