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

📄 h8s2144.h

📁 日立单片机H8S2144例程.包括AD,DA等程序(用于光源)但对于H8S2144使用者来说有很大的帮助.
💻 H
📖 第 1 页 / 共 2 页
字号:
#define TMR1_TCORA	(*((volatile unsigned char *)0xffffcd))	// 僞僀儉僐儞僗僞儞僩儗僕僗僞俙侾
#define TMR1_TCORB	(*((volatile unsigned char *)0xffffcf))	// 僞僀儉僐儞僗僞儞僩儗僕僗僞俛侾
#define TMR1_TCNT	(*((volatile unsigned char *)0xffffd1))	// 僞僀儅僇僂儞僞侾
#define TMR_STCR	(*((volatile unsigned char *)0xffffc3))	// 僔儕傾儖僞僀儅僐儞僩儘乕儖儗僕僗僞
#define TMR_TCONRS	(*((volatile unsigned char *)0xfffffe))	// 僞僀儅僐僱僋僔儑儞儗僕僗僞俽
#define TMRX_TCR	(*((volatile unsigned char *)0xfffff0))	// 僞僀儅僐儞僩儘乕儖儗僕僗僞倃
#define TMRX_TCSR	(*((volatile unsigned char *)0xfffff1))	// 僞僀儅僐儞僩儘乕儖僗僥乕僞僗儗僕僗僞倃
#define TMRX_TCORA	(*((volatile unsigned char *)0xfffff6))	// 僞僀儉僐儞僗僞儞僩儗僕僗僞俙倃
#define TMRX_TCORB	(*((volatile unsigned char *)0xfffff7))	// 僞僀儉僐儞僗僞儞僩儗僕僗僞俛倃
#define TMRX_TCNT	(*((volatile unsigned char *)0xfffff4))	// 僞僀儅僇僂儞僞倃
#define TMRX_TCORC	(*((volatile unsigned char *)0xfffff5))	// 僞僀儉僐儞僗僞儞僩儗僕僗僞俠
#define TMRX_TICRR	(*((volatile unsigned char *)0xfffff2))	// 僀儞僾僢僩僉儍僾僠儍儗僕僗僞俼
#define TMRX_TICRF	(*((volatile unsigned char *)0xfffff3))	// 僀儞僾僢僩僉儍僾僠儍儗僕僗僞俥
#define TMRY_TCR	(*((volatile unsigned char *)0xfffff0))	// 僞僀儅僐儞僩儘乕儖儗僕僗僞倄
#define TMRY_TCSR	(*((volatile unsigned char *)0xfffff1))	// 僞僀儅僐儞僩儘乕儖僗僥乕僞僗儗僕僗僞倄
#define TMRY_TCORA	(*((volatile unsigned char *)0xfffff2))	// 僞僀儉僐儞僗僞儞僩儗僕僗僞俙倄
#define TMRY_TCORB	(*((volatile unsigned char *)0xfffff3))	// 僞僀儉僐儞僗僞儞僩儗僕僗僞俛倄
#define TMRY_TCNT	(*((volatile unsigned char *)0xfffff4))	// 僞僀儅僇僂儞僞倄
#define TMRY_TISR	(*((volatile unsigned char *)0xfffff5))	// 僞僀儅僀儞僾僢僩僙儗僋僩儗僕僗僞

/* 僞僀儅僐僱僋僔儑儞乮戞侾俁復乯俹俁俈俈 */
#define TCONRI	(*((volatile unsigned char *)0xfffffc))		// 僞僀儅僐僱僋僔儑儞儗僕僗僞俬
#define TCONRO	(*((volatile unsigned char *)0xfffffd))		// 僞僀儅僐僱僋僔儑儞儗僕僗僞俷
#define TCONRS	(*((volatile unsigned char *)0xfffffe))		// 僞僀儅僐僱僋僔儑儞儗僕僗僞俽
#define SEDGR	(*((volatile unsigned char *)0xffffff))		// 僄僢僕僙儞僗儗僕僗僞

/* 僂僅僢僠僪僢僌僞僀儅乮倂俢俿乯						戞侾係復	俹係侽俈	*/
#define WDT0_TCSR_W	(*((volatile unsigned short *)0xffffa8)) //僞僀儅僐儞僩儘乕儖僗僥乕僞僗儗僕僗僞儔僀僩(忋埵A5)
#define WDT0_TCSR_R	(*((volatile unsigned char *)0xffffa8))	// 僞僀儅僐儞僩儘乕儖僗僥乕僞僗儗僕僗僞儕乕僪
#define WDT0_TCNT_W	(*((volatile unsigned short *)0xffffa8)) //僞僀儅僇僂儞僞儔僀僩(忋埵5A)
#define WDT0_TCNT_R	(*((volatile unsigned char *)0xffffa9))	// 僞僀儅僇僂儞僞儕乕僪
#define WDT1_TCSR_W	(*((volatile unsigned short *)0xffffea)) //僞僀儅僐儞僩儘乕儖僗僥乕僞僗儗僕僗僞儔僀僩(忋埵A5)
#define WDT1_TCSR_R	(*((volatile unsigned char *)0xffffea))	// 僞僀儅僐儞僩儘乕儖僗僥乕僞僗儗僕僗僞儕乕僪
#define WDT1_TCNT_W	(*((volatile unsigned short *)0xffffea)) //僞僀儅僇僂儞僞儔僀僩(忋埵5A)
#define WDT1_TCNT_R	(*((volatile unsigned char *)0xffffea))	// 僞僀儅僇僂儞僞儕乕僪

/* 僔儕傾儖僐儈儏僯働乕僔儑儞僀儞僞僼僃乕僗乮俽俠俬乯	戞侾俆復	俹係俀俆	*/
/* 僠儍僱儖侽 */
#define SCI0_SMR	(*((volatile unsigned char *)0xffffd8))	// 僔儕傾儖儌乕僪儗僕僗僞
#define SCI0_BRR	(*((volatile unsigned char *)0xffffd9))	// 價僢僩儗乕僩儗僕僗僞
#define SCI0_SCR	(*((volatile unsigned char *)0xffffda))	// 僔儕傾儖僐儞僩儘乕儖儗僕僗僞
#define SCI0_SCR_P	  ((volatile unsigned char *)0xffffda)	// 僔儕傾儖僐儞僩儘乕儖儗僕僗僞
#define SCI0_TDR	(*((volatile unsigned char *)0xffffdb))	// 僩儔儞僗儈僢僩僨乕僞儗僕僗僞
#define SCI0_TDR_P	  ((volatile unsigned char *)0xffffdb)	// 僩儔儞僗儈僢僩僨乕僞儗僕僗僞
#define SCI0_SSR	(*((volatile unsigned char *)0xffffdc))	// 僔儕傾儖僗僥乕僞僗儗僕僗僞
#define SCI0_SSR_P	  ((volatile unsigned char *)0xffffdc)	// 僔儕傾儖僗僥乕僞僗儗僕僗僞
#define SCI0_RDR	(*((volatile unsigned char *)0xffffdd))	// 儗僔乕僽僨乕僞儗僕僗僞
#define SCI0_RDR_P	  ((volatile unsigned char *)0xffffdd)	// 儗僔乕僽僨乕僞儗僕僗僞
#define SCI0_SCMR	(*((volatile unsigned char *)0xffffde))	// 僔儕傾儖僀儞僞僼僃乕僗儌乕僪儗僕僗僞
/* 僠儍僱儖侾 */
#define SCI1_SMR	(*((volatile unsigned char *)0xffff88))	// 僔儕傾儖儌乕僪儗僕僗僞
#define SCI1_BRR	(*((volatile unsigned char *)0xffff89))	// 價僢僩儗乕僩儗僕僗僞
#define SCI1_SCR	(*((volatile unsigned char *)0xffff8a))	// 僔儕傾儖僐儞僩儘乕儖儗僕僗僞
#define SCI1_SCR_P	  ((volatile unsigned char *)0xffff8a)	// 僔儕傾儖僐儞僩儘乕儖儗僕僗僞
#define SCI1_TDR	(*((volatile unsigned char *)0xffff8b))	// 僩儔儞僗儈僢僩僨乕僞儗僕僗僞
#define SCI1_TDR_P	  ((volatile unsigned char *)0xffff8b)	// 僩儔儞僗儈僢僩僨乕僞儗僕僗僞
#define SCI1_SSR	(*((volatile unsigned char *)0xffff8c))	// 僔儕傾儖僗僥乕僞僗儗僕僗僞
#define SCI1_SSR_P	  ((volatile unsigned char *)0xffff8c)	// 僔儕傾儖僗僥乕僞僗儗僕僗僞
#define SCI1_RDR	(*((volatile unsigned char *)0xffff8d))	// 儗僔乕僽僨乕僞儗僕僗僞
#define SCI1_RDR_P	  ((volatile unsigned char *)0xffff8d)	// 儗僔乕僽僨乕僞儗僕僗僞
#define SCI1_SCMR	(*((volatile unsigned char *)0xffff8e))	// 僔儕傾儖僀儞僞僼僃乕僗儌乕僪儗僕僗僞
/* 僠儍僱儖俀 */
#define SCI2_SMR	(*((volatile unsigned char *)0xffffa0))	// 僔儕傾儖儌乕僪儗僕僗僞
#define SCI2_BRR	(*((volatile unsigned char *)0xffffa1))	// 價僢僩儗乕僩儗僕僗僞
#define SCI2_SCR	(*((volatile unsigned char *)0xffffa2))	// 僔儕傾儖僐儞僩儘乕儖儗僕僗僞
#define SCI2_SCR_P	  ((volatile unsigned char *)0xffffa2)	// 僔儕傾儖僐儞僩儘乕儖儗僕僗僞
#define SCI2_TDR	(*((volatile unsigned char *)0xffffa3))	// 僩儔儞僗儈僢僩僨乕僞儗僕僗僞
#define SCI2_TDR_P	  ((volatile unsigned char *)0xffffa3)	// 僩儔儞僗儈僢僩僨乕僞儗僕僗僞
#define SCI2_SSR	(*((volatile unsigned char *)0xffffa4))	// 僔儕傾儖僗僥乕僞僗儗僕僗僞
#define SCI2_SSR_P	  ((volatile unsigned char *)0xffffa4)	// 僔儕傾儖僗僥乕僞僗儗僕僗僞
#define SCI2_RDR	(*((volatile unsigned char *)0xffffa5))	// 儗僔乕僽僨乕僞儗僕僗僞
#define SCI2_RDR_P	  ((volatile unsigned char *)0xffffa5)	// 儗僔乕僽僨乕僞儗僕僗僞
#define SCI2_SCMR	(*((volatile unsigned char *)0xffffa6))	// 僔儕傾儖僀儞僞僼僃乕僗儌乕僪儗僕僗僞

/* 俬俀俠僶僗僀儞僞僼僃乕僗乮戞侾俇復乯俹係俋俆 */
/* 僆僾僔儑儞 */

/* 僉乕儃乕僪僶僢僼傽僐儞僩儘乕儔乮戞侾俈復乯俹俆係俋 */
#define KBCOMP		(*((volatile unsigned char *)0xfffee4))	// 僉乕儃乕僪僐儞僷儗乕僞僐儞僩儘乕儖儗僕僗僞
/* 僠儍僱儖侽 */
#define KB0_KBCRH	(*((volatile unsigned char *)0xfffed8))	// 僉乕儃乕僪僐儞僩儘乕儖儗僕僗僞俫侽
#define KB0_KBCRL	(*((volatile unsigned char *)0xfffed9))	// 僉乕儃乕僪僐儞僩儘乕儖儗僕僗僞俴侽
#define KB0_KBBR	(*((volatile unsigned char *)0xfffeda))	// 僉乕儃乕僪僨乕僞僶僢僼傽儗僕僗僞侽
/* 僠儍僱儖侾 */
#define KB1_KBCRH	(*((volatile unsigned char *)0xfffedc))	// 僉乕儃乕僪僐儞僩儘乕儖儗僕僗僞俫侾
#define KB1_KBCRL	(*((volatile unsigned char *)0xfffedd))	// 僉乕儃乕僪僐儞僩儘乕儖儗僕僗僞俴侾
#define KB1_KBBR	(*((volatile unsigned char *)0xfffede))	// 僉乕儃乕僪僨乕僞僶僢僼傽儗僕僗僞侾
/* 僠儍僱儖俀 */
#define KB2_KBCRH	(*((volatile unsigned char *)0xfffee0))	// 僉乕儃乕僪僐儞僩儘乕儖儗僕僗僞俫俀
#define KB2_KBCRL	(*((volatile unsigned char *)0xfffee1))	// 僉乕儃乕僪僐儞僩儘乕儖儗僕僗僞俴俀
#define KB2_KBBR	(*((volatile unsigned char *)0xfffee2))	// 僉乕儃乕僪僨乕僞僶僢僼傽儗僕僗僞俀


/* 儂僗僩僀儞僞僼僃乕僗乮戞侾俉復乯俹俆俈侾 */
/* 俬俽俙僶僗愙懕梡 */

/* 俢乛俙曄姺婍 乮戞侾俋復乯俹俆俋俆 */
#define DAC_DADR0	(*((volatile unsigned char *)0xfffff8))	// 俢乛俙僨乕僞儗僕僗僞侽
#define DAC_DADR1	(*((volatile unsigned char *)0xfffff9))	// 俢乛俙僨乕僞儗僕僗僞侾
#define DAC_DACR	(*((volatile unsigned char *)0xfffffa))	// 俢乛俙僐儞僩儘乕儖儗僕僗僞

/* 俙乛俢曄姺婍 乮戞俀侽復乯俹俇侽俁 */
#define ADC_ADDRA_P	  ((volatile unsigned short *)0xffffe0)	// 俙乛俢僨乕僞儗僕僗僞俙俫
#define ADC_ADDRAH	(*((volatile unsigned char *)0xffffe0))	// 俙乛俢僨乕僞儗僕僗僞俙俫
#define ADC_ADDRAL	(*((volatile unsigned char *)0xffffe1))	// 俙乛俢僨乕僞儗僕僗僞俙俴
#define ADC_ADDRB_P	  ((volatile unsigned short *)0xffffe2)	// 俙乛俢僨乕僞儗僕僗僞俙俫
#define ADC_ADDRBH	(*((volatile unsigned char *)0xffffe2))	// 俙乛俢僨乕僞儗僕僗僞俛俫
#define ADC_ADDRBL	(*((volatile unsigned char *)0xffffe3))	// 俙乛俢僨乕僞儗僕僗僞俛俴
#define ADC_ADDRC_P	  ((volatile unsigned short *)0xffffe4)	// 俙乛俢僨乕僞儗僕僗僞俙俫
#define ADC_ADDRCH	(*((volatile unsigned char *)0xffffe4))	// 俙乛俢僨乕僞儗僕僗僞俠俫
#define ADC_ADDRCL	(*((volatile unsigned char *)0xffffe5))	// 俙乛俢僨乕僞儗僕僗僞俠俴
#define ADC_ADDRD_P	  ((volatile unsigned short *)0xffffe6)	// 俙乛俢僨乕僞儗僕僗僞俙俫
#define ADC_ADDRDH	(*((volatile unsigned char *)0xffffe6))	// 俙乛俢僨乕僞儗僕僗僞俢俫
#define ADC_ADDRDL	(*((volatile unsigned char *)0xffffe7))	// 俙乛俢僨乕僞儗僕僗僞俢俴
#define ADC_ADCSR	(*((volatile unsigned char *)0xffffe8))	// 俙乛俢僐儞僩儘乕儖乛僗僥乕僞僗儗僕僗僞
#define ADC_ADCR	(*((volatile unsigned char *)0xffffe9))	// 俙乛俢僐儞僩儘乕儖儗僕僗僞

/* 俼俙俵 乮戞俀侾復乯俹俇俀俈 */

/* 俼俷俵 乮戞俀俀復乯俹俇俁俁 */

/* 僋儘僢僋敪怣婍 乮戞俀俁復乯俹俇俉俁 */

/* 掅徚旓揹椡忬懺 乮戞俀係復乯俹俇俋俆 */
#define SBYCR	(*((volatile unsigned char *)0xffff84))		// 僗僞儞僶僀僐儞僩儘乕儖儗僕僗僞
#define LPWRCR	(*((volatile unsigned char *)0xffff85))		// 儘乕僷儚乕僐儞僩儘乕儖儗僕僗僞

#define KEY_MTX_IN	(*((volatile unsigned char *)0x4c061))	// ***** 2003/04/20 add
#define PORT_PSD_IN	(*((volatile unsigned char *)0x4c020))	// ***** 2003/04/20 add
#define L_OUT	(*((volatile unsigned char *)0x4c062))		// ***** 2003/04/20 add
#define ADC_START	(*((volatile unsigned char *)0x4c000)) // ***** 2003/04/20 add
#define ADC_INL	(*((volatile unsigned char *)0x4c040)) // ***** 2003/04/20 add
#define ADC_INH	(*((volatile unsigned char *)0x4c050)) // ***** 2003/04/20 add

/***********************************************************************/
#endif/*_H8S2144*/

⌨️ 快捷键说明

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