主题 : 关于将USERKEY按键改为输出遇到的问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 12477
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
贡献值: 0 点
综合积分: 6 分
注册时间: 2010-01-07
最后登录: 2011-06-04
楼主  发表于: 2011-05-31 10:41

 关于将USERKEY按键改为输出遇到的问题

由于核心板上的LED输出没有引出来,所以我将USERKEY的低四位按键改为输出控制继电器,具体为:
g_pGPIOReg->GPNCON |=  0x1111U;//输出
    g_pGPIOReg->GPNPUD &= ~(0x1<<0);    ///< Pull-Up/Down Disable
    g_pGPIOReg->GPNPUD &= ~(0x1<<1);    ///< Pull-Up/Down Disable
    g_pGPIOReg->GPNPUD &= ~(0x1<<2);    ///< Pull-Up/Down Disable
    g_pGPIOReg->GPNPUD &= ~(0x1<<3);    ///< Pull-Up/Down Disable
    g_pGPIOReg->GPNDAT &= ~0x0FU; //初始都输出低电平  


,现在在上位机应用程序调用时,在初始化驱动一段时间后,板子重启了,是咋回事呢?郁闷啊
Stuck with TINY6410
级别: 新手上路
UID: 55912
精华: 0
发帖: 16
金钱: 80 两
威望: 16 点
贡献值: 0 点
综合积分: 32 分
注册时间: 2011-09-26
最后登录: 2011-12-17
1楼  发表于: 2011-10-25 13:26
Hi'
Can we not get just a sample source code for the buttons.exe. Even if it is not similar. At least a listing on this forum as to how to read the button value and display.
This can be done with even a few lines if you people motivate yourselves to help the customer. I just dont understand why we are made to wait for so long after having invested  money for the boards. Being from India, it is very depressing to note the lack of support totally for the friendly arm boards (especially tiny6410 which I bought 2 numbers with various accessories). Who ever i contact I am asked to wait for the update. And this update is almost 3 months in coming now and still waiting.