GithubHelp home page GithubHelp logo

nec-dma's Introduction

Goal

The goal of this project is to psoc62 firmware for recording, decoding and replaying infrared singals using the NEC protocol. The NEC protocol is a common protocol for transmiting information from remote controls for TVs, air-conditions ect.

Implementation

The implementation is designed to keep the CPU asleep most of the time. The main loop sets up an interrupt on the gpio connected to the infrared reciever. The CPU then goes to sleep. An infrared transmition changes the state of this gpio and triggers the interrupt. In the corresponding isr, we setup a timer with the TCPWM peripheral and a dma transfer to be triggered on sbsequent activity on the gpio. The source of this dma transfer is the counter of this TCPWM and the destination a buffer, which will be filled with the tickstamps of when the gpio state changed. The CPU stays asleep during these transmitions. When the dma transfers complete, the CPU is woken up to process the samples in the buffer.

Hardware

We use the CY8CKIT-062S4 board and an infrared receiver connected to a gpio.

Building

This project requires the cypress sdk from the ModusToolbox. run make get-libs on first build. Then you can just run make build

Flashing

Run make program with board connected to host over micro-usb

nec-dma's People

Contributors

dawei8823 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.