您好,欢迎访问三七文档
#ifndef__iom16v_h#define__iom16v_h/*ATmega16headerfilefor*ImageCraftICCAVRcompiler*//*lastchanged2004/12/192008/07/03checkedfornewchipM16AremovedunusedADHSMdefínition*//*2wireserialinterface*/#defineTWBR(*(volatileunsignedchar*)0x20)#defineTWSR(*(volatileunsignedchar*)0x21)#defineTWPS11#defineTWPS00#defineTWCR(*(volatileunsignedchar*)0x56)#defineTWINT7#defineTWEA6#defineTWSTA5#defineTWSTO4#defineTWWC3#defineTWEN2#defineTWIE0#defineTWAR(*(volatileunsignedchar*)0x22)#defineTWGCE0#defineTWDR(*(volatileunsignedchar*)0x23)/*ADC*/#defineADC(*(volatileunsignedint*)0x24)#defineADCL(*(volatileunsignedchar*)0x24)#defineADCH(*(volatileunsignedchar*)0x25)#defineADCSR(*(volatileunsignedchar*)0x26)#defineADCSRA(*(volatileunsignedchar*)0x26)#defineADEN7#defineADSC6#defineADATE5#defineADFR5/*Thisdefinitionwasinolddatasheet*/#defineADIF4#defineADIE3#defineADPS22#defineADPS11#defineADPS00#defineADMUX(*(volatileunsignedchar*)0x27)#defineREFS17#defineREFS06#defineADLAR5#defineMUX44#defineMUX33#defineMUX22#defineMUX11#defineMUX00/*AnalogComparator*/#defineACSR(*(volatileunsignedchar*)0x28)#defineACD7#defineACBG6#defineACO5#defineACI4#defineACIE3#defineACIC2#defineACIS11#defineACIS00/*USART*/#defineUBRRHI(*(volatileunsignedchar*)0x40)#defineUBRRH(*(volatileunsignedchar*)0x40)#defineURSEL7#defineUBRR(*(volatileunsignedchar*)0x29)#defineUBRRL(*(volatileunsignedchar*)0x29)#defineUCSRC(*(volatileunsignedchar*)0x40)#defineURSEL7#defineUMSEL6#defineUPM15#defineUPM04#defineUSBS3#defineUCSZ12#defineUCSZ01#defineUCPOL0#defineUCSRB(*(volatileunsignedchar*)0x2A)#defineRXCIE7#defineTXCIE6#defineUDRIE5#defineRXEN4#defineTXEN3#defineUCSZ22#defineRXB81#defineTXB80#defineUCSRA(*(volatileunsignedchar*)0x2B)#defineRXC7#defineTXC6#defineUDRE5#defineFE4#defineDOR3#defineOVR3/*Thisdefinitiondiffersfromthedatabook*/#definePE2#defineU2X1#defineMPCM0#defineUDR(*(volatileunsignedchar*)0x2C)/*SPI*/#defineSPCR(*(volatileunsignedchar*)0x2D)#defineSPIE7#defineSPE6#defineDORD5#defineMSTR4#defineCPOL3#defineCPHA2#defineSPR11#defineSPR00#defineSPSR(*(volatileunsignedchar*)0x2E)#defineSPIF7#defineWCOL6#defineSPI2X0#defineSPDR(*(volatileunsignedchar*)0x2F)/*PortD*/#definePIND(*(volatileunsignedchar*)0x30)#defineDDRD(*(volatileunsignedchar*)0x31)#definePORTD(*(volatileunsignedchar*)0x32)/*PortC*/#definePINC(*(volatileunsignedchar*)0x33)#defineDDRC(*(volatileunsignedchar*)0x34)#definePORTC(*(volatileunsignedchar*)0x35)/*PortB*/#definePINB(*(volatileunsignedchar*)0x36)#defineDDRB(*(volatileunsignedchar*)0x37)#definePORTB(*(volatileunsignedchar*)0x38)/*PortA*/#definePINA(*(volatileunsignedchar*)0x39)#defineDDRA(*(volatileunsignedchar*)0x3A)#definePORTA(*(volatileunsignedchar*)0x3B)/*EEPROM*/#defineEECR(*(volatileunsignedchar*)0x3C)#defineEERIE3#defineEEMWE2#defineEEWE1#defineEERE0#defineEEDR(*(volatileunsignedchar*)0x3D)#defineEEAR(*(volatileunsignedint*)0x3E)#defineEEARL(*(volatileunsignedchar*)0x3E)#defineEEARH(*(volatileunsignedchar*)0x3F)/*WatchdogTimerControlRegister*/#defineWDTCR(*(volatileunsignedchar*)0x41)#defineWDTOE4#defineWDE3#defineWDP22#defineWDP11#defineWDP00/*Timer/Counter2*/#defineASSR(*(volatileunsignedchar*)0x42)#defineAS23#defineTCN2UB2#defineOCR2UB1#defineTCR2UB0#defineOCR2(*(volatileunsignedchar*)0x43)#defineTCNT2(*(volatileunsignedchar*)0x44)#defineTCCR2(*(volatileunsignedchar*)0x45)#defineFOC27#defineWGM206#defineCOM215#defineCOM204#defineWGM213#defineCS222#defineCS211#defineCS200/*Timer/Counter1*/#defineICR1(*(volatileunsignedint*)0x46)#defineICR1L(*(volatileunsignedchar*)0x46)#defineICR1H(*(volatileunsignedchar*)0x47)#defineOCR1B(*(volatileunsignedint*)0x48)#defineOCR1BL(*(volatileunsignedchar*)0x48)#defineOCR1BH(*(volatileunsignedchar*)0x49)#defineOCR1A(*(volatileunsignedint*)0x4A)#defineOCR1AL(*(volatileunsignedchar*)0x4A)#defineOCR1AH(*(volatileunsignedchar*)0x4B)#defineTCNT1(*(volatileunsignedint*)0x4C)#defineTCNT1L(*(volatileunsignedchar*)0x4C)#defineTCNT1H(*(volatileunsignedchar*)0x4D)#defineTCCR1B(*(volatileunsignedchar*)0x4E)#defineICNC17#defineICES16#defineWGM134#defineWGM123#defineCS122#defineCS111#defineCS100#defineTCCR1A(*(volatileunsignedchar*)0x4F)#defineCOM1A17#defineCOM1A06#defineCOM1B15#defineCOM1B04#defineFOC1A3#defineFOC1B2#defineWGM111#defineWGM100/*SpecialFunctionI/Oregister*/#defineSFIOR(*(volatileunsignedchar*)0x50)#defineADTS27#defineADTS16#defineADTS05#defineACME3#definePUD2#definePSR21#definePSR100/*OscillatorCalibration*/#defineOSCCAL(*(volatileunsignedchar*)0x51)/*On-ChipDebugregister*/#defineOCDR(*(volatileunsignedchar*)0x51)/*Timer/Counter0*/#defineOCR0(*(volatileunsignedchar*)0x5C)#defineTCNT0(*(volatileunsignedchar*)0x52)#defineTCCR0(*(volatileunsignedchar*)0x53)#defineFOC07#defineWGM006#defineCOM015#defineCOM004#defineWGM013#defineCS022#defineCS011#defineCS000/*MCUgeneral*/#defineMCUCSR(*(volatileunsignedchar*)0x54)#defineMCUSR(*(volatileunsignedchar*)0x54)#defineJTD7#defineISC26#defineJTRF4#defineWDRF3#defineBORF2#defineEXTRF1#definePORF0#defineMCUCR(*(volatileunsignedchar*)0x55)#defineSM27#defineSE6#define
本文标题:iom16V-h
链接地址:https://www.777doc.com/doc-7228570 .html