nec_rc_decoder

NEC Infra Red Remote Control Decoder Library.

Author Rob Jansen, Copyright © 2023..2023, all rights reserved.
Adapted-by
Compiler 2.5r8

Description

Library for decoding NEC Remote Control messages. The library 
             can be configured to use either the external interrupt or an 
             IOC interrupt to decode the Remote Control Messages.
             The default is using an external interupt. In order to switch 
             to using an IOC interrupt the user must initialize the IOC
             to be active on both the rising and falling edge and must
             define the following alias (example for IOC on pin A2):
             alias nec_rc_decoder_ioc_flag is IOCAF_IOCAF2 


Sources

Documentation on the NEC protocol:
            https://www.renesas.com/us/en/document/apn/1184-remote-control-ir-receiver-decoder


Notes

The 38 kHz Infra Red receiver (active low) must be connected
             to the external interrupt pin or the used IOC pin.


Dependencies

No dependency found



Summary

Global variables/contants

Procedures

Private

Functions

Private

API details

Global variables/contants

Procedures

Private

Functions

Private
  • _nec_rc_handle_interrupt_flag() return bit

    This procedure handles the interupt flag. Reason for this procedure is to be
    able to use two differnt interrupt types, IOC and external.
    
    

  • _nec_rc_get_timer1_value() return word

     ----------------------------------------------------------------------------
    Stop Timer 1 and return the value of Timer 1. We return the Timer value if 
    it has not overflown otherwise this function returns the overflow value.
    
    



Related samples

Here are the list of samples which use this library:

16f182516f1825_nec_rc_decoder_serial.jal
16f182516f1825_nec_rc_decoder_ssd1306.jal
16f1885716f18857_nec_rc_decoder_serial.jal
16f877a16f877a_nec_rc_decoder_serial.jal