资源简介
arm触摸屏与LCD校准程序 三点校准法
代码片段和文件信息
#define _ISR_STARTADDRESS 0x33ffff00
#define pISR_ADC (*(unsigned *)(_ISR_STARTADDRESS+0x9c))
#define pISR_IIC (*(unsigned *)(_ISR_STARTADDRESS+0x8c))
#define U32 unsigned int
#define M5D(n) ((n) & 0x1fffff) // To get lower 21bits
#define rGPCCON (*(volatile unsigned *)0x56000020) //Port C control
#define rGPCDAT (*(volatile unsigned *)0x56000024) //Port C data
#define rGPCUP (*(volatile unsigned *)0x56000028) //Pull-up control C
#define rGPDCON (*(volatile unsigned *)0x56000030) //Port D control
#define rGPDDAT (*(volatile unsigned *)0x56000034) //Port D data
#define rGPDUP (*(volatile unsigned *)0x56000038) //Pull-up control D
#define rGPGCON (*(volatile unsigned *)0x56000060) //Port G control
#define rGPGDAT (*(volatile unsigned *)0x56000064) //Port G data
#define rGPGUP (*(volatile unsigned *)0x56000068) //Pull-up control G
#define rLCDCON1 (*(volatile unsigned *)0x4d000000) //LCD control 1
#define rLCDCON2 (*(volatile unsigned *)0x4d000004) //LCD control 2
#define rLCDCON3 (*(volatile unsigned *)0x4d000008) //LCD control 3
#define rLCDCON4 (*(volatile unsigned *)0x4d00000c) //LCD control 4
#define rLCDCON5 (*(volatile unsigned *)0x4d000010) //LCD control 5
#define rLCDSADDR1 (*(volatile unsigned *)0x4d000014) //STN/TFT frame buffer start address 1
#define rLCDSADDR2 (*(volatile unsigned *)0x4d000018) //STN/TFT frame buffer start address 2
#define rLCDSADDR3 (*(volatile unsigned *)0x4d00001c) //STN/TFT Virtual screen address set
#define rLCDINTMSK (*(volatile unsigned *)0x4d00005c) //LCD Interrupt mask
#define rTCONSEL (*(volatile unsigned *)0x4d000060) //LPC3600 Control --- edited by junon
// ADC
#define rADCCON (*(volatile unsigned *)0x58000000) //ADC control
#define rADCTSC (*(volatile unsigned *)0x58000004) //ADC touch screen control
#define rADCDLY (*(volatile unsigned *)0x58000008) //ADC start or Interval Delay
#define rADCDAT0 (*(volatile unsigned *)0x5800000c) //ADC conversion data 0
#define rADCDAT1 (*(volatile unsigned *)0x58000010) //ADC conversion data 1
#define rADCUPDN (*(volatile unsigned *)0x58000014) //Stylus Up/Down interrupt status
// INTERRUPT
#define rSRCPND (*(volatile unsigned *)0x4a000000) //Interrupt request status
#define rINTMOD (*(volatile unsigned *)0x4a000004) //Interrupt mode control
#define rINTMSK (*(volatile unsigned *)0x4a000008) //Interrupt mask control
#define rPRIORITY (*(volatile unsigned *)0x4a00000c) //IRQ priority control
#define rINTPND (*(volatile unsigned *)0x4a000010) //Interrupt request status
#define rINTOFFSET (*(volatile unsigned *)0x4a000014) //Interruot request source offset
#define rSUBSRCPND (*(volatile unsigned *)0x4a000018) //Sub source pending
#define rINTSUBMSK (*(volatile unsigned *)0x4a00001c) //Interrupt sub mask
//port B led
#define rGPBCON (*(volatile unsigned *)0x56000010) //Port B control
#define rGPBDAT (*(volatile unsigne
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 40531 2008-10-31 12:39 tc\inc\2440addr.h
文件 4212 2008-10-31 12:39 tc\inc\2440addr.inc
文件 1620 2009-08-23 17:59 tc\inc\def.h
文件 3046 2008-10-31 12:50 tc\inc\Memcfg.inc
文件 1473 2008-12-05 11:47 tc\inc\Option.h
文件 3578 2009-08-23 17:59 tc\inc\Option.inc
目录 0 2011-03-19 19:46 tc\inc
文件 15422 2010-02-10 14:48 tc\src\2440init.s
文件 14280 2010-04-21 10:27 tc\src\main.c
目录 0 2011-03-19 19:46 tc\src
文件 195914 2010-04-21 11:32 tc\tc.mcp
文件 3450 2010-04-21 11:32 tc\tc_Data\CWSettingsWindows.stg
文件 55396 2010-04-21 10:27 tc\tc_Data\Debug\TargetDataWindows.tdt
目录 0 2011-03-19 19:46 tc\tc_Data\Debug
文件 8040 2010-04-18 08:57 tc\tc_Data\DebugRel\ob
文件 17684 2010-04-21 10:27 tc\tc_Data\DebugRel\ob
目录 0 2011-03-19 19:46 tc\tc_Data\DebugRel\ob
文件 60597 2010-04-21 10:27 tc\tc_Data\DebugRel\TargetDataWindows.tdt
文件 24952 2010-04-21 10:27 tc\tc_Data\DebugRel\tc.axf
文件 5396 2010-04-21 10:27 tc\tc_Data\DebugRel\tc.bin
目录 0 2011-03-19 19:46 tc\tc_Data\DebugRel
文件 54022 2010-04-21 10:27 tc\tc_Data\Release\TargetDataWindows.tdt
目录 0 2011-03-19 19:46 tc\tc_Data\Release
目录 0 2011-03-19 19:46 tc\tc_Data
目录 0 2011-03-19 19:46 tc
----------- --------- ---------- ----- ----
509613 25
- 上一篇:思科(CISCO) 2960 中文手册
- 下一篇:[免费]车载CE6.0操作系统
评论
共有 条评论