TOP Contributors

  1. MIKROE (2657 codes)
  2. Alcides Ramos (354 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 (136895 times)
  2. FAT32 Library (70032 times)
  3. Network Ethernet Library (56005 times)
  4. USB Device Library (46308 times)
  5. Network WiFi Library (41934 times)
  6. FT800 Library (41230 times)
  7. GSM click (29021 times)
  8. PID Library (26434 times)
  9. mikroSDK (26401 times)
  10. microSD click (25387 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: 4112 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

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]

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]

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]