📄 h8s2144.h
字号:
/************************************************************************
撪 梕 : CPU撪晹儗僕僗僞掕媊
旛 峫 : H8S/2144(HD64F2144FA20)
----------------------------------------------------------------
奐敪尵岅 : YCH8,YAH8(僀僄儘乕僜僼僩)
僞 僽 : 4
----------------------------------------------------------------
惢 嶌 :乮桳乯僄儖丒傾儞僪丒僄僼
*************************************************************************/
/*----- 夵 斉 棜 楌 --------------------------------------------------
No | 擭 寧 擔 | 巵柤 | 撪 梕
01 | 2000-10-31 | 悰尨 | 弶斉姰惉
02 | 2001-03-21 | 悰尨 | SCI*_TDR,SSR,RDR億僀儞僞宆掕媊捛壛
| | | 僐儊儞僩婰崋傪 /* 偐傜 // 偵曄峏
| | | 僐儊儞僩偺敿妏僇僫傪慡妏偵曄峏
03 | 2001-04-02 | 悰尨 | SCI2_KBCOMP > KBCOMP偵曄峏
-----------------------------------------------------------------------*/
#ifndef _H8S2144
#define _H8S2144
/************************************************************************
俫俉俽乛俀侾係俉乛俀侾係係僔儕乕僘僴乕僪僂僃傾儅僯儏傾儖 戞俁斉傛傝
*************************************************************************/
/* 俵俠倀摦嶌儌乕僪乮戞俁復乯俹俉侾 */
#define MDCR (*((volatile unsigned char *)0xffffc5)) // 儌乕僪僐儞僩儘乕儖儗僕僗僞
#define SYSCR (*((volatile unsigned char *)0xffffc4)) // 僔僗僥儉僐儞僩儘乕儖儗僕僗僞
#define STCR (*((volatile unsigned char *)0xffffc3)) // 僔儕傾儖僐儞僩儘乕儖儗僕僗僞
#define MSTPCRH (*((volatile unsigned char *)0xffff86)) // 儌僕儏乕儖僗僩僢僾僐儞僩儘乕儖儗僕僗僞
#define MSTPCRL (*((volatile unsigned char *)0xffff87)) // 儌僕儏乕儖僗僩僢僾僐儞僩儘乕儖儗僕僗僞
/* 妱崬傒僐儞僩儘乕儔乮戞俆復乯俹侾侾侾*/
#define INTC_ISCRH (*((volatile unsigned char *)0xfffeec)) // 俬俼俻僙儞僗僐儞僩儘乕儖儗僕僗僞俫
#define INTC_ISCRL (*((volatile unsigned char *)0xfffeed)) // 俬俼俻僙儞僗僐儞僩儘乕儖儗僕僗僞俴
#define INTC_IER (*((volatile unsigned char *)0xffffc2)) // 俬俼俻僀僱乕僽儖儗僕僗僞
#define INTC_ISR (*((volatile unsigned char *)0xfffeeb)) // 俬俼俻僗僥乕僞僗儗僕僗僞
#define INTC_KMIMR (*((volatile unsigned char *)0xfffff1)) // 僉乕儃乕僪儅僩儕僋僗妱崬傒儅僗僋儗僕僗僞
#define INTC_KMIMRA (*((volatile unsigned char *)0xfffff3)) // 僉乕儃乕僪儅僩儕僋僗妱崬傒儅僗僋儗僕僗僞俙
#define INTC_ICRA (*((volatile unsigned char *)0xfffee8)) // 僀儞僞儔僾僩僐儞僩儘乕儖儗僕僗僞俙
#define INTC_ICRB (*((volatile unsigned char *)0xfffee9)) // 僀儞僞儔僾僩僐儞僩儘乕儖儗僕僗僞俛
#define INTC_ICRC (*((volatile unsigned char *)0xfffeea)) // 僀儞僞儔僾僩僐儞僩儘乕儖儗僕僗僞俠
#define INTC_ABRKCR (*((volatile unsigned char *)0xfffef4)) // 傾僪儗僗僽儗乕僋僐儞僩儘乕儖儗僕僗僞
#define INTC_BARA (*((volatile unsigned char *)0xfffef5)) // 僽儗乕僋傾僪儗僗儗僕僗僞俙
#define INTC_BARB (*((volatile unsigned char *)0xfffef6)) // 僽儗乕僋傾僪儗僗儗僕僗僞俛
#define INTC_BARC (*((volatile unsigned char *)0xfffef7)) // 僽儗乕僋傾僪儗僗儗僕僗僞俠
/* 僶僗僐儞僩儘乕儔乮戞俇復乯俹侾係俋 */
#define BUSC_BCR (*((volatile unsigned char *)0xffffc6)) // 僶僗僐儞僩儘乕儖儗僕僗僞
#define BUSC_WSCR (*((volatile unsigned char *)0xffffc7)) // 僂僃僀僩僗僥乕僩僐儞僩儘乕儖儗僕僗僞
/* 僨乕僞僩儔儞僗僼傽僐儞僩儘乕儔乮戞俈復乯俹侾俉侾 */
#define DTC_DTCER (*((volatile unsigned char *)0xfffeee)) //俢俿俠僀僱乕僽儖儗僕僗僞
#define DTC_RTMCSR (*((volatile unsigned char *)0xfffef3)) //俢俿俠儀僋僞儗僕僗僞
/* 俬乛俷億乕僩乮戞俉復乯俹俀侽俋 */
#define P1DDR (*((volatile unsigned char *)0xffffb0)) // 俹侾僨乕僞僨傿儗僋僔儑儞儗僕僗僞
#define P1DR (*((volatile unsigned char *)0xffffb2)) // 俹侾僨乕僞儗僕僗僞
#define P1PCR (*((volatile unsigned char *)0xffffac)) // 俹侾僾儖傾僢僾俵俷俽僐儞僩儘乕儖儗僕僗僞
#define P2DDR (*((volatile unsigned char *)0xffffb1)) // 俹俀僨乕僞僨傿儗僋僔儑儞儗僕僗僞
#define P2DR (*((volatile unsigned char *)0xffffb3)) // 俹俀僨乕僞儗僕僗僞
#define P2PCR (*((volatile unsigned char *)0xffffad)) // 俹俀僾儖傾僢僾俵俷俽僐儞僩儘乕儖儗僕僗僞
#define P3DDR (*((volatile unsigned char *)0xffffb4)) // 俹俁僨乕僞僨傿儗僋僔儑儞儗僕僗僞
#define P3DR (*((volatile unsigned char *)0xffffb6)) // 俹俁僨乕僞儗僕僗僞
#define P3PCR (*((volatile unsigned char *)0xffffae)) // 俹俁僾儖傾僢僾俵俷俽僐儞僩儘乕儖儗僕僗僞
#define P4DDR (*((volatile unsigned char *)0xffffb5)) // 俹係僨乕僞僨傿儗僋僔儑儞儗僕僗僞
#define P4DR (*((volatile unsigned char *)0xffffb7)) // 俹係僨乕僞儗僕僗僞
#define AD_SEL (*((volatile unsigned char *)0xffffb7)) // 俹係僨乕僞儗僕僗僞 ***** 2002/11/20 add
#define P5DDR (*((volatile unsigned char *)0xffffb8)) // 俹俆僨乕僞僨傿儗僋僔儑儞儗僕僗僞
#define P5DR (*((volatile unsigned char *)0xffffba)) // 俹俆僨乕僞儗僕僗僞
#define P6DDR (*((volatile unsigned char *)0xffffb9)) // 俹俇僨乕僞僨傿儗僋僔儑儞儗僕僗僞
#define P6DR (*((volatile unsigned char *)0xffffbb)) // 俹俇僨乕僞儗僕僗僞
#define P6PCR (*((volatile unsigned char *)0xfffff2)) // 俹俇僾儖傾僢僾俵俷俽僐儞僩儘乕儖儗僕僗僞
#define P7DR (*((volatile unsigned char *)0xffffbe)) // 俹俈擖椡僨乕僞儗僕僗僞
#define AD_CHK (*((volatile unsigned char *)0xffffbe)) // 俹俈擖椡僨乕僞儗僕僗僞
#define AD_BUSY 0x01 //
#define P8DDR (*((volatile unsigned char *)0xffffbd)) // 俹俉僨乕僞僨傿儗僋僔儑儞儗僕僗僞
#define P8DR (*((volatile unsigned char *)0xffffbf)) // 俹俉僨乕僞儗僕僗僞
#define DA_CNT (*((volatile unsigned char *)0xffffbf)) // 俹俉僨乕僞儗僕僗僞
#define DA_DT 0x01 // data
#define DA_CK 0x02 // clock
#define P9DDR (*((volatile unsigned char *)0xffffc0)) // 俹俋僨乕僞僨傿儗僋僔儑儞儗僕僗僞
#define P9DR (*((volatile unsigned char *)0xffffc1)) // 俹俋僨乕僞儗僕僗僞
#define RS_SEN (*((volatile unsigned char *)0xffffc1)) // 俹9僨乕僞儗僕僗僞 ***** 2002/11/20 add
#define P9DR_P ((volatile unsigned char *)0xffffc1) // 俹俋僨乕僞儗僕僗僞
#define PADDR (*((volatile unsigned char *)0xffffab)) // 俹俙僨乕僞僨傿儗僋僔儑儞儗僕僗僞
#define PAODR (*((volatile unsigned char *)0xffffaa)) // 俹俙弌椡僨乕僞儗僕僗僞
#define PAPIN (*((volatile unsigned char *)0xffffab)) // 俹俙擖椡僨乕僞儗僕僗僞
#define PAPIN_P ((volatile unsigned char *)0xffffab) // 俹俙擖椡僨乕僞儗僕僗僞
#define PBDDR (*((volatile unsigned char *)0xffffbe)) // 俹俛僨乕僞僨傿儗僋僔儑儞儗僕僗僞
#define PBODR (*((volatile unsigned char *)0xffffbc)) // 俹俛弌椡僨乕僞儗僕僗僞
#define E2P_RS (*((volatile unsigned char *)0xffffbc)) // 俹俛僨乕僞儗僕僗僞 ***** 2002/11/20 add
#define E2P_RSIN (*((volatile unsigned char *)0xffffbd)) // 俹俛僨乕僞儗僕僗僞 ***** 2002/11/20 add
#define PBPIN (*((volatile unsigned char *)0xffffbd)) // 俹俛擖椡僨乕僞儗僕僗僞
/* 俉價僢僩俹倂俵僞僀儅乮戞俋復乯俹俀俈俁 */
#define PWM_PWSL (*((volatile unsigned char *)0xffffd6)) // 俹倂俵儗僕僗僞僙儗僋僩
#define PWM_PWDR (*((volatile unsigned char *)0xffffd7)) // 俹倂俵僨乕僞儗僕僗僞
#define PWM_PWDPRA (*((volatile unsigned char *)0xffffd5)) // 俹倂俵僨乕僞儃儔儕僥傿儗僕僗僞俙
#define PWM_PWDPRB (*((volatile unsigned char *)0xffffd4)) // 俹倂俵僨乕僞儃儔儕僥傿儗僕僗僞俛
#define PWM_PWOERA (*((volatile unsigned char *)0xffffd3)) // 俹倂俵傾僂僩僾僢僩僀僱乕僽儖儗僕僗僞俙
#define PWM_PWOERB (*((volatile unsigned char *)0xffffd2)) // 俹倂俵傾僂僩僾僢僩僀僱乕僽儖儗僕僗僞俛
#define PWM_PCSR (*((volatile unsigned char *)0xffff82)) // 廃曈僋儘僢僋僙儗僋僩儗僕僗僞
/* 侾係價僢僩俹倂俵僞僀儅乮戞侾侽復乯俹俀俉俋 */
#define PWMX_DACR (*((volatile unsigned char *)0xffffa0)) // 俹倂俵乮俢乛俙乯僐儞僩儘乕儖儗僕僗僞
#define PWMX_DADRAH (*((volatile unsigned char *)0xffffa0)) // 俹倂俵乮俢乛俙乯僨乕僞儗僕僗僞俙俫
#define PWMX_DADRAL (*((volatile unsigned char *)0xffffa1)) // 俹倂俵乮俢乛俙乯僨乕僞儗僕僗僞俙俴
#define PWMX_DADRBH (*((volatile unsigned char *)0xffffa6)) // 俹倂俵乮俢乛俙乯僨乕僞儗僕僗僞俛俫
#define PWMX_DADRBL (*((volatile unsigned char *)0xffffa7)) // 俹倂俵乮俢乛俙乯僨乕僞儗僕僗僞俛俴
#define PWMX_DACNTH (*((volatile unsigned char *)0xffffa6)) // 俹倂俵乮俢乛俙乯僇僂儞僞俫
#define PWMX_DACNTL (*((volatile unsigned char *)0xffffa7)) // 俹倂俵乮俢乛俙乯僇僂儞僞俴
/* 侾俇價僢僩僼儕乕儔儞僯儞僌僞僀儅乮戞侾侾復乯俹俁侽俆 */
#define FRT_TIER (*((volatile unsigned char *)0xffff90)) // 僞僀儅僀儞僞儔僽僩僀僱乕僽儖儗僕僗僞
#define FRT_TCSR (*((volatile unsigned char *)0xffff91)) // 僞僀儅僐儞僩儘乕儖僗僥乕僞僗儗僕僗僞
#define FRT_FRC (*((volatile unsigned short *)0xffff92)) //僼儕乕儔儞僯儞僌僇僂儞僞
#define FRT_OCRA (*((volatile unsigned short *)0xffff94)) //傾僂僩僾僢僩僐儞儁傾儗僕僗僞俙
#define FRT_OCRB (*((volatile unsigned short *)0xffff94)) //傾僂僩僾僢僩僐儞儁傾儗僕僗僞俛
#define FRT_TCR (*((volatile unsigned char *)0xffff96)) // 僞僀儅僐儞僩儘乕儖儗僕僗僞
#define FRT_TOCR (*((volatile unsigned char *)0xffff97)) // 僞僀儅傾僂僩僾僢僩僐儞儁傾僐儞僩儘乕儖儗僕僗僞
#define FRT_INCRA (*((volatile unsigned short *)0xffff98)) //僀儞僾僢僩僉儍僾僠儍儗僕僗僞俙
#define FRT_INCRB (*((volatile unsigned short *)0xffff9a)) //僀儞僾僢僩僉儍僾僠儍儗僕僗僞俛
#define FRT_INCRC (*((volatile unsigned short *)0xffff9c)) //僀儞僾僢僩僉儍僾僠儍儗僕僗僞俠
#define FRT_INCRD (*((volatile unsigned short *)0xffff9e)) //僀儞僾僢僩僉儍僾僠儍儗僕僗僞俢
#define FRT_OCRAR (*((volatile unsigned short *)0xffff98)) //傾僂僩僾僢僩僐儞儁傾儗僕僗僞俙俼
#define FRT_OCRAF (*((volatile unsigned short *)0xffff9a)) //傾僂僩僾僢僩僐儞儁傾儗僕僗僞俙俥
#define FRT_OCRDM (*((volatile unsigned short *)0xffff9c)) //傾僂僩僾僢僩僐儞儁傾儗僕僗僞俢俵
/* 俉價僢僩僞僀儅乮戞侾俀復乯俹俁係俁 */
#define TMR0_TCR (*((volatile unsigned char *)0xffffc8)) // 僞僀儅僐儞僩儘乕儖儗僕僗僞侽
#define TMR0_TCSR (*((volatile unsigned char *)0xffffca)) // 僞僀儅僐儞僩儘乕儖僗僥乕僞僗儗僕僗僞侽
#define TMR0_TCORA (*((volatile unsigned char *)0xffffcc)) // 僞僀儉僐儞僗僞儞僩儗僕僗僞俙侽
#define TMR0_TCORB (*((volatile unsigned char *)0xffffce)) // 僞僀儉僐儞僗僞儞僩儗僕僗僞俛侽
#define TMR0_TCNT (*((volatile unsigned char *)0xffffd0)) // 僞僀儅僇僂儞僞侽
#define TMR1_TCR (*((volatile unsigned char *)0xffffc9)) // 僞僀儅僐儞僩儘乕儖儗僕僗僞侾
#define TMR1_TCSR (*((volatile unsigned char *)0xffffcb)) // 僞僀儅僐儞僩儘乕儖僗僥乕僞僗儗僕僗僞侾
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -