ini2440 触摸屏实验
来源:互联网 发布:office2003是什么软件 编辑:程序博客网 时间:2024/06/02 17:55
本实验为mini2440触摸屏裸机驱动实验,通过点击触摸屏获得该点的坐标,然后通过UART显示在电脑上,主要配置ADCCON控制寄存器,利用中断模式读取X,Y坐标,并显示出来,代码后注释已经详细给出,具体实验代码如下:
#define GLOBAL_CLK 1
#include
#include
#include
#include
#include
#include
#include
#include
#include
volatile
void
{
U32
if
{
Uart_Printf("\nStylus
rADCTSC
}
else
{
Uart_Printf("\nStylus
}
rADCTSC
saveAdcdly
rADCDLY
rADCCON
while
while
while
xdata
ydata
//Check
rSUBSRCPND
ClearPending(BIT_ADC);
rINTSUBMSK
rINTMSK
rADCTSC
rADCTSC
while
{
if
{
Uart_Printf("Stylus
break;
}
}
Uart_Printf("count=%d
rADCTSC
rSUBSRCPND
rINTSUBMSK
ClearPending(BIT_ADC);
}
void
{
rADCDLY
rADCCON
Uart_Printf("\n[ADC
rADCTSC
pISR_ADC
rINTMSK
rINTSUBMSK
Uart_Printf("\nType
Uart_Printf("\nStylus
Uart_Getch();
rINTSUBMSK
rINTMSK
Uart_Printf("[Touch
}
void
{
MMU_Init();//初始化内存,实现内存地址重定向
AdcTs_Test();
while(1);
}
- ini2440 触摸屏实验
- mini2440 触摸屏实验
- 国嵌实验:触摸屏
- STM32-触摸屏实验
- ARM学习之触摸屏实验
- 韦东山视频实验之触摸屏
- 触摸屏驱动的reset的实验
- 触摸屏
- 触摸屏
- 触摸屏
- 触摸屏
- 触摸屏
- 触摸屏
- 触摸屏
- 触摸屏
- 触摸屏
- cortex_m3_stm32嵌入式学习笔记(二十二):触摸屏实验(触摸屏驱动)
- 2440具体分析触摸屏实验代码(转)
- (转)JQuery操作checkbox、radio等示例
- mini2440 IIC-AT24C08a读写实验
- 【转载】SAP PP T-Code
- poj1855(Mint)
- RT-Linux开发之-实现原理
- ini2440 触摸屏实验
- 进制转换原理
- mini2440外部irq中断实验
- linux粉丝(2)
- 会声会影X5
- atoi实现_字符串中含有字母_处理的不好哎
- 国嵌实验:触摸屏 分类: mini2440 裸机程序 2011-09-27 15:28 17人阅读 评论(0) 收藏 举报 #define GLOBAL_CLK 1 #include <st
- linux粉丝(3)
- atoi函数实现_buwanmei