Android Things Raspberry Pi GPIO最大频率是多少? [英] What is Android Things Raspberry Pi GPIO max frequency?

查看:155
本文介绍了Android Things Raspberry Pi GPIO最大频率是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在哪里可以找到Android下Raspberry Pi 3的GPIO端口的开关速度的特征,例如

Where can be found the characteristics of the switching speed of GPIO port for the Raspberry Pi 3 under Android Things like that?

推荐答案

In DP2 there is two ways to control GPIO:

1)和使用Java的SDK(由Harry Fairhead分析

1) with SDK using java (analyzed by Harry Fairhead here);

2)和使用C/C ++的NDK(由Harry Fairhead分析

2) with NDK using C/C++ (analyzed by Harry Fairhead here).

在使用Java的SDK时,看到的最快脉冲大约为0.23ms,并且脉冲序列中有很多大(最长8ms)中断(!!!).使用C/C ++的NDK时,脉冲宽度从0.23ms减小到大约0.15ms.

With SDK using java the fastest pulses seen are around 0.23ms and there are lots of large (up to 8ms) interruptions (!!!) in the pulse train. And with NDK using C/C++ the pulse width is reduced from 0.23ms to just around 0.15ms.

结论:Android Things DP2 Raspberry Pi GPIO的最大频率约为3 kHz,不足以编写与大多数不受支持的从盒子"协议接口的驱动程序.

Conclusion: Android Things DP2 Raspberry Pi GPIO max frequency is about 3 kHz, that is not fast enough to write drivers that interface to most not supported "from the box" protocols.

这篇关于Android Things Raspberry Pi GPIO最大频率是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆