版主: wanchong , wangyu , eepwwp , firedom

分享到:
共10条 1/1 1   

Intel Edison 与 STM32F4 互连 --《Edison GPIO接口性能测试》

    [您是本帖的第1265位阅读者]
muzhen2000
我是MM
普通会员

最后登陆时间:2015-09-29 16:01:27

直达楼层
1# 发表于 2015-04-15 23:22:40
Intel Edison 微型计算机内置了一枚双核Intel Atom @500MHz CPU,一枚Intel Quack @100MHz MCU/MPU,运行Ubilinux(Debian)或Yocto系统。Intel Edison 配备Arduino/标准扩展板方便接口引出。
 

STM32F4是意法半导体公司推出的基于ARM Cortex-M4的MCU,扩展性能超强。
现在,我们来试试两个芯片的混合工作。

Intel Edison GPIO接口性能测试:
Intel Edison内置了一枚Intel Quack @100MHz MCU/MPU,具备GPIO直接输出功能,我们可以通过将GPIO输出的信号直接输入STM32F4进行采集获得Intel Edison的GPIO翻转速度。

Edison上的脚本代码:

[C] 纯文本查看 复制代码
?
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 *Copy Right 2006~2010
 *Aperture Electronic Inc. Image & Doduo & Joe Labortory
 
 *Intel Edison Development Board GPIO Speed Test
*/
 
//C/C++ Main Header Files
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
 
//Intel Edison MRAA GPIO Header File
#include "mraa/gpio.h"
 
intmain(intargc,char**argv)
{
    intcount;
 
    mraa_gpio_context TestPin;
 
    fprintf(stdout,"Welecome to Aperture Electronic Inc.\n"
                   "Image & Doduo & Joe Labortory\n"
                   "Intel Edison Development Board Test Experience\n\n");
    fprintf(stdout,"Now we start the first test:GPIO Speed Test\n"
                   "Please get ready for your oscilloscope :)\n");
 
    //Initialize GPIO and Put Its Hardware Address Into a Variable
    TestPin = mraa_gpio_init(13);
 
    //Set GPIO Mode to Output
    mraa_gpio_dir(TestPin,MRAA_GPIO_OUT);
 
    fprintf(stdout,"Now start!!\n"
                   "Please put your oscilloscope's probe to the D13 pin on board.\n");
 
    for(;;)
    {
        mraa_gpio_write(TestPin,0);
        mraa_gpio_write(TestPin,1);
    }
 
 
    return0;
}




STM32F4这边我使用了一个自制的简易示波器+FFT分析仪。

连接Intel Edison上的D13到STM32F4的采集端口:



 



在Intel Edison上运行测试程序:
 



采集到的波形和频谱图:
 



这样看来,Intel Edison在使用MRAA函数库标准情况下,输出频率稳定,大概在15KHz左右。

版权所有(C)2006~2015 光圈电子科技·晓航·多多·啾儿实验室

RE:by zpeng

cinima880
我是MM
普通会员

最后登陆时间:2015-01-14 10:55:20

2# 发表于 2015-04-18 19:08:45
牛!

RE:by zpeng

xaz1003
我是MM
普通会员

最后登陆时间:2015-01-14 11:10:39

3# 发表于 2015-04-21 15:57:28
留名

RE:by zpeng

y1245
我是MM
普通会员

最后登陆时间:2015-01-14 10:51:11

4# 发表于 2015-04-23 22:29:15
挺不错,

RE:by zpeng

why0530
我是MM
普通会员

最后登陆时间:2015-01-14 11:03:16

5# 发表于 2015-04-25 12:28:15
请给新的资料连接,以前的挂了

RE:by zpeng

dh12345
我是MM
普通会员

最后登陆时间:2015-01-14 10:46:37

6# 发表于 2015-04-26 09:04:36
报道,佩服

RE:by zpeng

zry122489
我是MM
普通会员

最后登陆时间:2015-01-14 10:40:23

7# 发表于 2015-04-26 14:33:23
好赞啊!

RE:by zpeng

melody881019
我是MM
普通会员

最后登陆时间:2015-01-14 10:56:35

8# 发表于 2015-04-27 14:44:11
好棒!

RE:by zpeng

zalman
我是MM
普通会员

最后登陆时间:2015-01-14 10:49:38

9# 发表于 2015-04-27 15:40:09
顶一个

RE:by zpeng

tangccc
我是MM
普通会员

最后登陆时间:2015-01-14 10:55:19

10# 发表于 2015-04-30 17:36:20
赞一个,楼主好样的
共10条 1/1 1   
快速回复主题
  • 匿名不能发帖!请先 [ 登陆 注册 ]