?? mc68hc908jb16.h
字號:
/*** POCR - Port Option Control Register; 0x0000001D ***/
typedef union {
byte Byte;
struct {
byte PAP :1; /* Port A Pullup Enable */
byte :1;
byte PCP :1; /* Port C Pullup Enable */
byte PTE3P :1; /* Pin PTE3 Pullup Enable */
byte PTE4P :1; /* Pin PTE4 Pullup Enable */
byte PTDILDD :1; /* Infrared LED Drive Control */
byte PTDLDD :1; /* LED Direct Drive Control */
byte PTE20P :1; /* Pins PTE[2:0] Pullup Enable */
} Bits;
} POCRSTR;
extern volatile POCRSTR _POCR @0x0000001D;
#define POCR _POCR.Byte
#define POCR_PAP _POCR.Bits.PAP
#define POCR_PCP _POCR.Bits.PCP
#define POCR_PTE3P _POCR.Bits.PTE3P
#define POCR_PTE4P _POCR.Bits.PTE4P
#define POCR_PTDILDD _POCR.Bits.PTDILDD
#define POCR_PTDLDD _POCR.Bits.PTDLDD
#define POCR_PTE20P _POCR.Bits.PTE20P
#define POCR_PAP_MASK 1
#define POCR_PAP_BITNUM 0
#define POCR_PCP_MASK 4
#define POCR_PCP_BITNUM 2
#define POCR_PTE3P_MASK 8
#define POCR_PTE3P_BITNUM 3
#define POCR_PTE4P_MASK 16
#define POCR_PTE4P_BITNUM 4
#define POCR_PTDILDD_MASK 32
#define POCR_PTDILDD_BITNUM 5
#define POCR_PTDLDD_MASK 64
#define POCR_PTDLDD_BITNUM 6
#define POCR_PTE20P_MASK 128
#define POCR_PTE20P_BITNUM 7
/*** ISCR - IRQ Status and Control Register; 0x0000001E ***/
typedef union {
byte Byte;
struct {
byte MODE :1; /* IRQ Edge/Level Select Bit */
byte IMASK :1; /* IRQ Interrupt Mask Bit */
byte ACK :1; /* IRQ Interrupt Request Acknowledge Bit */
byte IRQF :1; /* IRQ Flag Bit */
byte :1;
byte :1;
byte :1;
byte :1;
} Bits;
} ISCRSTR;
extern volatile ISCRSTR _ISCR @0x0000001E;
#define ISCR _ISCR.Byte
#define ISCR_MODE _ISCR.Bits.MODE
#define ISCR_IMASK _ISCR.Bits.IMASK
#define ISCR_ACK _ISCR.Bits.ACK
#define ISCR_IRQF _ISCR.Bits.IRQF
#define ISCR_MODE_MASK 1
#define ISCR_MODE_BITNUM 0
#define ISCR_IMASK_MASK 2
#define ISCR_IMASK_BITNUM 1
#define ISCR_ACK_MASK 4
#define ISCR_ACK_BITNUM 2
#define ISCR_IRQF_MASK 8
#define ISCR_IRQF_BITNUM 3
/*** CONFIG - Configuration Register; 0x0000001F ***/
typedef union {
byte Byte;
struct {
byte COPD :1; /* COP Disable Bit */
byte STOP :1; /* STOP Instruction Enable Bit */
byte COPRS :1; /* COP Reset Period Selection Bit */
byte SSREC :1; /* Short Stop Recovery Bit */
byte LVID :1; /* Low Voltage Inhibit Disable Bit */
byte URSTD :1; /* USB Reset Disable Bit */
byte LVIDR :1; /* LVI Disable Bit for Vreg */
} Bits;
} CONFIGSTR;
extern volatile CONFIGSTR _CONFIG @0x0000001F;
#define CONFIG _CONFIG.Byte
#define CONFIG_COPD _CONFIG.Bits.COPD
#define CONFIG_STOP _CONFIG.Bits.STOP
#define CONFIG_COPRS _CONFIG.Bits.COPRS
#define CONFIG_SSREC _CONFIG.Bits.SSREC
#define CONFIG_LVID _CONFIG.Bits.LVID
#define CONFIG_URSTD _CONFIG.Bits.URSTD
#define CONFIG_LVI5OR3 _CONFIG.Bits.LVI5OR3
#define CONFIG_LVIDR _CONFIG.Bits.LVIDR
#define CONFIG_COPD_MASK 1
#define CONFIG_COPD_BITNUM 0
#define CONFIG_STOP_MASK 2
#define CONFIG_STOP_BITNUM 1
#define CONFIG_COPRS_MASK 4
#define CONFIG_COPRS_BITNUM 2
#define CONFIG_SSREC_MASK 8
#define CONFIG_SSREC_BITNUM 3
#define CONFIG_LVID_MASK 16
#define CONFIG_LVID_BITNUM 4
#define CONFIG_URSTD_MASK 32
#define CONFIG_URSTD_BITNUM 5
#define CONFIG_LVI5OR3_MASK 64
#define CONFIG_LVI5OR3_BITNUM 6
#define CONFIG_LVIDR_MASK 128
#define CONFIG_LVIDR_BITNUM 7
/*** UE0D0 - USB Endpoint 0 Data Register 0; 0x00000020 ***/
typedef union {
byte Byte;
struct {
byte UE0R00_UE0T00 :1; /* Endpoint 0 Receive Data Buffer 0 Bit 0, Endpoint 0 Transmit Data Buffer 0 Bit 0 */
byte UE0R01_UE0T01 :1; /* Endpoint 0 Receive Data Buffer 0 Bit 1, Endpoint 0 Transmit Data Buffer 0 Bit 1 */
byte UE0R02_UE0T02 :1; /* Endpoint 0 Receive Data Buffer 0 Bit 2, Endpoint 0 Transmit Data Buffer 0 Bit 2 */
byte UE0R03_UE0T03 :1; /* Endpoint 0 Receive Data Buffer 0 Bit 3, Endpoint 0 Transmit Data Buffer 0 Bit 3 */
byte UE0R04_UE0T04 :1; /* Endpoint 0 Receive Data Buffer 0 Bit 4, Endpoint 0 Transmit Data Buffer 0 Bit 4 */
byte UE0R05_UE0T05 :1; /* Endpoint 0 Receive Data Buffer 0 Bit 5, Endpoint 0 Transmit Data Buffer 0 Bit 5 */
byte UE0R06_UE0T06 :1; /* Endpoint 0 Receive Data Buffer 0 Bit 6, Endpoint 0 Transmit Data Buffer 0 Bit 6 */
byte UE0R07_UE0T07 :1; /* Endpoint 0 Receive Data Buffer 0 Bit 7, Endpoint 0 Transmit Data Buffer 0 Bit 7 */
} Bits;
} UE0D0STR;
extern volatile UE0D0STR _UE0D0 @0x00000020;
#define UE0D0 _UE0D0.Byte
#define UE0D0_UE0R00_UE0T00 _UE0D0.Bits.UE0R00_UE0T00
#define UE0D0_UE0R01_UE0T01 _UE0D0.Bits.UE0R01_UE0T01
#define UE0D0_UE0R02_UE0T02 _UE0D0.Bits.UE0R02_UE0T02
#define UE0D0_UE0R03_UE0T03 _UE0D0.Bits.UE0R03_UE0T03
#define UE0D0_UE0R04_UE0T04 _UE0D0.Bits.UE0R04_UE0T04
#define UE0D0_UE0R05_UE0T05 _UE0D0.Bits.UE0R05_UE0T05
#define UE0D0_UE0R06_UE0T06 _UE0D0.Bits.UE0R06_UE0T06
#define UE0D0_UE0R07_UE0T07 _UE0D0.Bits.UE0R07_UE0T07
#define UE0D0_UE0R00_UE0T00_MASK 1
#define UE0D0_UE0R00_UE0T00_BITNUM 0
#define UE0D0_UE0R01_UE0T01_MASK 2
#define UE0D0_UE0R01_UE0T01_BITNUM 1
#define UE0D0_UE0R02_UE0T02_MASK 4
#define UE0D0_UE0R02_UE0T02_BITNUM 2
#define UE0D0_UE0R03_UE0T03_MASK 8
#define UE0D0_UE0R03_UE0T03_BITNUM 3
#define UE0D0_UE0R04_UE0T04_MASK 16
#define UE0D0_UE0R04_UE0T04_BITNUM 4
#define UE0D0_UE0R05_UE0T05_MASK 32
#define UE0D0_UE0R05_UE0T05_BITNUM 5
#define UE0D0_UE0R06_UE0T06_MASK 64
#define UE0D0_UE0R06_UE0T06_BITNUM 6
#define UE0D0_UE0R07_UE0T07_MASK 128
#define UE0D0_UE0R07_UE0T07_BITNUM 7
/*** UE0D1 - USB Endpoint 0 Data Register 1; 0x00000021 ***/
typedef union {
byte Byte;
struct {
byte UE0R10_UE0T10 :1; /* Endpoint 0 Receive Data Buffer 1 Bit 0, Endpoint 0 Transmit Data Buffer 1 Bit 0 */
byte UE0R11_UE0T11 :1; /* Endpoint 0 Receive Data Buffer 1 Bit 1, Endpoint 0 Transmit Data Buffer 1 Bit 1 */
byte UE0R12_UE0T12 :1; /* Endpoint 0 Receive Data Buffer 1 Bit 2, Endpoint 0 Transmit Data Buffer 1 Bit 2 */
byte UE0R13_UE0T13 :1; /* Endpoint 0 Receive Data Buffer 1 Bit 3, Endpoint 0 Transmit Data Buffer 1 Bit 3 */
byte UE0R14_UE0T14 :1; /* Endpoint 0 Receive Data Buffer 1 Bit 4, Endpoint 0 Transmit Data Buffer 1 Bit 4 */
byte UE0R15_UE0T15 :1; /* Endpoint 0 Receive Data Buffer 1 Bit 5, Endpoint 0 Transmit Data Buffer 1 Bit 5 */
byte UE0R16_UE0T16 :1; /* Endpoint 0 Receive Data Buffer 1 Bit 6, Endpoint 0 Transmit Data Buffer 1 Bit 6 */
byte UE0R17_UE0T17 :1; /* Endpoint 0 Receive Data Buffer 1 Bit 7, Endpoint 0 Transmit Data Buffer 1 Bit 7 */
} Bits;
} UE0D1STR;
extern volatile UE0D1STR _UE0D1 @0x00000021;
#define UE0D1 _UE0D1.Byte
#define UE0D1_UE0R10_UE0T10 _UE0D1.Bits.UE0R10_UE0T10
#define UE0D1_UE0R11_UE0T11 _UE0D1.Bits.UE0R11_UE0T11
#define UE0D1_UE0R12_UE0T12 _UE0D1.Bits.UE0R12_UE0T12
#define UE0D1_UE0R13_UE0T13 _UE0D1.Bits.UE0R13_UE0T13
#define UE0D1_UE0R14_UE0T14 _UE0D1.Bits.UE0R14_UE0T14
#define UE0D1_UE0R15_UE0T15 _UE0D1.Bits.UE0R15_UE0T15
#define UE0D1_UE0R16_UE0T16 _UE0D1.Bits.UE0R16_UE0T16
#define UE0D1_UE0R17_UE0T17 _UE0D1.Bits.UE0R17_UE0T17
#define UE0D1_UE0R10_UE0T10_MASK 1
#define UE0D1_UE0R10_UE0T10_BITNUM 0
#define UE0D1_UE0R11_UE0T11_MASK 2
#define UE0D1_UE0R11_UE0T11_BITNUM 1
#define UE0D1_UE0R12_UE0T12_MASK 4
#define UE0D1_UE0R12_UE0T12_BITNUM 2
#define UE0D1_UE0R13_UE0T13_MASK 8
#define UE0D1_UE0R13_UE0T13_BITNUM 3
#define UE0D1_UE0R14_UE0T14_MASK 16
#define UE0D1_UE0R14_UE0T14_BITNUM 4
#define UE0D1_UE0R15_UE0T15_MASK 32
#define UE0D1_UE0R15_UE0T15_BITNUM 5
#define UE0D1_UE0R16_UE0T16_MASK 64
#define UE0D1_UE0R16_UE0T16_BITNUM 6
#define UE0D1_UE0R17_UE0T17_MASK 128
#define UE0D1_UE0R17_UE0T17_BITNUM 7
/*** UE0D2 - USB Endpoint 0 Data Register 2; 0x00000022 ***/
typedef union {
byte Byte;
struct {
byte UE0R20_UE0T20 :1; /* Endpoint 0 Receive Data Buffer 2 Bit 0, Endpoint 0 Transmit Data Buffer 2 Bit 0 */
byte UE0R21_UE0T21 :1; /* Endpoint 0 Receive Data Buffer 2 Bit 1, Endpoint 0 Transmit Data Buffer 2 Bit 1 */
byte UE0R22_UE0T22 :1; /* Endpoint 0 Receive Data Buffer 2 Bit 2, Endpoint 0 Transmit Data Buffer 2 Bit 2 */
byte UE0R23_UE0T23 :1; /* Endpoint 0 Receive Data Buffer 2 Bit 3, Endpoint 0 Transmit Data Buffer 2 Bit 3 */
byte UE0R24_UE0T24 :1; /* Endpoint 0 Receive Data Buffer 2 Bit 4, Endpoint 0 Transmit Data Buffer 2 Bit 4 */
byte UE0R25_UE0T25 :1; /* Endpoint 0 Receive Data Buffer 2 Bit 5, Endpoint 0 Transmit Data Buffer 2 Bit 5 */
byte UE0R26_UE0T26 :1; /* Endpoint 0 Receive Data Buffer 2 Bit 6, Endpoint 0 Transmit Data Buffer 2 Bit 6 */
byte UE0R27_UE0T27 :1; /* Endpoint 0 Receive Data Buffer 2 Bit 7, Endpoint 0 Transmit Data Buffer 2 Bit 7 */
} Bits;
} UE0D2STR;
extern volatile UE0D2STR _UE0D2 @0x00000022;
#define UE0D2 _UE0D2.Byte
#define UE0D2_UE0R20_UE0T20 _UE0D2.Bits.UE0R20_UE0T20
#define UE0D2_UE0R21_UE0T21 _UE0D2.Bits.UE0R21_UE0T21
#define UE0D2_UE0R22_UE0T22 _UE0D2.Bits.UE0R22_UE0T22
#define UE0D2_UE0R23_UE0T23 _UE0D2.Bits.UE0R23_UE0T23
#define UE0D2_UE0R24_UE0T24 _UE0D2.Bits.UE0R24_UE0T24
#define UE0D2_UE0R25_UE0T25 _UE0D2.Bits.UE0R25_UE0T25
#define UE0D2_UE0R26_UE0T26 _UE0D2.Bits.UE0R26_UE0T26
#define UE0D2_UE0R27_UE0T27 _UE0D2.Bits.UE0R27_UE0T27
#define UE0D2_UE0R20_UE0T20_MASK 1
#define UE0D2_UE0R20_UE0T20_BITNUM 0
#define UE0D2_UE0R21_UE0T21_MASK 2
#define UE0D2_UE0R21_UE0T21_BITNUM 1
#define UE0D2_UE0R22_UE0T22_MASK 4
#define UE0D2_UE0R22_UE0T22_BITNUM 2
#define UE0D2_UE0R23_UE0T23_MASK 8
#define UE0D2_UE0R23_UE0T23_BITNUM 3
#define UE0D2_UE0R24_UE0T24_MASK 16
#define UE0D2_UE0R24_UE0T24_BITNUM 4
#define UE0D2_UE0R25_UE0T25_MASK 32
#define UE0D2_UE0R25_UE0T25_BITNUM 5
#define UE0D2_UE0R26_UE0T26_MASK 64
#define UE0D2_UE0R26_UE0T26_BITNUM 6
#define UE0D2_UE0R27_UE0T27_MASK 128
#define UE0D2_UE0R27_UE0T27_BITNUM 7
/*** UE0D3 - USB Endpoint 0 Data Register 3; 0x00000023 ***/
typedef union {
byte Byte;
struct {
byte UE0R30_UE0T30 :1; /* Endpoint 0 Receive Data Buffer 3 Bit 0, Endpoint 0 Transmit Data Buffer 3 Bit 0 */
byte UE0R31_UE0T31 :1; /* Endpoint 0 Receive Data Buffer 3 Bit 1, Endpoint 0 Transmit Data Buffer 3 Bit 1 */
byte UE0R32_UE0T32 :1; /* Endpoint 0 Receive Data Buffer 3 Bit 2, Endpoint 0 Transmit Data Buffer 3 Bit 2 */
byte UE0R33_UE0T33 :1; /* Endpoint 0 Receive Data Buffer 3 Bit 3, Endpoint 0 Transmit Data Buffer 3 Bit 3 */
byte UE0R34_UE0T34 :1; /* Endpoint 0 Receive Data Buffer 3 Bit 4, Endpoint 0 Transmit Data Buffer 3 Bit 4 */
byte UE0R35_UE0T35 :1; /* Endpoint 0 Receive Data Buffer 3 Bit 5, Endpoint 0 Transmit Data Buffer 3 Bit 5 */
byte UE0R36_UE0T36 :1; /* Endpoint 0 Receive Data Buffer 3 Bit 6, Endpoint 0 Transmit Data Buffer 3 Bit 6 */
byte UE0R37_UE0T37 :1; /* Endpoint 0 Receive Data Buffer 3 Bit 7, Endpoint 0 Transmit Data Buffer 3 Bit 7 */
} Bits;
} UE0D3STR;
extern volatile UE0D3STR _UE0D3 @0x00000023;
#define UE0D3 _UE0D3.Byte
#define UE0D3_UE0R30_UE0T30 _UE0D3.Bits.UE0R30_UE0T30
#define UE0D3_UE0R31_UE0T31 _UE0D3.Bits.UE0R31_UE0T31
#define UE0D3_UE0R32_UE0T32 _UE0D3.Bits.UE0R32_UE0T32
#define UE0D3_UE0R33_UE0T33 _UE0D3.Bits.UE0R33_UE0T33
#define UE0D3_UE0R34_UE0T34 _UE0D3.Bits.UE0R34_UE0T34
#define UE0D3_UE0R35_UE0T35 _UE0D3.Bits.UE0R35_UE0T35
#define UE0D3_UE0R36_UE0T36 _UE0D3.Bits.UE0R36_UE0T36
#define UE0D3_UE0R37_UE0T37 _UE0D3.Bits.UE0R37_UE0T37
#define UE0D3_UE0R30_UE0T30_MASK 1
#define UE0D3_UE0R30_UE0T30_BITNUM 0
#define UE0D3_UE0R31_UE0T31_MASK 2
#define UE0D3_UE0R31_UE0T31_BITNUM 1
#define UE0D3_UE0R32_UE0T32_MASK 4
#define UE0D3_UE0R32_UE0T32_BITNUM 2
#define UE0D3_UE0R33_UE0T33_MASK 8
#define UE0D3_UE0R33_UE0T33_BITNUM 3
#define UE0D3_UE0R34_UE0T34_MASK 16
#define UE0D3_UE0R34_UE0T34_BITNUM 4
#define UE0D3_UE0R35_UE0T35_MASK 32
#define UE0D3_UE0R35_UE0T35_BITNUM 5
#define UE0D3_UE0R36_UE0T36_MASK 64
#define UE0D3_UE0R36_UE0T36_BITNUM 6
#define UE0D3_UE0R37_UE0T37_MASK 128
#define UE0D3_UE0R37_UE0T37_BITNUM 7
/*** UE0D4 - USB Endpoint 0 Data Register 4; 0x00000024 ***/
typedef union {
byte Byte;
struct {
byte UE0R40_UE0T40 :1; /* Endpoint 0 Receive Data Buffer 4 Bit 0, Endpoint 0 Transmit Data Buffer 4 Bit 0 */
byte UE0R41_UE0T41 :1; /* Endpoint 0 Receive Data Buffer 4 Bit 1, Endpoint 0 Transmit Data Buffer 4 Bit 1 */
byte UE0R42_UE0T42 :1; /* Endpoint 0 Receive Data Buffer 4 Bit 2, Endpoint 0 Transmit Data Buffer 4 Bit 2 */
byte UE0R43_UE0T43 :1; /* Endpoint 0 Receive Data Buffer 4 Bit 3, Endpoint 0 Transmit Data Buffer 4 Bit 3 */
byte UE0R44_UE0T44 :1; /* Endpoint 0 Receive Data Buffer 4 Bit 4, Endpoint 0 Transmit Data Buffer 4 Bit 4 */
byte UE0R45_UE0T45 :1; /* Endpoint 0 Receive Data Buffer 4 Bit 5, Endpoint 0 Transmit Data Buffer 4 Bit 5 */
byte UE0R46_UE0T46 :1; /* Endpoint 0 Receive Data Buffer 4 Bit 6, Endpoint 0 Transmit Data Buffer 4 Bit 6 */
byte UE0R47_UE0T47 :1; /* Endpoint 0 Receive Data Buffer 4 Bit 7, Endpoint 0 Transmit Data Buffer 4 Bit 7 */
} Bits;
} UE0D4STR;
extern volatile UE0D4STR _UE0D4 @0x00000024;
#define UE0D4 _UE0D4.Byte
#define UE0D4_UE0R40_UE0T40 _UE0D4.Bits.UE0R40_UE0T40
#define UE0D4_UE0R41_UE0T41 _UE0D4.Bits.UE0R41_UE0T41
#define UE0D4_UE0R42_UE0T42 _UE0D4.Bits.UE0R42_UE0T42
#define UE0D4_UE0R43_UE0T43 _UE0D4.Bits.UE0R43_UE0T43
#define UE0D4_UE0R44_UE0T44 _UE0D4.Bits.UE0R44_UE0T44
#define UE0D4_UE0R45_UE0T45 _UE0D4.Bits.UE0R45_UE0T45
#define UE0D4_UE0R46_UE0T46 _UE0D4.Bits.UE0R46_UE0T46
#define UE0D4_UE0R47_UE0T47 _UE0D4.Bits.UE0R47_UE0T47
#define UE0D4_UE0R40_UE0T40_MASK 1
#define UE0D4_UE0R40_UE0T40_BITNUM 0
#define UE0D4_UE0R41_UE0T41_MASK 2
#define UE0D4_UE0R41_UE0T41_BITNUM 1
#define UE0D4_UE0R42_UE0T42_MASK 4
#define UE0D4_UE0R42_UE0T42_BITNUM 2
#define UE0D4_UE0R43_UE0T43_MASK 8
#define UE0D4_UE0R43_UE0T43_BITNUM 3
#define UE0D4_UE0R44_UE0T44_MASK 16
#defi
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -