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]
Rating:
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.
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)".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1362887950_nec_ir_protocol__mikroc_pic.rar [78.70KB] | mikroC PRO for PIC |
|
1362887980_nec_ir_protocol__mikrobasic_pic.rar [78.70KB] | mikroBasic PRO for PIC |
|
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.