資源描述:
《基于arm9的數(shù)據(jù)采集應(yīng)用程序設(shè)計》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、武漢理工大學(xué)華夏學(xué)院設(shè)計報告課程名稱嵌入式應(yīng)用系統(tǒng)設(shè)計與實踐___第一章、試驗設(shè)計要求1.1實驗設(shè)計任務(wù)考核題目:基于ARM9的數(shù)據(jù)采集程序設(shè)計通過S3C2410X(ARM9)的ADC采集實驗箱電位器的值,旋轉(zhuǎn)電位器時可在屏幕上看到當(dāng)前采集值的變化??稍龉δ埽?1)中斷功能:按下中斷按鍵觸發(fā)中斷,中斷時三個LED燈閃爍一次,且屏幕上打印正在中斷的提示。(2)報警功能:設(shè)定一個臨界值(如500),當(dāng)采集的值超過此臨界值時,燈閃爍報警,三個電位器可與三個燈一一對應(yīng)。1.2實驗平臺硬件平臺:博創(chuàng)經(jīng)典UP-NETARM2410實驗箱(S3C2410處理器)。軟件平
2、臺:eclipse+keil+PUTTY(串口調(diào)試助手)。1.3報告要求考核要求:1.硬件平臺為博創(chuàng)經(jīng)典UP-NETARM2410實驗箱(S3C2410處理器)。2.軟件平臺為eclipse+keil+PUTTY(串口調(diào)試助手)。3.一人一份紙質(zhì)報告,報告內(nèi)容不能雷同,雷同者全部以0分記載。報告內(nèi)容包括:(1)實現(xiàn)的功能(2)軟硬件平臺(3)硬件原理分析及原理圖(4)硬件驅(qū)動的實現(xiàn)步驟及分析(5)代碼設(shè)計:所有需要編寫的代碼(如adc.c、adc.h、main.c、Makefile等)、代碼的注釋,及整個工程樹形結(jié)構(gòu)的截圖。(6)運行及調(diào)試的步驟:需要圖文
3、并茂,圖必須是自己設(shè)計過程中的截圖。(7)總結(jié)體會:具體學(xué)到了什么知識、在學(xué)習(xí)過程中的經(jīng)驗、體會。第二章、相關(guān)寄存器定義2.1LED#ifndef__LED_H__#define__LED_H__voidled_init(void);voidled_on(void);voidled_off(void);#endif//__LED_H__2.2KEY#defineSRCPND(*((volatileunsignedint*)0x4A000000))#defineINTMOD(*((volatileunsignedint*)0x4A000004))#defin
4、eINTMSK(*((volatileunsignedint*)0x4A000008))#defineINTPND(*((volatileunsignedint*)0x4A000010))#defineINTOFFSET(*((volatileunsignedint*)0x4A000014))#defineGPFCON(*((volatileunsignedint*)0x56000050))#defineEXTINT0(*((volatileunsignedint*)0x56000088))#defineEINTMASK(*((volatileunsign
5、edint*)0x560000A4))#defineEINTPEND(*((volatileunsignedint*)0x560000A8))voidkey_init(void);voidkey_isr(void);2.3UART#ifndef__UART_H__#define__UART_H__#defineCLKCON(*((volatileunsignedint*)0x4C00000C))#defineUCON0(*((volatileunsignedint*)0x50000004))#defineUBRDIV0(*((volatileunsigne
6、dint*)0x50000028))#defineULCON0(*((volatileunsignedint*)0x50000000))#defineUMCON0(*((volatileunsignedint*)0x5000000C))#defineUFCON0(*((volatileunsignedint*)0x50000008))#defineUTRSTAT0(*((volatileunsignedint*)0x50000010))#defineUTXH0(*((volatileunsignedint*)0x50000020))#defineURXH0
7、(*((volatileunsignedint*)0x50000024))voiduart_init(void);voidputc(charc);voidputs(constchar*str);chargetc(void);#endif//__UART_H__2.4ADC#defineADCCON(*((volatileunsignedint*)0X58000000))//ADC控制寄存器#defineADCTSC(*((volatileunsignedint*)0X58000004))//ADC觸摸屏控制寄存器#defineADCDLY(*((volat
8、ileunsignedint*)0X58000008))//ADC