TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139250 times)
  2. FAT32 Library (71746 times)
  3. Network Ethernet Library (57120 times)
  4. USB Device Library (47430 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42403 times)
  7. GSM click (29835 times)
  8. mikroSDK (28074 times)
  9. PID Library (26885 times)
  10. microSD click (26198 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: 4159 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

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]

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]

DC-DC PID Controlled Buck-Boost Power Supply with USB HID Interface (mikroBasic, mikroC, MPLAB C18)

11

This is a switching mode power supply to step up/down a DC voltage with PID control using a PIC18F14K50. The HID interface provides a way to set various parameters without needing additional hardware. The power supply can function without being connected to a PC since it saves all settings and restores them at start-up.

[Learn More]