TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (385 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 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 (139842 times)
  2. FAT32 Library (72209 times)
  3. Network Ethernet Library (57392 times)
  4. USB Device Library (47739 times)
  5. Network WiFi Library (43364 times)
  6. FT800 Library (42700 times)
  7. GSM click (29980 times)
  8. mikroSDK (28440 times)
  9. PID Library (26989 times)
  10. microSD click (26398 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: 4175 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

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]

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]

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]