GithubHelp home page GithubHelp logo

nfc's Introduction

CH32-NFC-EVT

NFC-EVT是沁恒微电子在CH32通用系列单片机上实现的无需额外芯片的NFC读写方案。

支持芯片

CH32V003

CH32V20x

CH32V30x

CH32F20x

CH32 NFC原理概述

NFC操作代码位于工程目录中Drivers/NFC_Reader目录下。

NFC硬件底层使用了一个高级定时器,一个通用定时器,一个DMA通道。

高级定时器做为主定时器,通用定时器做为从定时器。在主定时器每个周期PWM波发出后,从定时器计数值+1,达到从定时器设定的周期值后,进入从定时器中断。在通用定时器中断中,通过修改寄存器CHCTLRx,对高级定时器产生的PWM输出进行开关。

DMA通道为该通用定时器更新事件所对应的DMA通道。

在波形发送完成后,通用定时器切换到接收模式,进行接收。

NFC结构图

LPCD低功耗检卡

LPCD低功耗检卡参考CH32V208 NFC双晶振低功耗检卡操作例程

硬件相关注意事项

硬件相关注意事项请查看硬件设计

软件相关注意事项

软件相关注意事项请查看软件设计

操作示例

NFC_Reader_M1.c中为NFC M1卡操作库。

NFC_Reader.c中为NFC代码操作示例。

NFC_Reader.c中演示了常用的读卡号、选中卡、读、写、扣款、充值等操作。

通讯测试

针对本方案所进行的一些测试请查看测试汇总

nfc's People

Contributors

smartmx avatar openwch 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.