⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 h8_3069f.h

📁 toppers操作系统源码
💻 H
📖 第 1 页 / 共 2 页
字号:
#define H8IPR_IRQ0_BIT		7	/* IRQ0			*/#define H8IPR_IRQ1_BIT		6	/* IRQ1			*/#define H8IPR_IRQ2_BIT		5	/* IRQ2			*/#define H8IPR_IRQ3_BIT		5	/* IRQ3			*/#define H8IPR_IRQ4_BIT		4	/* IRQ4			*/#define H8IPR_IRQ5_BIT		4	/* IRQ5			*/#define H8IPR_WDT_BIT		3	/* WDT			*/#define H8IPR_AD_BIT		3	/* A/D			*/#define H8IPR_CMI_BIT		3	/* CMI			*/#define H8IPR_ITU0_BIT		2	/* 16 bit timer 0	*/#define H8IPR_ITU1_BIT		1	/* 16 bit timer 1	*/#define H8IPR_ITU2_BIT		0	/* 16 bit timer 2	*/#define H8IPR_IRQ0		(1<<(H8IPR_IRQ0_BIT))#define H8IPR_IRQ1		(1<<(H8IPR_IRQ1_BIT))#define H8IPR_IRQ2		(1<<(H8IPR_IRQ2_BIT))#define H8IPR_IRQ3		(1<<(H8IPR_IRQ3_BIT))#define H8IPR_IRQ4		(1<<(H8IPR_IRQ4_BIT))#define H8IPR_IRQ5		(1<<(H8IPR_IRQ5_BIT))#define H8IPR_WDT		(1<<(H8IPR_WDT_BIT))#define H8IPR_AD		(1<<(H8IPR_AD_BIT))#define H8IPR_CMI		(1<<(H8IPR_CMI_BIT))#define H8IPR_ITU0		(1<<(H8IPR_ITU0_BIT))#define H8IPR_ITU1		(1<<(H8IPR_ITU1_BIT))#define H8IPR_ITU2		(1<<(H8IPR_ITU2_BIT))/*	Bus Release Control Regisger	*/#define H8BRCR			0xfee013/*	Control bit in BRCR		*/#define H8BRCR_A23E_BIT		7#define H8BRCR_A22E_BIT		6#define H8BRCR_A21E_BIT		5#define H8BRCR_BRLE_BIT		1#define H8BRCR_A23E		(1<<(H8BRCR_A23E_BIT))#define H8BRCR_A22E		(1<<(H8BRCR_A22E_BIT))#define H8BRCR_A21E		(1<<(H8BRCR_A21E_BIT))#define H8BRCR_BRLE		(1<<(H8BRCR_BRLE_BIT))/* Interrupt Priority Register B */#define H8IPR_TU80_BIT		7	/* 8 bit timer 0	*/#define H8IPR_TU81_BIT		6	/* 8 bit timer 1	*/#define H8IPR_DMAC_BIT		5	/* DMAC (CH0,1)		*/#define H8IPR_SCI0_BIT		3	/* SCI0			*/#define H8IPR_SCI1_BIT		2	/* SCI1			*/#define H8IPR_SCI2_BIT		1	/* SCI2			*/#define H8IPR_TU80		(1<<(H8IPR_TU80_BIT))#define H8IPR_TU81		(1<<(H8IPR_TU81_BIT))#define H8IPR_DMAC		(1<<(H8IPR_DMAC_BIT))#define H8IPR_SCI0		(1<<(H8IPR_SCI0_BIT))#define H8IPR_SCI1		(1<<(H8IPR_SCI1_BIT))#define H8IPR_SCI2		(1<<(H8IPR_SCI2_BIT))/* 16 bit Timer */#define H816TU			0xffff60	/* base address */#define H816TU_TSTR		0xffff60#define H816TU_TSNC		0xffff61#define H816TU_TMDR		0xffff62#define H816TU_TOLR		0xffff63#define H816TU_TISRA		0xffff64#define H816TU_TISRB		0xffff65#define H816TU_TISRC		0xffff66#define H816TU0			0xffff68	/* base address */#define H816TU1			0xffff70	/* base address */#define H816TU2			0xffff78	/* base address *//* address offset */#define H8TCR			0#define H8TIOR			1#define H8TCNT			2#define H8TCNTH			2#define H8TCNTL			3#define H8GRA			4#define H8GRAH			4#define H8GRAL			5#define H8GRB			6#define H8GRBH			6#define H8GRBL			7/* Timer Start Register (TSTR) */#define H8TSTR_STR2_BIT		2#define H8TSTR_STR1_BIT		1#define H8TSTR_STR0_BIT		0#define H8TSTR_STR2		(1<<H8TSTR_STR2_BIT)#define H8TSTR_STR1		(1<<H8TSTR_STR1_BIT)#define H8TSTR_STR0		(1<<H8TSTR_STR0_BIT)/* Timer Synchronous Register (TSNC) */#define H8TSNC_SYNC2_BIT	2#define H8TSNC_SYNC1_BIT	1#define H8TSNC_SYNC0_BIT	0#define H8TSNC_SYNC2		(1<<H8TSNC_SYNC2_BIT)#define H8TSNC_SYNC1		(1<<H8TSNC_SYNC1_BIT)#define H8TSNC_SYNC0		(1<<H8TSNC_SYNC0_BIT)/* Timer Mode Register (TMDR) */#define H8TMDR_MDF_BIT		6#define H8TMDR_FDIR_BIT		5#define H8TMDR_PWM2_BIT		2#define H8TMDR_PWM1_BIT		1#define H8TMDR_PWM0_BIT		0#define H8TMDR_MDF		(1<<H8TMDR_MDF_BIT)#define H8TMDR_FDIR		(1<<H8TMDR_FDIR_BIT)#define H8TMDR_PWM2		(1<<H8TMDR_PWM2_BIT)#define H8TMDR_PWM1		(1<<H8TMDR_PWM1_BIT)#define H8TMDR_PWM0		(1<<H8TMDR_PWM0_BIT)/* Timer Interrupt Status Register A (TISRA) */#define H8TISRA_IMIEA2_BIT	6#define H8TISRA_IMIEA1_BIT	5#define H8TISRA_IMIEA0_BIT	4#define H8TISRA_IMFA2_BIT	2#define H8TISRA_IMFA1_BIT	1#define H8TISRA_IMFA0_BIT	0#define H8TISRA_IMIEA2		(1<<H8TISRA_IMIEA2_BIT)#define H8TISRA_IMIEA1		(1<<H8TISRA_IMIEA1_BIT)#define H8TISRA_IMIEA0		(1<<H8TISRA_IMIEA0_BIT)#define H8TISRA_IMFA2		(1<<H8TISRA_IMFA2_BIT)#define H8TISRA_IMFA1		(1<<H8TISRA_IMFA1_BIT)#define H8TISRA_IMFA0		(1<<H8TISRA_IMFA0_BIT)/* Timer Interrupt Status Register B (TISRB) */#define H8TISRB_IMIEA2_BIT	6#define H8TISRB_IMIEA1_BIT	5#define H8TISRB_IMIEA0_BIT	4#define H8TISRB_IMFA2_BIT	2#define H8TISRB_IMFA1_BIT	1#define H8TISRB_IMFA0_BIT	0#define H8TISRB_IMIEA2		(1<<H8TISRB_IMIEA2_BIT)#define H8TISRB_IMIEA1		(1<<H8TISRB_IMIEA1_BIT)#define H8TISRB_IMIEA0		(1<<H8TISRB_IMIEA0_BIT)#define H8TISRB_IMFA2		(1<<H8TISRB_IMFA2_BIT)#define H8TISRB_IMFA1		(1<<H8TISRB_IMFA1_BIT)#define H8TISRB_IMFA0		(1<<H8TISRB_IMFA0_BIT)/* Timer Interrupt Status Register C (TISRC) */#define H8TISRC_OVIEA2_BIT	6#define H8TISRC_OVIEA1_BIT	5#define H8TISRC_OVIEA0_BIT	4#define H8TISRC_OVFA2_BIT	2#define H8TISRC_OVFA1_BIT	1#define H8TISRC_OVFA0_BIT	0#define H8TISRC_OVIEA2		(1<<H8TISRC_OVIEA2_BIT)#define H8TISRC_OVIEA1		(1<<H8TISRC_OVIEA1_BIT)#define H8TISRC_OVIEA0		(1<<H8TISRC_OVIEA0_BIT)#define H8TISRC_OVFA2		(1<<H8TISRC_OVFA2_BIT)#define H8TISRC_OVFA1		(1<<H8TISRC_OVFA1_BIT)#define H8TISRC_OVFA0		(1<<H8TISRC_OVFA0_BIT)/* Timer Control Register (TCR) */#define H8TCR_CCLR1_BIT		6#define H8TCR_CCLR0_BIT		5#define H8TCR_CKEG1_BIT		4#define H8TCR_CKEG0_BIT		3#define H8TCR_TPSC2_BIT		2#define H8TCR_TPSC1_BIT		1#define H8TCR_TPSC0_BIT		0#define H8TCR_CCLR1		(1<<H8TCR_CCLR1_BIT)#define H8TCR_CCLR0		(1<<H8TCR_CCLR0_BIT)#define H8TCR_CKEG1		(1<<H8TCR_CKEG1_BIT)#define H8TCR_CKEG0		(1<<H8TCR_CKEG0_BIT)#define H8TCR_TPSC2		(1<<H8TCR_TPSC2_BIT)#define H8TCR_TPSC1		(1<<H8TCR_TPSC1_BIT)#define H8TCR_TPSC0		(1<<H8TCR_TPSC0_BIT)/* Timer I/O Control Register (TIOR) */#define H8TIOR_IOB2_BIT		6#define H8TIOR_IOB1_BIT		5#define H8TIOR_IOB0_BIT		4#define H8TIOR_IOA2_BIT		2#define H8TIOR_IOA1_BIT		1#define H8TIOR_IOA0_BIT		0#define H8TIOR_IOB2		(1<<H8TIOR_IOB2_BIT)#define H8TIOR_IOB1		(1<<H8TIOR_IOB1_BIT)#define H8TIOR_IOB0		(1<<H8TIOR_IOB0_BIT)#define H8TIOR_IOA2		(1<<H8TIOR_IOA2_BIT)#define H8TIOR_IOA1		(1<<H8TIOR_IOA1_BIT)#define H8TIOR_IOA0		(1<<H8TIOR_IOA0_BIT)/* 8 bit Timer */#define H88TU0			0xffff80	/* base address */#define H88TU1			0xffff81#define H88TU2			0xffff90#define H88TU3			0xffff91/* address offset */#define H88TCR			0#define H88TCSR			2#define H88TCORA		4#define H88TCORB		6#define H88TCNT			8/* 8 Bit Timer Control Register (8TCR) */#define H88TCR_CMIEB_BIT	7#define H88TCR_CMIEA_BIT	6#define H88TCR_OVIE_BIT		5#define H88TCR_CCLR1_BIT	4#define H88TCR_CCLR0_BIT	3#define H88TCR_CKS2_BIT		2#define H88TCR_CKS1_BIT		1#define H88TCR_CKS0_BIT		0#define H88TCR_CMIEB		(1<<H88TCR_CMIEB_BIT)#define H88TCR_CMIEA		(1<<H88TCR_CMIEA_BIT)#define H88TCR_OVIE		(1<<H88TCR_OVIE_BIT)#define H88TCR_CCLR1		(1<<H88TCR_CCLR1_BIT)#define H88TCR_CCLR0		(1<<H88TCR_CCLR0_BIT)#define H88TCR_CKS2		(1<<H88TCR_CKS2_BIT)#define H88TCR_CKS1		(1<<H88TCR_CKS1_BIT)#define H88TCR_CKS0		(1<<H88TCR_CKS0_BIT)/* 8 Bit Timer Control/Status Register (8TCSR) */#define H88TCSR_CMFB_BIT	7#define H88TCSR_CMFA_BIT	6#define H88TCSR_OVF_BIT		5#define H88TCSR_ADTE_BIT	4#define H88TCSR_ICE_BIT		4#define H88TCSR_OIS3_BIT	3#define H88TCSR_OIS2_BIT	2#define H88TCSR_OS1_BIT		1#define H88TCSR_OS0_BIT		0#define H88TCSR_CMFB		(1<<H88TCSR_CMFB_BIT)#define H88TCSR_CMFA		(1<<H88TCSR_CMFA_BIT)#define H88TCSR_OVF		(1<<H88TCSR_OVF_BIT)#define H88TCSR_ADTE		(1<<H88TCSR_ADTE_BIT)#define H88TCSR_ICE		(1<<H88TCSR_ICE_BIT)#define H88TCSR_OIS3		(1<<H88TCSR_OIS3_BIT)#define H88TCSR_OIS2		(1<<H88TCSR_OIS2_BIT)#define H88TCSR_OS1		(1<<H88TCSR_OS1_BIT)#define H88TCSR_OS0		(1<<H88TCSR_OS0_BIT)/* Serial Communication Interface (SCI) */#define H8SCI0			0xffffb0	/* base address */#define H8SCI1			0xffffb8#define H8SCI2			0xffffc0/* address offset */#define H8SMR			0#define H8BRR			1#define H8SCR			2#define H8TDR			3#define H8SSR			4#define H8RDR			5#define H8SCMR			6/* SCI Serial Mode Register (SMR) */#define H8SMR_GM_BIT		7#define H8SMR_CHR_BIT		6#define H8SMR_PE_BIT		5#define H8SMR_OE_BIT		4#define H8SMR_STOP_BIT		3#define H8SMR_MP_BIT		2#define H8SMR_CKS1_BIT		1#define H8SMR_CKS0_BIT		0#define H8SMR_GM		(1<<H8SMR_GM_BIT)#define H8SMR_CHR		(1<<H8SMR_CHR_BIT)#define H8SMR_PE		(1<<H8SMR_PE_BIT)#define H8SMR_OE		(1<<H8SMR_OE_BIT)#define H8SMR_STOP		(1<<H8SMR_STOP_BIT)#define H8SMR_MP		(1<<H8SMR_MP_BIT)#define H8SMR_CKS1		(1<<H8SMR_CKS1_BIT)#define H8SMR_CKS0		(1<<H8SMR_CKS0_BIT)#define H8SMR_CKS_MASK		(H8SMR_CKS1|H8SMR_CKS0)/* SCI Serial Control Register (SCR) */#define H8SCR_TIE_BIT		7#define H8SCR_RIE_BIT		6#define H8SCR_TE_BIT		5#define H8SCR_RE_BIT		4#define H8SCR_MPIE_BIT		3#define H8SCR_TEIE_BIT		2#define H8SCR_CKE1_BIT		1#define H8SCR_CKE0_BIT		0#define H8SCR_TIE		(1<<H8SCR_TIE_BIT)#define H8SCR_RIE		(1<<H8SCR_RIE_BIT)#define H8SCR_TE		(1<<H8SCR_TE_BIT)#define H8SCR_RE		(1<<H8SCR_RE_BIT)#define H8SCR_MPIE		(1<<H8SCR_MPIE_BIT)#define H8SCR_TEIE		(1<<H8SCR_TEIE_BIT)#define H8SCR_CKE1		(1<<H8SCR_CKE1_BIT)#define H8SCR_CKE0		(1<<H8SCR_CKE0_BIT)#define H8SCR_CKE_MASK		(H8SCR_CKE1|H8SCR_CKE0)#define H8SCR_IE		(H8SCR_TIE|H8SCR_RIE|H8SCR_MPIE|H8SCR_TEIE)/* SCI Serial Status Register (SSR) */#define H8SSR_TDRE_BIT		7#define H8SSR_RDRF_BIT		6#define H8SSR_ORER_BIT		5#define H8SSR_FER_BIT		4#define H8SSR_PER_BIT		3#define H8SSR_TEND_BIT		2#define H8SSR_MPB_BIT		1#define H8SSR_MPBT_BIT		0#define H8SSR_TDRE		(1<<H8SSR_TDRE_BIT)#define H8SSR_RDRF		(1<<H8SSR_RDRF_BIT)#define H8SSR_ORER		(1<<H8SSR_ORER_BIT)#define H8SSR_FER		(1<<H8SSR_FER_BIT)#define H8SSR_PER		(1<<H8SSR_PER_BIT)#define H8SSR_TEND		(1<<H8SSR_TEND_BIT)#define H8SSR_MPB		(1<<H8SSR_MPB_BIT)#define H8SSR_MPBT		(1<<H8SSR_MPBT_BIT)/* DRAM Control Registers */#define H8DRCRA			0xfee026	/* Control Register A			*/#define H8DRCRB			0xfee027	/* Control Register B			*/#define H8RTMCSR		0xfee028	/* Timer Control / Status Register	*/#define H8RTCNT			0xfee029	/* Reflesh Timer Counter		*/#define H8RTCOR			0xfee02a	/* Reflesh Time Constant Register	*//* DRAM Control Register A */#define H8DRCRA_DRAS2_BIT	7#define H8DRCRA_DRAS1_BIT	6#define H8DRCRA_DRAS0_BIT	5#define H8DRCRA_BE_BIT		3#define H8DRCRA_RDM_BIT		2#define H8DRCRA_SRFMD_BIT	1#define H8DRCRA_RFSHE_BIT	0#define H8DRCRA_DRAS2		(1<<H8DRCRA_DRAS2_BIT)#define H8DRCRA_DRAS1		(1<<H8DRCRA_DRAS1_BIT)#define H8DRCRA_DRAS0		(1<<H8DRCRA_DRAS0_BIT)#define H8DRCRA_BE		(1<<H8DRCRA_BE_BIT)#define H8DRCRA_RDM		(1<<H8DRCRA_RDM_BIT)#define H8DRCRA_SRFMD		(1<<H8DRCRA_SRFMD_BIT)#define H8DRCRA_RFSHE		(1<<H8DRCRA_RFSHE_BIT)/* DRAM Control Register B */#define H8DRCRB_MXC1_BIT	7#define H8DRCRB_MXC0_BIT	6#define H8DRCRB_CSEL_BIT	5#define H8DRCRB_RCYCE_BIT	4#define H8DRCRB_TPC_BIT		2#define H8DRCRB_RCW_BIT		1#define H8DRCRB_RLW_BIT		0#define H8DRCRB_MXC1		(1<<H8DRCRB_MXC1_BIT)#define H8DRCRB_MXC0		(1<<H8DRCRB_MXC0_BIT)#define H8DRCRB_CSEL		(1<<H8DRCRB_CSEL_BIT)#define H8DRCRB_RCYCE		(1<<H8DRCRB_RCYCE_BIT)#define H8DRCRB_TPC		(1<<H8DRCRB_TPC_BIT)#define H8DRCRB_RCW		(1<<H8DRCRB_RCW_BIT)#define H8DRCRB_RLW		(1<<H8DRCRB_RLW_BIT)/* Reflesh Timer Control / Status Register */#define H8RTMCSR_CMF_BIT	7#define H8RTMCSR_CMIE_BIT	6#define H8RTMCSR_CKS2_BIT	5#define H8RTMCSR_CKS1_BIT	4#define H8RTMCSR_CKS0_BIT	3#define H8RTMCSR_CMF		(1<<H8RTMCSR_CMF_BIT)#define H8RTMCSR_CMIE		(1<<H8RTMCSR_CMIE_BIT)#define H8RTMCSR_CKS2		(1<<H8RTMCSR_CKS2_BIT)#define H8RTMCSR_CKS1		(1<<H8RTMCSR_CKS1_BIT)#define H8RTMCSR_CKS0		(1<<H8RTMCSR_CKS0_BIT)/* *  柒垄メモリの年盗 */#define H8IN_ROM_BASE		0x000000#define H8IN_ROM_SIZE		0x080000#define H8IN_RAM_BASE		0xffbf10#define H8IN_RAM_SIZE		0x004000#endif /* _H8_3069F_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -