IRcontroller parameters
Posted: 24 Apr 2018 14:36
Hi,
Wondering if anyone could please explain some of the concepts implemented by IRcontroller.
What does the following parameters do:
IR_MS_PRESCALLER_
IR_CARRIER_PRESCALLER_
IR_TRAILSPACE_
The "flag" parameter has a long list of options:
IR_FLAGS_IO_INVERTED
IR_FLAGS_OUTPUT_HIGHDRIVE
IR_FLAGS_OUTPUT_MSCARRIER
IR_FLAGS_OUTPUT_HIGHIDLE
IR_FLAGS_INPUT_DETECTCARRIER
IR_FLAGS_IO_OUTPUT
The "IO_INVERTED" flag is explained in the reference documentation, but what about the other ones?
I am guessing I can use OR to select several of them. Correct?
Example: IR_FLAGS_IO_INVERTED | IR_FLAGS_INPUT_DETECTCARRIER
Applying it to a real case:
I am trying to capture IR signals from a Bang & Olufsen remote control. It sends IR on 455 kHz so I have a TSOP7000 to capture the IR signals.
I know the "mark" is 200 micro seconds and "space" is a multiple of 3125 micro seconds.
How does that translate into the right prescaler values?
As I have not managed to get my head around the IRcontroller library, I am curently using the GPT to sample the PIN status in order to capture the high/low signals and time them. It works so-so I would say. I am getting problems with the sampling frequency. The interrupt handler seems to stop the Z-Uno from executing some time consuming instructions, like the Serial.print command for instance. I would prefer to use a stable IR library for this sort of job.
Appreciate any help or hint.
Wondering if anyone could please explain some of the concepts implemented by IRcontroller.
What does the following parameters do:
IR_MS_PRESCALLER_
IR_CARRIER_PRESCALLER_
IR_TRAILSPACE_
The "flag" parameter has a long list of options:
IR_FLAGS_IO_INVERTED
IR_FLAGS_OUTPUT_HIGHDRIVE
IR_FLAGS_OUTPUT_MSCARRIER
IR_FLAGS_OUTPUT_HIGHIDLE
IR_FLAGS_INPUT_DETECTCARRIER
IR_FLAGS_IO_OUTPUT
The "IO_INVERTED" flag is explained in the reference documentation, but what about the other ones?
I am guessing I can use OR to select several of them. Correct?
Example: IR_FLAGS_IO_INVERTED | IR_FLAGS_INPUT_DETECTCARRIER
Applying it to a real case:
I am trying to capture IR signals from a Bang & Olufsen remote control. It sends IR on 455 kHz so I have a TSOP7000 to capture the IR signals.
I know the "mark" is 200 micro seconds and "space" is a multiple of 3125 micro seconds.
How does that translate into the right prescaler values?
As I have not managed to get my head around the IRcontroller library, I am curently using the GPT to sample the PIN status in order to capture the high/low signals and time them. It works so-so I would say. I am getting problems with the sampling frequency. The interrupt handler seems to stop the Z-Uno from executing some time consuming instructions, like the Serial.print command for instance. I would prefer to use a stable IR library for this sort of job.
Appreciate any help or hint.