No.91925 作者:liufengzhong 邮件:l_fz@sina.com ID:149522 登陆:12次 文章数:695篇 最后登陆IP:183.13.93.245 最后登陆:2015/6/16 17:02:27 注册:2014/7/29 21:51:15 财富:3671 发帖时间:2014/9/16 19:47:52 发贴者IP:14.125.32.81 标题:liufengzhong:ADC在startKIT(现在可以通过社区选项卡) 摘要:No.91925ADC在startKIT(现在可以通过社区选项卡) 项目概述 最后…… 这里是一些演示代码允许您轻松地使用startKIT adc。 我试图尽可能MCU-like API。 是一个简单的应用程序,包括灯相对应的发光二极管4 ADC输入成正比的ADC值。 驱动包含链接设置魔法,所以ADC功能/调试和运行时还在闪烁。 别忘了让xscope I / O(在GUI或运行配置——xscope提示)查看控制台输出。 享受与模拟世界! 我也会看得到这inetgarted例子. . 从adc.h: //adc.h for startKIT written by infiniteimprobability (xcore.com) June 2014 // //Contains ADC task and ADC interface definition // //Aims to present the U8A/startKIT ADC in an MCU-like manner by abstracting away //channels, link setup (for startKIT FLASH boot) and trigger requirements. // //Enables all 4 channels and provides simple API for trigger, read and conversion complete event //Practical fastest sample rate (to aquire all 4 channels) with all cores running flat-out //is about 50us (to trigger, aquire, noti ......
>>返回讨论的主题
|