硕士论文-卡设备驱动技术研究

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

华中科技大学硕士学位论文卡设备驱动技术研究姓名:朱丽云申请学位级别:硕士专业:计算机应用技术指导教师:阳富民20060509I1993ICICPXA255NucleusPXA255GPIONucleusNucleusICICICTDA8007RC531ICTDA8007ICICRC531IC/IIAbstractWiththerapiddevelopmentofInformationTechnology,“Goldcardproject”,acardinformationtechnologyprojectwhichwasfocusingonapplicationofelectroniccurrency,waslaunchedin1993.Aftermorethan10yearsofdevelopment,thetechnologyofmagneticcardandICcard,onbehalfofcardinformationtechnology,havealreadybeenwidelyappliedinmanyfields,suchasfinance,telecommunication,socialsecurity,taxaffairs,publicsecurity,transportationandsoon.TheapplicationofmagneticcardtechnologyandICcardtechnology,hasobtainedgoodsocialandeconomicefficiency.ThedevelopmentplatformofmagneticcardandICcard’sdevicedriverswasbuiltonprocessorPXA255andembeddedoperatingsystemNucleus.Bystudyingthegeneral-purposeI/O(Input/Output)mechanismandinterruptcontrollerinPXA255,andinvestigatingthekeytechniquesofNucleus’sdevicedriver,andthencombiningwithfunctionalanalysisofcarddevice,thepaperproposeamodulepartitionplanofcarddevicedriverbasedonNucleus.Carddevicedriverwasdividedintothefollowingmodules:theinitializationmodule,thecard’spower-onmodule,thecard’spower-offmodule,theinterrupthandlerroutine,thedataencapsulationmoduleandthedataanalysingmodule.Themaintaskofmagneticcarddevicedriveristoretrieveanddecryptdatainmagneticcard,andthenanalyzedataaccordingtomagneticcardtechnicalstandard.Onthebasisofreseachingthemagneticcardtechnology,wedividetheprocedureintothefollowingmodules:theinitializationmodule,theinterrupthandlerroutine,thedecryptingmodule,theanalysismodule,andthenimplementeachspecificmoduleindetail.ICcardcandivideintocontactICcardandcontactlessICcard,usingTDA8007andRC531asinterfacecontrolchiptodesignthereaderrespectively.OnthebasisofanalyzingthecontactICcard’sworkingprocessandTDA8007’soperatingprinciples,andaccordingtothemodulepartitionofcarddevice,wedividetheprocedureintomodulestoimplementthecontactICcarddevicedriver.Atthesametime,onthebasisIIIofanalyzingthecontactlessICcard’sworkingprocessandRC531’soperatingprinciples,wepartitionthecontactlessdevicedriverintotheinitializationmodule,thecommandexecutingmodule,theinterrupthandlerroutine,theseekingcardmodule,thecard’spower-onandpower-offmodule,aswellasread/writeoperatingmodule,andthenimplementeachmoduleindetail.Keywordsembeddedoperatingsystem,devicedriver,magneticcard,ICcard3___111.1[1]1993ICICICIC[2]ICICIC[3]ICICICICIC[4]INTELPXA255NucleusICICPOSICIC21.21.2.1ICIC13[5]ISO7811ISO7810(1)(2)2ICIC[6]ICICICCPUCPUROMCOS(ChipOperationSystem)[7]COS[8]COS(ICISO/IEC7816ICISO/IEC14443)COSCOS3[9]ICICIC(1)ICIC8ISO7816IC[10]ICISO7816(ATR)(2)ICICIC()ICICPVC[11]ICICICICIC[12]ICKABALEGICPhilipsMIFARE[13]13.56MHzICLEGICICMIFARELEGICIC[14]LEGICMIFARE4LEGICMIFARELEGICMIFAREMIFAREISO/IEC14443[15]TYPEAIC1.2.2CPU(PCCPUCPU)/CPUPCCPUPCx86CPUx86CPUPC/CPUCPUI/OCPU/CPUPDACPUCPUCPUI/O/CPURISC[16,17]1970IBMRISC35SunSPARCMotorolaMPC6031990ARMRISCCPUv3v6RISCCPURISCCPU/DMASoC(SystemOnChip)SoCCPUARM[18]SoCARMCPUARM3216Thumb16ARM75ARM9ARM9EARM10SecurCoreARM7[19]32ARM7TDMIARM7TDMI-SARM720TDSPJavaARM7EJARM70.9MIPS/MHzEP73xxCirrusLogicCirrusLogicARM7SDRAMMMU75MHzARM9[20]1.1MIPS/MHzARM920ARM922TMMUCacheAMBAMotorolaDragonballMX1ARM920TCPU200MHzLCDRAMUSB/MMCSoCARM10DSPEmbeddedICE-RTMMUcache64AHBARM950%ARMRISCARMMIPSPowerPCARM[21]IntelARMARMv5TE()ThumbDSPARMv5—Xscale[22]ARMIntelPXA255[23]32IntelXScaleThumb64DSP,LCDPCMCIA/CFI/O[24]PXA25561.2.38163264RISCTCP/IPGUIWindRiverVxworkQNXQNXMicrosoftWinCEATINucleus[25]1VxWorks[26]WindRiverVxWorksTCP/IPVxWorks2QNX[27]QNXSoftwareSystemsMACHUnix/LinuxQNX(QNX4.x12Kb)[28]3WinCE[29]MicrosoftWinCEMSWindows4Nucleus[30]ATINucleus95%ANSICNucleusNucleus(COMPONENT)[31]C7NucleusPlusNucleusPlusI/ONucleusROM/FLASHNucleusCISC20kRISC40k1.5k1.3PXA255NucleusPXA25532IntelXScaleNucleusICICICTDA8007ISO/IEC7816ICICRC531MIFAREISO/IEC14443IC23ICICICIC1PXA255Nucleus22383ICTDA8007TDA8007IC4ICRC531RC531IC92PXA255Nucleus2.1IntelPXA255PXA25532IntelXScaleGPIOGPIO2.1.1GPIOPXA255273285GPIOGPIOGPIO1GPDRGPDR01GPIO2GPSRGPCRGPSR1GPCR1GPSRGPCR03GPLRGPLRGPLR1GPLR04GRERGFERGRER1GFER1GRERGFER1GEDR1105GEDRGEDRGRERGFERGEDR11GEDR6GAFRGPIOGPIO6GPIOGPIOGPIOGPIOGRERGFERGEDR1GPIOGPIO[84:2]GEDR[84:2]GPIO2.1.2ARM7IRQFIQ[32][33]PXA255XSCALEARMIRQFIQ22FIQIRQPXA255MMCMultiMediaCardAC’97GPIOPXA25585GPIOGPIO[84:2]122GPIO3GPIO[0]GPIO[1]GPIO[84:2]3222112222101(1)ICMR22ICMR1ICCR[DIM]11ICMRICMR0ICMR(2)ICCRDIMDIMICMR1DIM0ICMR(3)ICPRICPR1ICMRICPR10GPIO[84:2]1GPIO[84:2](4)ICLRICMRICLR0ICIP1IRQICLR1ICFP1FIQICMR0ICLR(5)ICIPICFPIRQFIQ1IRQFIQICIPICFP1ICIPICFP2(1)ICPR1(2)ICMR1ICLRIRQFIQICIPICFP1CPU(3)CPUICIPICFPGPIO[84:2]GPIOGEDRICIPICFPGEDR122.2NucleusNucleusI/ONucleusNucleusI/O2.2.1NucleusNucleus256NucleusGPIO[84:2]NucleusLISRHISRLISRHISRHISRNucleusLISRHISR[34]NucleusTCD_Registered_LISRs[256]TCD_Registered_LISRs00TCD_LISR_PointersTCD_LISR_Pointers[30]LISRLISRNU_Register_LISRLISRLISRLISRTCD_LISR_PointersTCD_Registered_LISRsNU_Create_HISRHISRHISRPXA255Nucleus1ICIPICFPGPIO[84:2]GPIOGEDRGPIO132LISRTCD_LISR_PointersLISRLISR3LISRNU_Activate_HISR

1 / 59
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功