TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136620 times)
  2. FAT32 Library (69826 times)
  3. Network Ethernet Library (55883 times)
  4. USB Device Library (46222 times)
  5. Network WiFi Library (41860 times)
  6. FT800 Library (41075 times)
  7. GSM click (28942 times)
  8. PID Library (26401 times)
  9. mikroSDK (26316 times)
  10. microSD click (25328 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Project

NEC IR Protocol Encoder/Decoder with PIC16F150X Timer1 Gate signal capture (MPLAB XC8, mikroC, mikroBasic)

Rating:

0

Author: Ghanshyam Patel

Last Updated: 2016-02-18

Package Version: 1.0.0.0

Category: Communication

Downloaded: 4106 times

Followed by: 1 user

License: MIT license  

A project to encode (remote) and decode (receiver) InfraRed signals using the NEC protocol. It uses the Timer1 Gate function to continually capture the signal to reduce software load and gives it a fast response. The idea is to reverse polarity on the Timer1 Gate capture as soon as it interrupts so it can capture both the high & low signals.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "NEC IR Protocol Encoder/Decoder with PIC16F150X Timer1 Gate signal capture (MPLAB XC8, mikroC, mikroBasic)" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "NEC IR Protocol Encoder/Decoder with PIC16F150X Timer1 Gate signal capture (MPLAB XC8, mikroC, mikroBasic)" changes.

Do you want to report abuse regarding "NEC IR Protocol Encoder/Decoder with PIC16F150X Timer1 Gate signal capture (MPLAB XC8, mikroC, mikroBasic)".

  • Information
  • Comments (0)

Project Blog

Protocol Information:

http://wiki.altium.com/display/ADOH/NEC+Infrared+Transmission+Protocol

NEC IR Protocol Decoder:

Decoding of the IR signal using the Timer1 gate (RA4) function on PIC16F150X microcontrollers to capture the signal with Timer0 used as a timeout indicator. The MPLAB XC8 version is fully tested. The mikroC version is only made for PIC16F1509 and its performance is terrible since it only decodes properly once in a while (reason unknown).

Not all remotes follow this protocol and even if they not the timings are not always the same. The code can be adapted for most remotes by modifying the decoding process in the interrupt function (underneath “LowValue = Timer1Value”).

NEC IR Protocol Encoder:

Very simple remote control IR signal simulation program for PIC18F14K50 on all PORTC pins in mikroBasic.

ALSO FROM THIS AUTHOR

Wireless Light Status Indicator Using Low Cost RF Module

5

The project transmits an encoded sensor reading wireless using the UART module. The data sent can be unencrypted for a higher chance of the data being accepted or it can be XTEA encrypted. The project uses PIC12F1822 and PIC12F1840 (code can be used interchangeably for both) for testing but the examples are only for PIC12F1840.

[Learn More]

USB Logic Tool - PIC18F14K50 in mikroBasic, mikroC, MPLAB C18

5

The device is meant to be a prototyping aid and designed to work well by minimizing breadboard space used, interaction through a visual interface, easy setup and low cost. The low cost allows it to be built at home or a PCB can be purchased for a low price.

[Learn More]

Microchip HID Bootloader Template and ADC Over USB for PIC18F and PIC24F (PIC18F14K50, PIC18F27J53, PIC18F2553, PIC18F4553, PIC24FJ64GB002 Tested)

15

A template for mikroBasic, mikroC and MPLAB C18/C30 that is compatible with Microchip's HID Bootloader for PIC18F and PIC24F microcontrollers and PIC18F14K50, PIC18F27J53, PIC18F2553, PIC18F4553 and PIC24FJ64GB002 have been tested. ADC Over USB Example (firmware and Visual Basic 2010 project) and a custom HID bootloader project are also included.

[Learn More]