; The format of the input file:
; each device definition begins with a line like this:
;
;       .devicename
;
;  after it go the port definitions in this format:
;
;       portname        address
;
;  the bit definitions (optional) are represented like this:
;
;       portname.bitname  bitnumber
;
; lines beginning with a space are ignored.
; comment lines should be started with ';' character.
;
; the default device is specified at the start of the file
;
;       .default device_name
;
; all lines non conforming to the format are passed to the callback function
;
; MITSUBISHI 7700 SPECIFIC LINES
;------------------------
;
; the processor definition may include the memory configuration.
; the line format is:

;       area CLASS AREA-NAME START:END
;
; where CLASS is anything, but please use one of CODE, DATA, BSS
;       START and END are addresses, the end address is not included

; Interrupt vectors are declared in the following way:

; entry NAME ADDRESS COMMENT

.default 


.M37702M2BXXXFP
; http://www.mitsubishichips.com/Global/content/product/mcu/16bit/7700f/7700s/7702g/e7702um.pdf

; *** - собственные сокращения


; MEMORY MAP
area DATA FSR         0x0000:0x0080
area DATA RAM_        0x0080:0x0280   Internal RAM
area BSS  RESERVED    0x0280:0xC000
area DATA ROM_        0xC000:0xFFD6   Internal ROM
area DATA USER_VEC    0xFFD6:0x10000


; Interrupt and reset vector assignments
interrupt __RESET           0xFFFE   RESET
interrupt Zero_Div          0xFFFC   Zero division
interrupt BRK_              0xFFFA   BRK instruction
interrupt DBC_              0xFFF8   DBC
interrupt WATCDOG           0xFFF6   Watchdog timer
interrupt INT0_             0xFFF4   External interrupt due to INT0 pin input signal
interrupt INT1_             0xFFF2   External interrupt due to INT1 pin input signal
interrupt INT2_             0xFFF0   External interrupt due to INT2 pin input signal
interrupt Timer_A0          0xFFEE   Internal interrupt from Timer A0
interrupt Timer_A1          0xFFEC   Internal interrupt from Timer A1
interrupt Timer_A2          0xFFEA   Internal interrupt from Timer A2
interrupt Timer_A3          0xFFE8   Internal interrupt from Timer A3
interrupt Timer_A4          0xFFE6   Internal interrupt from Timer A4
interrupt Timer_B0          0xFFE4   Internal interrupt from Timer B0
interrupt Timer_B1          0xFFE2   Internal interrupt from Timer B1
interrupt Timer_B2          0xFFE0   Internal interrupt from Timer B2
interrupt UART0_receive     0xFFDE   Internal interrupt from UART0
interrupt UART0_transmit    0xFFDC   Internal interrupt from UART0
interrupt UART1_receive     0xFFDA   Internal interrupt from UART1
interrupt UART1_transmit    0xFFD8   Internal interrupt from UART1
interrupt A_D_conversion    0xFFD6   Internal interrupt from A-D converter


; INPUT/ OUTPUT PORTS
RESERVED0000       0x0000   RESERVED
RESERVED0001       0x0001   RESERVED
P0                 0x0002   Port P0 register
P0.P0_7             7   Port P07
P0.P0_6             6   Port P06
P0.P0_5             5   Port P05
P0.P0_4             4   Port P04
P0.P0_3             3   Port P03
P0.P0_2             2   Port P02
P0.P0_1             1   Port P01
P0.P0_0             0   Port P00
P1                 0x0003   Port P1 register
P1.P1_7             7   Port P17
P1.P1_6             6   Port P16
P1.P1_5             5   Port P15
P1.P1_4             4   Port P14
P1.P1_3             3   Port P13
P1.P1_2             2   Port P12
P1.P1_1             1   Port P11
P1.P1_0             0   Port P10
PD0                0x0004   Port P0 direction register
PD0.PD0_7           7   Port P07 direction bit
PD0.PD0_6           6   Port P06 direction bit
PD0.PD0_5           5   Port P05 direction bit
PD0.PD0_4           4   Port P04 direction bit
PD0.PD0_3           3   Port P03 direction bit
PD0.PD0_2           2   Port P02 direction bit
PD0.PD0_1           1   Port P01 direction bit
PD0.PD0_0           0   Port P00 direction bit
PD1                0x0005   Port P1 direction register
PD1.PD1_7           7   Port P17 direction bit
PD1.PD1_6           6   Port P16 direction bit
PD1.PD1_5           5   Port P15 direction bit
PD1.PD1_4           4   Port P14 direction bit
PD1.PD1_3           3   Port P13 direction bit
PD1.PD1_2           2   Port P12 direction bit
PD1.PD1_1           1   Port P11 direction bit
PD1.PD1_0           0   Port P10 direction bit
P2                 0x0006   Port P2 register
P2.P2_7             7   Port P27
P2.P2_6             6   Port P26
P2.P2_5             5   Port P25
P2.P2_4             4   Port P24
P2.P2_3             3   Port P23
P2.P2_2             2   Port P22
P2.P2_1             1   Port P21
P2.P2_0             0   Port P20
P3                 0x0007   Port P3 register
P3.P3_7             7   Port P37
P3.P3_6             6   Port P36
P3.P3_5             5   Port P35
P3.P3_4             4   Port P34
P3.P3_3             3   Port P33
P3.P3_2             2   Port P32
P3.P3_1             1   Port P31
P3.P3_0             0   Port P30
PD2                0x0008   Port P2 direction register
PD2.PD2_7           7   Port P27 direction bit
PD2.PD2_6           6   Port P26 direction bit
PD2.PD2_5           5   Port P25 direction bit
PD2.PD2_4           4   Port P24 direction bit
PD2.PD2_3           3   Port P23 direction bit
PD2.PD2_2           2   Port P22 direction bit
PD2.PD2_1           1   Port P21 direction bit
PD2.PD2_0           0   Port P20 direction bit
PD3                0x0009   Port P3 direction register
PD3.PD3_7           7   Port P37 direction bit
PD3.PD3_6           6   Port P36 direction bit
PD3.PD3_5           5   Port P35 direction bit
PD3.PD3_4           4   Port P34 direction bit
PD3.PD3_3           3   Port P33 direction bit
PD3.PD3_2           2   Port P32 direction bit
PD3.PD3_1           1   Port P31 direction bit
PD3.PD3_0           0   Port P30 direction bit
P4                 0x000A   Port P4 register
P4.P4_7             7   Port P47
P4.P4_6             6   Port P46
P4.P4_5             5   Port P45
P4.P4_4             4   Port P44
P4.P4_3             3   Port P43
P4.P4_2             2   Port P42
P4.P4_1             1   Port P41
P4.P4_0             0   Port P40
P5                 0x000B   Port P5 register
P5.P5_7             7   Port P57
P5.P5_6             6   Port P56
P5.P5_5             5   Port P55
P5.P5_4             4   Port P54
P5.P5_3             3   Port P53
P5.P5_2             2   Port P52
P5.P5_1             1   Port P51
P5.P5_0             0   Port P50
PD4                0x000C   Port P4 direction register
PD4.PD4_7           7   Port P47 direction bit
PD4.PD4_6           6   Port P46 direction bit
PD4.PD4_5           5   Port P45 direction bit
PD4.PD4_4           4   Port P44 direction bit
PD4.PD4_3           3   Port P43 direction bit
PD4.PD4_2           2   Port P42 direction bit
PD4.PD4_1           1   Port P41 direction bit
PD4.PD4_0           0   Port P40 direction bit
PD5                0x000D   Port P5 direction register
PD5.PD5_7           7   Port P57 direction bit
PD5.PD5_6           6   Port P56 direction bit
PD5.PD5_5           5   Port P55 direction bit
PD5.PD5_4           4   Port P54 direction bit
PD5.PD5_3           3   Port P53 direction bit
PD5.PD5_2           2   Port P52 direction bit
PD5.PD5_1           1   Port P51 direction bit
PD5.PD5_0           0   Port P50 direction bit
P6                 0x000E   Port P6 register
P6.P6_7             7   Port P67
P6.P6_6             6   Port P66
P6.P6_5             5   Port P65
P6.P6_4             4   Port P64
P6.P6_3             3   Port P63
P6.P6_2             2   Port P62
P6.P6_1             1   Port P61
P6.P6_0             0   Port P60
P7                 0x000F   Port P7 register
P7.P7_7             7   Port P77
P7.P7_6             6   Port P76
P7.P7_5             5   Port P75
P7.P7_4             4   Port P74
P7.P7_3             3   Port P73
P7.P7_2             2   Port P72
P7.P7_1             1   Port P71
P7.P7_0             0   Port P70
PD6                0x0010   Port P6 direction register
PD6.PD6_7           7   Port P67 direction bit
PD6.PD6_6           6   Port P66 direction bit
PD6.PD6_5           5   Port P65 direction bit
PD6.PD6_4           4   Port P64 direction bit
PD6.PD6_3           3   Port P63 direction bit
PD6.PD6_2           2   Port P62 direction bit
PD6.PD6_1           1   Port P61 direction bit
PD6.PD6_0           0   Port P60 direction bit
PD7                0x0011   Port P7 direction register
PD7.PD7_7           7   Port P77 direction bit
PD7.PD7_6           6   Port P76 direction bit
PD7.PD7_5           5   Port P75 direction bit
PD7.PD7_4           4   Port P74 direction bit
PD7.PD7_3           3   Port P73 direction bit
PD7.PD7_2           2   Port P72 direction bit
PD7.PD7_1           1   Port P71 direction bit
PD7.PD7_0           0   Port P70 direction bit
P8                 0x0012   Port P8 register
P8.P8_7             7   Port P87
P8.P8_6             6   Port P86
P8.P8_5             5   Port P85
P8.P8_4             4   Port P84
P8.P8_3             3   Port P83
P8.P8_2             2   Port P82
P8.P8_1             1   Port P81
P8.P8_0             0   Port P80
RESERVED0013       0x0013   RESERVED
PD8                0x0014   Port P8 direction register
PD8.PD8_7           7   Port P87 direction bit
PD8.PD8_6           6   Port P86 direction bit
PD8.PD8_5           5   Port P85 direction bit
PD8.PD8_4           4   Port P84 direction bit
PD8.PD8_3           3   Port P83 direction bit
PD8.PD8_2           2   Port P82 direction bit
PD8.PD8_1           1   Port P81 direction bit
PD8.PD8_0           0   Port P80 direction bit
RESERVED0015       0x0015   RESERVED
RESERVED0016       0x0016   RESERVED
RESERVED0017       0x0017   RESERVED
RESERVED0018       0x0018   RESERVED
RESERVED0019       0x0019   RESERVED
RESERVED001A       0x001A   RESERVED
RESERVED001B       0x001B   RESERVED
RESERVED001C       0x001C   RESERVED
RESERVED001D       0x001D   RESERVED
ADCON              0x001E   A-D control register
ADCON.Bit7          7   A-D conversion frequency select bit
ADCON.Bit6          6   A-D conversion start bit
ADCON.Bit5          5   Trigger select bit
ADCON.Bit4          4   A-D operation mode select bit 4
ADCON.Bit3          3   A-D operation mode select bit 3
ADCON.Bit2          2   Analog input select bit 2
ADCON.Bit1          1   Analog input select bit 1
ADCON.Bit0          0   Analog input select bit 0
A_D_SPSR           0x001F   A-D sweep pin select register (***)
A_D_SPSR.Bit1       1   A-D sweep pin select bit 1
A_D_SPSR.Bit0       0   A-D sweep pin select bit 0
AD0                0x0020   A-D register 0
AD0.Bit7            7   Reads an A-D conversion result bit 7
AD0.Bit6            6   Reads an A-D conversion result bit 6
AD0.Bit5            5   Reads an A-D conversion result bit 5
AD0.Bit4            4   Reads an A-D conversion result bit 4
AD0.Bit3            3   Reads an A-D conversion result bit 3
AD0.Bit2            2   Reads an A-D conversion result bit 2
AD0.Bit1            1   Reads an A-D conversion result bit 1
AD0.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0021       0x0021   RESERVED
AD1                0x0022   A-D register 1
AD1.Bit7            7   Reads an A-D conversion result bit 7
AD1.Bit6            6   Reads an A-D conversion result bit 6
AD1.Bit5            5   Reads an A-D conversion result bit 5
AD1.Bit4            4   Reads an A-D conversion result bit 4
AD1.Bit3            3   Reads an A-D conversion result bit 3
AD1.Bit2            2   Reads an A-D conversion result bit 2
AD1.Bit1            1   Reads an A-D conversion result bit 1
AD1.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0023       0x0023   RESERVED
AD2                0x0024   A-D register 2
AD2.Bit7            7   Reads an A-D conversion result bit 7
AD2.Bit6            6   Reads an A-D conversion result bit 6
AD2.Bit5            5   Reads an A-D conversion result bit 5
AD2.Bit4            4   Reads an A-D conversion result bit 4
AD2.Bit3            3   Reads an A-D conversion result bit 3
AD2.Bit2            2   Reads an A-D conversion result bit 2
AD2.Bit1            1   Reads an A-D conversion result bit 1
AD2.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0025       0x0025   RESERVED
AD3                0x0026   A-D register 3
AD3.Bit7            7   Reads an A-D conversion result bit 7
AD3.Bit6            6   Reads an A-D conversion result bit 6
AD3.Bit5            5   Reads an A-D conversion result bit 5
AD3.Bit4            4   Reads an A-D conversion result bit 4
AD3.Bit3            3   Reads an A-D conversion result bit 3
AD3.Bit2            2   Reads an A-D conversion result bit 2
AD3.Bit1            1   Reads an A-D conversion result bit 1
AD3.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0027       0x0027   RESERVED
AD4                0x0028   A-D register 4
AD4.Bit7            7   Reads an A-D conversion result bit 7
AD4.Bit6            6   Reads an A-D conversion result bit 6
AD4.Bit5            5   Reads an A-D conversion result bit 5
AD4.Bit4            4   Reads an A-D conversion result bit 4
AD4.Bit3            3   Reads an A-D conversion result bit 3
AD4.Bit2            2   Reads an A-D conversion result bit 2
AD4.Bit1            1   Reads an A-D conversion result bit 1
AD4.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0029       0x0029   RESERVED
AD5                0x002A   A-D register 5
AD5.Bit7            7   Reads an A-D conversion result bit 7
AD5.Bit6            6   Reads an A-D conversion result bit 6
AD5.Bit5            5   Reads an A-D conversion result bit 5
AD5.Bit4            4   Reads an A-D conversion result bit 4
AD5.Bit3            3   Reads an A-D conversion result bit 3
AD5.Bit2            2   Reads an A-D conversion result bit 2
AD5.Bit1            1   Reads an A-D conversion result bit 1
AD5.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002B       0x002B   RESERVED
AD6                0x002C   A-D register 6
AD6.Bit7            7   Reads an A-D conversion result bit 7
AD6.Bit6            6   Reads an A-D conversion result bit 6
AD6.Bit5            5   Reads an A-D conversion result bit 5
AD6.Bit4            4   Reads an A-D conversion result bit 4
AD6.Bit3            3   Reads an A-D conversion result bit 3
AD6.Bit2            2   Reads an A-D conversion result bit 2
AD6.Bit1            1   Reads an A-D conversion result bit 1
AD6.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002D       0x002D   RESERVED
AD7                0x002E   A-D register 7
AD7.Bit7            7   Reads an A-D conversion result bit 7
AD7.Bit6            6   Reads an A-D conversion result bit 6
AD7.Bit5            5   Reads an A-D conversion result bit 5
AD7.Bit4            4   Reads an A-D conversion result bit 4
AD7.Bit3            3   Reads an A-D conversion result bit 3
AD7.Bit2            2   Reads an A-D conversion result bit 2
AD7.Bit1            1   Reads an A-D conversion result bit 1
AD7.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002F       0x002F   RESERVED
U0MR               0x0030   UART0 transmit/receive mode register
U0MR.Bit7           7   Sleep select bit
U0MR.Bit6           6   Parity enable bit
U0MR.Bit5           5   Odd/Even parity select bit
U0MR.Bit4           4   Stop bit length select bit
U0MR.Bit3           3   Internal/External clock select bit
U0MR.Bit2           2   Serial I/O mode select bit 2
U0MR.Bit1           1   Serial I/O mode select bit 1
U0MR.Bit0           0   Serial I/O mode select bit 0
BRG0               0x0031   UART0 baud rate register (BRG0) (***)
U0TB               0x0032   UART0 transmit buffer register
U0C0               0x0034   UART0 transmit/receive control register 0
U0C0.Bit3           3   Transmit register empty flag
U0C0.Bit2           2   CTS/RTS select bit
U0C0.Bit1           1   BRG count source select bit 1
U0C0.Bit0           0   BRG count source select bit 0
U0C1               0x0035   UART0 transmit/receive control register 1
U0C1.Bit7           7   Error sum flag
U0C1.Bit6           6   Parity error flag
U0C1.Bit5           5   Framing error flag
U0C1.Bit4           4   Overrun error flag
U0C1.Bit3           3   Receive complete flag
U0C1.Bit2           2   Receive enable bit
U0C1.Bit1           1   Transmit buffer empty flag
U0C1.Bit0           0   Transmit enable bit
U0RB               0x0036   UART0 receive buffer register
U1MR               0x0038   UART1 transmit/receive mode register
U1MR.Bit7           7   Sleep select bit
U1MR.Bit6           6   Parity enable bit
U1MR.Bit5           5   Odd/Even parity select bit
U1MR.Bit4           4   Stop bit length select bit
U1MR.Bit3           3   Internal/External clock select bit
U1MR.Bit2           2   Serial I/O mode select bit 2
U1MR.Bit1           1   Serial I/O mode select bit 1
U1MR.Bit0           0   Serial I/O mode select bit 0
BRG1               0x0039   UART1 baud rate register (BRG1) (***)
U1TB               0x003A   UART1 transmit buffer register
U1C0               0x003C   UART1 transmit/receive control register 0
U1C0.Bit3           3   Transmit register empty flag
U1C0.Bit2           2   CTS/RTS select bit
U1C0.Bit1           1   BRG count source select bit 1
U1C0.Bit0           0   BRG count source select bit 0
U1C1               0x003D   UART1 transmit/receive control register 1
U1C1.Bit7           7   Error sum flag
U1C1.Bit6           6   Parity error flag
U1C1.Bit5           5   Framing error flag
U1C1.Bit4           4   Overrun error flag
U1C1.Bit3           3   Receive complete flag
U1C1.Bit2           2   Receive enable bit
U1C1.Bit1           1   Transmit buffer empty flag
U1C1.Bit0           0   Transmit enable bit
U1RB               0x003E   UART1 receive buffer register
CSREG              0x0040   Count start register (***)
CSREG.Bit7          7   Timer B2 count start bit
CSREG.Bit6          6   Timer B1 count start bit
CSREG.Bit5          5   Timer B0 count start bit
CSREG.Bit4          4   Timer A4 count start bit
CSREG.Bit3          3   Timer A3 count start bit
CSREG.Bit2          2   Timer A2 count start bit
CSREG.Bit1          1   Timer A1 count start bit
CSREG.Bit0          0   Timer A0 count start bit
RESERVED0041       0x0041   RESERVED
ONE_SSREG          0x0042   One-shot start register (***)
ONE_SSREG.Bit4      4   Timer A4 one-shot start bit
ONE_SSREG.Bit3      3   Timer A3 one-shot start bit
ONE_SSREG.Bit2      2   Timer A2 one-shot start bit
ONE_SSREG.Bit1      1   Timer A1 one-shot start bit
ONE_SSREG.Bit0      0   Timer A0 one-shot start bit
RESERVED0043       0x0043   RESERVED
UP_D_REG           0x0044   Up-down register (***)
UP_D_REG.Bit7       7   Timer A4 two-phase pulse signal processing select bit
UP_D_REG.Bit6       6   Timer A3 two-phase pulse signal processing select bit
UP_D_REG.Bit5       5   Timer A2 two-phase pulse signal processing select bit
UP_D_REG.Bit4       4   Timer A4 up-down bit
UP_D_REG.Bit3       3   Timer A3 up-down bit
UP_D_REG.Bit2       2   Timer A2 up-down bit
UP_D_REG.Bit1       1   Timer A1 up-down bit
UP_D_REG.Bit0       0   Timer A0 up-down bit
RESERVED0045       0x0045   RESERVED
TA0                0x0046   Timer A0 register
TA1                0x0048   Timer A1 register
TA2                0x004A   Timer A2 register
TA3                0x004C   Timer A3 register
TA4                0x004E   Timer A4 register
TB0                0x0050   Timer B0 register
TB1                0x0052   Timer B1 register
TB2                0x0054   Timer B2 register
TA0MR              0x0056   Timer A0 mode register
TA0MR.Bit7          7
TA0MR.Bit6          6
TA0MR.Bit5          5
TA0MR.Bit4          4
TA0MR.Bit3          3
TA0MR.Bit2          2
TA0MR.Bit1          1   Operating mode select bit 1
TA0MR.Bit0          0   Operating mode select bit 0
TA1MR              0x0057   Timer A1 mode register
TA1MR.Bit7          7
TA1MR.Bit6          6
TA1MR.Bit5          5
TA1MR.Bit4          4
TA1MR.Bit3          3
TA1MR.Bit2          2
TA1MR.Bit1          1   Operating mode select bit 1
TA1MR.Bit0          0   Operating mode select bit 0
TA2MR              0x0058   Timer A2 mode register
TA2MR.Bit7          7
TA2MR.Bit6          6
TA2MR.Bit5          5
TA2MR.Bit4          4
TA2MR.Bit3          3
TA2MR.Bit2          2
TA2MR.Bit1          1   Operating mode select bit 1
TA2MR.Bit0          0   Operating mode select bit 0
TA3MR              0x0059   Timer A3 mode register
TA3MR.Bit7          7
TA3MR.Bit6          6
TA3MR.Bit5          5
TA3MR.Bit4          4
TA3MR.Bit3          3
TA3MR.Bit2          2
TA3MR.Bit1          1   Operating mode select bit 1
TA3MR.Bit0          0   Operating mode select bit 0
TA4MR              0x005A   Timer A4 mode register
TA4MR.Bit7          7
TA4MR.Bit6          6
TA4MR.Bit5          5
TA4MR.Bit4          4
TA4MR.Bit3          3
TA4MR.Bit2          2
TA4MR.Bit1          1   Operating mode select bit 1
TA4MR.Bit0          0   Operating mode select bit 0
TB0MR              0x005B   Timer B0 mode register
TB0MR.Bit7          7
TB0MR.Bit6          6
TB0MR.Bit5          5
TB0MR.Bit3          3
TB0MR.Bit2          2
TB0MR.Bit1          1   Operating mode select bit 1
TB0MR.Bit0          0   Operating mode select bit 0
TB1MR              0x005C   Timer B1 mode register
TB1MR.Bit7          7
TB1MR.Bit6          6
TB1MR.Bit5          5
TB1MR.Bit3          3
TB1MR.Bit2          2
TB1MR.Bit1          1   Operating mode select bit 1
TB1MR.Bit0          0   Operating mode select bit 0
TB2MR              0x005D   Timer B2 mode register
TB2MR.Bit7          7
TB2MR.Bit6          6
TB2MR.Bit5          5
TB2MR.Bit3          3
TB2MR.Bit2          2
TB2MR.Bit1          1   Operating mode select bit 1
TB2MR.Bit0          0   Operating mode select bit 0
PM                 0x005E   Processor mode register
PM.Bit7             7   Clock 1 output select bit
PM.Bit5             5   Interrupt priority detection time select bit 5
PM.Bit4             4   Interrupt priority detection time select bit 4
PM.Bit3             3   Software reset bit
PM.Bit2             2   Wait bit
PM.Bit1             1   Processor mode bit 1
PM.Bit0             0   Processor mode bit 0
RESERVED005F       0x005F   RESERVED
WDT                0x0060   Watchdog timer register (***)
WDTFS              0x0061   Watchdog timer frequency select register (***)
WDTFS.Bit0          0   Watchdog timer frequency select bit
RESERVED0062       0x0062   RESERVED
RESERVED0063       0x0063   RESERVED
RESERVED0064       0x0064   RESERVED
RESERVED0065       0x0065   RESERVED
RESERVED0066       0x0066   RESERVED
RESERVED0067       0x0067   RESERVED
RESERVED0068       0x0068   RESERVED
RESERVED0069       0x0069   RESERVED
RESERVED006A       0x006A   RESERVED
RESERVED006B       0x006B   RESERVED
RESERVED006C       0x006C   RESERVED
RESERVED006D       0x006D   RESERVED
RESERVED006E       0x006E   RESERVED
RESERVED006F       0x006F   RESERVED
ADIC               0x0070   A-D conversion interrupt control register
ADIC.Bit3           3   Interrupt request bit
ADIC.Bit2           2   Interrupt priority level select bit 2
ADIC.Bit1           1   Interrupt priority level select bit 1
ADIC.Bit0           0   Interrupt priority level select bit 0
S0TIC              0x0071   UART0 transmit interrupt control register
S0TIC.Bit3           3   Interrupt request bit                
S0TIC.Bit2           2   Interrupt priority level select bit 2
S0TIC.Bit1           1   Interrupt priority level select bit 1
S0TIC.Bit0           0   Interrupt priority level select bit 0
S0RIC              0x0072   UART0 receive interrupt control register
S0RIC.Bit3           3   Interrupt request bit                
S0RIC.Bit2           2   Interrupt priority level select bit 2
S0RIC.Bit1           1   Interrupt priority level select bit 1
S0RIC.Bit0           0   Interrupt priority level select bit 0
S1TIC              0x0073   UART1 transmit interrupt control register
S1TIC.Bit3           3   Interrupt request bit                
S1TIC.Bit2           2   Interrupt priority level select bit 2
S1TIC.Bit1           1   Interrupt priority level select bit 1
S1TIC.Bit0           0   Interrupt priority level select bit 0
S1RIC              0x0074   UART1 receive interrupt control register
S1RIC.Bit3           3   Interrupt request bit                
S1RIC.Bit2           2   Interrupt priority level select bit 2
S1RIC.Bit1           1   Interrupt priority level select bit 1
S1RIC.Bit0           0   Interrupt priority level select bit 0
TA0IC              0x0075   Timer A0 interrupt control register
TA0IC.Bit3           3   Interrupt request bit                
TA0IC.Bit2           2   Interrupt priority level select bit 2
TA0IC.Bit1           1   Interrupt priority level select bit 1
TA0IC.Bit0           0   Interrupt priority level select bit 0
TA1IC              0x0076   Timer A1 interrupt control register
TA1IC.Bit3           3   Interrupt request bit                
TA1IC.Bit2           2   Interrupt priority level select bit 2
TA1IC.Bit1           1   Interrupt priority level select bit 1
TA1IC.Bit0           0   Interrupt priority level select bit 0
TA2IC              0x0077   Timer A2 interrupt control register
TA2IC.Bit3           3   Interrupt request bit                
TA2IC.Bit2           2   Interrupt priority level select bit 2
TA2IC.Bit1           1   Interrupt priority level select bit 1
TA2IC.Bit0           0   Interrupt priority level select bit 0
TA3IC              0x0078   Timer A3 interrupt control register
TA3IC.Bit3           3   Interrupt request bit                
TA3IC.Bit2           2   Interrupt priority level select bit 2
TA3IC.Bit1           1   Interrupt priority level select bit 1
TA3IC.Bit0           0   Interrupt priority level select bit 0
TA4IC              0x0079   Timer A4 interrupt control register
TA4IC.Bit3           3   Interrupt request bit                
TA4IC.Bit2           2   Interrupt priority level select bit 2
TA4IC.Bit1           1   Interrupt priority level select bit 1
TA4IC.Bit0           0   Interrupt priority level select bit 0
TB0IC              0x007A   Timer B0 interrupt control register
TB0IC.Bit3           3   Interrupt request bit                
TB0IC.Bit2           2   Interrupt priority level select bit 2
TB0IC.Bit1           1   Interrupt priority level select bit 1
TB0IC.Bit0           0   Interrupt priority level select bit 0
TB1IC              0x007B   Timer B1 interrupt control register
TB1IC.Bit3           3   Interrupt request bit                
TB1IC.Bit2           2   Interrupt priority level select bit 2
TB1IC.Bit1           1   Interrupt priority level select bit 1
TB1IC.Bit0           0   Interrupt priority level select bit 0
TB2IC              0x007C   Timer B2 interrupt control register
TB2IC.Bit3           3   Interrupt request bit                
TB2IC.Bit2           2   Interrupt priority level select bit 2
TB2IC.Bit1           1   Interrupt priority level select bit 1
TB2IC.Bit0           0   Interrupt priority level select bit 0
INT0IC             0x007D   INT0 interrupt control register
INT0IC.Bit5         5   Level sense/Edge sense select bit
INT0IC.Bit4         4   Polarity select bit
INT0IC.Bit3         3   Interrupt request bit
INT0IC.Bit2         2   Interrupt priority level select bit 2
INT0IC.Bit1         1   Interrupt priority level select bit 1
INT0IC.Bit0         0   Interrupt priority level select bit 0
INT1IC             0x007E   INT1 interrupt control register
INT1IC.Bit5         5   Level sense/Edge sense select bit
INT1IC.Bit4         4   Polarity select bit
INT1IC.Bit3         3   Interrupt request bit
INT1IC.Bit2         2   Interrupt priority level select bit 2
INT1IC.Bit1         1   Interrupt priority level select bit 1
INT1IC.Bit0         0   Interrupt priority level select bit 0
INT2IC             0x007F   INT2 interrupt control register
INT2IC.Bit5         5   Level sense/Edge sense select bit
INT2IC.Bit4         4   Polarity select bit
INT2IC.Bit3         3   Interrupt request bit
INT2IC.Bit2         2   Interrupt priority level select bit 2
INT2IC.Bit1         1   Interrupt priority level select bit 1
INT2IC.Bit0         0   Interrupt priority level select bit 0


.M37702M3BXXXFP
; http://www.mitsubishichips.com/Global/content/product/mcu/16bit/7700f/7700s/7702g/e7702um.pdf

; *** - собственные сокращения


; MEMORY MAP
area DATA FSR         0x0000:0x0080
area DATA RAM_        0x0080:0x0480   Internal RAM
area BSS  RESERVED    0x0480:0xA000
area DATA ROM_        0xA000:0xFFD6   Internal ROM
area DATA USER_VEC    0xFFD6:0x10000


; Interrupt and reset vector assignments
interrupt __RESET           0xFFFE   RESET
interrupt Zero_Div          0xFFFC   Zero division
interrupt BRK_              0xFFFA   BRK instruction
interrupt DBC_              0xFFF8   DBC
interrupt WATCDOG           0xFFF6   Watchdog timer
interrupt INT0_             0xFFF4   External interrupt due to INT0 pin input signal
interrupt INT1_             0xFFF2   External interrupt due to INT1 pin input signal
interrupt INT2_             0xFFF0   External interrupt due to INT2 pin input signal
interrupt Timer_A0          0xFFEE   Internal interrupt from Timer A0
interrupt Timer_A1          0xFFEC   Internal interrupt from Timer A1
interrupt Timer_A2          0xFFEA   Internal interrupt from Timer A2
interrupt Timer_A3          0xFFE8   Internal interrupt from Timer A3
interrupt Timer_A4          0xFFE6   Internal interrupt from Timer A4
interrupt Timer_B0          0xFFE4   Internal interrupt from Timer B0
interrupt Timer_B1          0xFFE2   Internal interrupt from Timer B1
interrupt Timer_B2          0xFFE0   Internal interrupt from Timer B2
interrupt UART0_receive     0xFFDE   Internal interrupt from UART0
interrupt UART0_transmit    0xFFDC   Internal interrupt from UART0
interrupt UART1_receive     0xFFDA   Internal interrupt from UART1
interrupt UART1_transmit    0xFFD8   Internal interrupt from UART1
interrupt A_D_conversion    0xFFD6   Internal interrupt from A-D converter


; INPUT/ OUTPUT PORTS
RESERVED0000       0x0000   RESERVED
RESERVED0001       0x0001   RESERVED
P0                 0x0002   Port P0 register
P0.P0_7             7   Port P07
P0.P0_6             6   Port P06
P0.P0_5             5   Port P05
P0.P0_4             4   Port P04
P0.P0_3             3   Port P03
P0.P0_2             2   Port P02
P0.P0_1             1   Port P01
P0.P0_0             0   Port P00
P1                 0x0003   Port P1 register
P1.P1_7             7   Port P17
P1.P1_6             6   Port P16
P1.P1_5             5   Port P15
P1.P1_4             4   Port P14
P1.P1_3             3   Port P13
P1.P1_2             2   Port P12
P1.P1_1             1   Port P11
P1.P1_0             0   Port P10
PD0                0x0004   Port P0 direction register
PD0.PD0_7           7   Port P07 direction bit
PD0.PD0_6           6   Port P06 direction bit
PD0.PD0_5           5   Port P05 direction bit
PD0.PD0_4           4   Port P04 direction bit
PD0.PD0_3           3   Port P03 direction bit
PD0.PD0_2           2   Port P02 direction bit
PD0.PD0_1           1   Port P01 direction bit
PD0.PD0_0           0   Port P00 direction bit
PD1                0x0005   Port P1 direction register
PD1.PD1_7           7   Port P17 direction bit
PD1.PD1_6           6   Port P16 direction bit
PD1.PD1_5           5   Port P15 direction bit
PD1.PD1_4           4   Port P14 direction bit
PD1.PD1_3           3   Port P13 direction bit
PD1.PD1_2           2   Port P12 direction bit
PD1.PD1_1           1   Port P11 direction bit
PD1.PD1_0           0   Port P10 direction bit
P2                 0x0006   Port P2 register
P2.P2_7             7   Port P27
P2.P2_6             6   Port P26
P2.P2_5             5   Port P25
P2.P2_4             4   Port P24
P2.P2_3             3   Port P23
P2.P2_2             2   Port P22
P2.P2_1             1   Port P21
P2.P2_0             0   Port P20
P3                 0x0007   Port P3 register
P3.P3_7             7   Port P37
P3.P3_6             6   Port P36
P3.P3_5             5   Port P35
P3.P3_4             4   Port P34
P3.P3_3             3   Port P33
P3.P3_2             2   Port P32
P3.P3_1             1   Port P31
P3.P3_0             0   Port P30
PD2                0x0008   Port P2 direction register
PD2.PD2_7           7   Port P27 direction bit
PD2.PD2_6           6   Port P26 direction bit
PD2.PD2_5           5   Port P25 direction bit
PD2.PD2_4           4   Port P24 direction bit
PD2.PD2_3           3   Port P23 direction bit
PD2.PD2_2           2   Port P22 direction bit
PD2.PD2_1           1   Port P21 direction bit
PD2.PD2_0           0   Port P20 direction bit
PD3                0x0009   Port P3 direction register
PD3.PD3_7           7   Port P37 direction bit
PD3.PD3_6           6   Port P36 direction bit
PD3.PD3_5           5   Port P35 direction bit
PD3.PD3_4           4   Port P34 direction bit
PD3.PD3_3           3   Port P33 direction bit
PD3.PD3_2           2   Port P32 direction bit
PD3.PD3_1           1   Port P31 direction bit
PD3.PD3_0           0   Port P30 direction bit
P4                 0x000A   Port P4 register
P4.P4_7             7   Port P47
P4.P4_6             6   Port P46
P4.P4_5             5   Port P45
P4.P4_4             4   Port P44
P4.P4_3             3   Port P43
P4.P4_2             2   Port P42
P4.P4_1             1   Port P41
P4.P4_0             0   Port P40
P5                 0x000B   Port P5 register
P5.P5_7             7   Port P57
P5.P5_6             6   Port P56
P5.P5_5             5   Port P55
P5.P5_4             4   Port P54
P5.P5_3             3   Port P53
P5.P5_2             2   Port P52
P5.P5_1             1   Port P51
P5.P5_0             0   Port P50
PD4                0x000C   Port P4 direction register
PD4.PD4_7           7   Port P47 direction bit
PD4.PD4_6           6   Port P46 direction bit
PD4.PD4_5           5   Port P45 direction bit
PD4.PD4_4           4   Port P44 direction bit
PD4.PD4_3           3   Port P43 direction bit
PD4.PD4_2           2   Port P42 direction bit
PD4.PD4_1           1   Port P41 direction bit
PD4.PD4_0           0   Port P40 direction bit
PD5                0x000D   Port P5 direction register
PD5.PD5_7           7   Port P57 direction bit
PD5.PD5_6           6   Port P56 direction bit
PD5.PD5_5           5   Port P55 direction bit
PD5.PD5_4           4   Port P54 direction bit
PD5.PD5_3           3   Port P53 direction bit
PD5.PD5_2           2   Port P52 direction bit
PD5.PD5_1           1   Port P51 direction bit
PD5.PD5_0           0   Port P50 direction bit
P6                 0x000E   Port P6 register
P6.P6_7             7   Port P67
P6.P6_6             6   Port P66
P6.P6_5             5   Port P65
P6.P6_4             4   Port P64
P6.P6_3             3   Port P63
P6.P6_2             2   Port P62
P6.P6_1             1   Port P61
P6.P6_0             0   Port P60
P7                 0x000F   Port P7 register
P7.P7_7             7   Port P77
P7.P7_6             6   Port P76
P7.P7_5             5   Port P75
P7.P7_4             4   Port P74
P7.P7_3             3   Port P73
P7.P7_2             2   Port P72
P7.P7_1             1   Port P71
P7.P7_0             0   Port P70
PD6                0x0010   Port P6 direction register
PD6.PD6_7           7   Port P67 direction bit
PD6.PD6_6           6   Port P66 direction bit
PD6.PD6_5           5   Port P65 direction bit
PD6.PD6_4           4   Port P64 direction bit
PD6.PD6_3           3   Port P63 direction bit
PD6.PD6_2           2   Port P62 direction bit
PD6.PD6_1           1   Port P61 direction bit
PD6.PD6_0           0   Port P60 direction bit
PD7                0x0011   Port P7 direction register
PD7.PD7_7           7   Port P77 direction bit
PD7.PD7_6           6   Port P76 direction bit
PD7.PD7_5           5   Port P75 direction bit
PD7.PD7_4           4   Port P74 direction bit
PD7.PD7_3           3   Port P73 direction bit
PD7.PD7_2           2   Port P72 direction bit
PD7.PD7_1           1   Port P71 direction bit
PD7.PD7_0           0   Port P70 direction bit
P8                 0x0012   Port P8 register
P8.P8_7             7   Port P87
P8.P8_6             6   Port P86
P8.P8_5             5   Port P85
P8.P8_4             4   Port P84
P8.P8_3             3   Port P83
P8.P8_2             2   Port P82
P8.P8_1             1   Port P81
P8.P8_0             0   Port P80
RESERVED0013       0x0013   RESERVED
PD8                0x0014   Port P8 direction register
PD8.PD8_7           7   Port P87 direction bit
PD8.PD8_6           6   Port P86 direction bit
PD8.PD8_5           5   Port P85 direction bit
PD8.PD8_4           4   Port P84 direction bit
PD8.PD8_3           3   Port P83 direction bit
PD8.PD8_2           2   Port P82 direction bit
PD8.PD8_1           1   Port P81 direction bit
PD8.PD8_0           0   Port P80 direction bit
RESERVED0015       0x0015   RESERVED
RESERVED0016       0x0016   RESERVED
RESERVED0017       0x0017   RESERVED
RESERVED0018       0x0018   RESERVED
RESERVED0019       0x0019   RESERVED
RESERVED001A       0x001A   RESERVED
RESERVED001B       0x001B   RESERVED
RESERVED001C       0x001C   RESERVED
RESERVED001D       0x001D   RESERVED
ADCON              0x001E   A-D control register
ADCON.Bit7          7   A-D conversion frequency select bit
ADCON.Bit6          6   A-D conversion start bit
ADCON.Bit5          5   Trigger select bit
ADCON.Bit4          4   A-D operation mode select bit 4
ADCON.Bit3          3   A-D operation mode select bit 3
ADCON.Bit2          2   Analog input select bit 2
ADCON.Bit1          1   Analog input select bit 1
ADCON.Bit0          0   Analog input select bit 0
A_D_SPSR           0x001F   A-D sweep pin select register (***)
A_D_SPSR.Bit1       1   A-D sweep pin select bit 1
A_D_SPSR.Bit0       0   A-D sweep pin select bit 0
AD0                0x0020   A-D register 0
AD0.Bit7            7   Reads an A-D conversion result bit 7
AD0.Bit6            6   Reads an A-D conversion result bit 6
AD0.Bit5            5   Reads an A-D conversion result bit 5
AD0.Bit4            4   Reads an A-D conversion result bit 4
AD0.Bit3            3   Reads an A-D conversion result bit 3
AD0.Bit2            2   Reads an A-D conversion result bit 2
AD0.Bit1            1   Reads an A-D conversion result bit 1
AD0.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0021       0x0021   RESERVED
AD1                0x0022   A-D register 1
AD1.Bit7            7   Reads an A-D conversion result bit 7
AD1.Bit6            6   Reads an A-D conversion result bit 6
AD1.Bit5            5   Reads an A-D conversion result bit 5
AD1.Bit4            4   Reads an A-D conversion result bit 4
AD1.Bit3            3   Reads an A-D conversion result bit 3
AD1.Bit2            2   Reads an A-D conversion result bit 2
AD1.Bit1            1   Reads an A-D conversion result bit 1
AD1.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0023       0x0023   RESERVED
AD2                0x0024   A-D register 2
AD2.Bit7            7   Reads an A-D conversion result bit 7
AD2.Bit6            6   Reads an A-D conversion result bit 6
AD2.Bit5            5   Reads an A-D conversion result bit 5
AD2.Bit4            4   Reads an A-D conversion result bit 4
AD2.Bit3            3   Reads an A-D conversion result bit 3
AD2.Bit2            2   Reads an A-D conversion result bit 2
AD2.Bit1            1   Reads an A-D conversion result bit 1
AD2.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0025       0x0025   RESERVED
AD3                0x0026   A-D register 3
AD3.Bit7            7   Reads an A-D conversion result bit 7
AD3.Bit6            6   Reads an A-D conversion result bit 6
AD3.Bit5            5   Reads an A-D conversion result bit 5
AD3.Bit4            4   Reads an A-D conversion result bit 4
AD3.Bit3            3   Reads an A-D conversion result bit 3
AD3.Bit2            2   Reads an A-D conversion result bit 2
AD3.Bit1            1   Reads an A-D conversion result bit 1
AD3.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0027       0x0027   RESERVED
AD4                0x0028   A-D register 4
AD4.Bit7            7   Reads an A-D conversion result bit 7
AD4.Bit6            6   Reads an A-D conversion result bit 6
AD4.Bit5            5   Reads an A-D conversion result bit 5
AD4.Bit4            4   Reads an A-D conversion result bit 4
AD4.Bit3            3   Reads an A-D conversion result bit 3
AD4.Bit2            2   Reads an A-D conversion result bit 2
AD4.Bit1            1   Reads an A-D conversion result bit 1
AD4.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0029       0x0029   RESERVED
AD5                0x002A   A-D register 5
AD5.Bit7            7   Reads an A-D conversion result bit 7
AD5.Bit6            6   Reads an A-D conversion result bit 6
AD5.Bit5            5   Reads an A-D conversion result bit 5
AD5.Bit4            4   Reads an A-D conversion result bit 4
AD5.Bit3            3   Reads an A-D conversion result bit 3
AD5.Bit2            2   Reads an A-D conversion result bit 2
AD5.Bit1            1   Reads an A-D conversion result bit 1
AD5.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002B       0x002B   RESERVED
AD6                0x002C   A-D register 6
AD6.Bit7            7   Reads an A-D conversion result bit 7
AD6.Bit6            6   Reads an A-D conversion result bit 6
AD6.Bit5            5   Reads an A-D conversion result bit 5
AD6.Bit4            4   Reads an A-D conversion result bit 4
AD6.Bit3            3   Reads an A-D conversion result bit 3
AD6.Bit2            2   Reads an A-D conversion result bit 2
AD6.Bit1            1   Reads an A-D conversion result bit 1
AD6.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002D       0x002D   RESERVED
AD7                0x002E   A-D register 7
AD7.Bit7            7   Reads an A-D conversion result bit 7
AD7.Bit6            6   Reads an A-D conversion result bit 6
AD7.Bit5            5   Reads an A-D conversion result bit 5
AD7.Bit4            4   Reads an A-D conversion result bit 4
AD7.Bit3            3   Reads an A-D conversion result bit 3
AD7.Bit2            2   Reads an A-D conversion result bit 2
AD7.Bit1            1   Reads an A-D conversion result bit 1
AD7.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002F       0x002F   RESERVED
U0MR               0x0030   UART0 transmit/receive mode register
U0MR.Bit7           7   Sleep select bit
U0MR.Bit6           6   Parity enable bit
U0MR.Bit5           5   Odd/Even parity select bit
U0MR.Bit4           4   Stop bit length select bit
U0MR.Bit3           3   Internal/External clock select bit
U0MR.Bit2           2   Serial I/O mode select bit 2
U0MR.Bit1           1   Serial I/O mode select bit 1
U0MR.Bit0           0   Serial I/O mode select bit 0
BRG0               0x0031   UART0 baud rate register (BRG0) (***)
U0TB               0x0032   UART0 transmit buffer register
U0C0               0x0034   UART0 transmit/receive control register 0
U0C0.Bit3           3   Transmit register empty flag
U0C0.Bit2           2   CTS/RTS select bit
U0C0.Bit1           1   BRG count source select bit 1
U0C0.Bit0           0   BRG count source select bit 0
U0C1               0x0035   UART0 transmit/receive control register 1
U0C1.Bit7           7   Error sum flag
U0C1.Bit6           6   Parity error flag
U0C1.Bit5           5   Framing error flag
U0C1.Bit4           4   Overrun error flag
U0C1.Bit3           3   Receive complete flag
U0C1.Bit2           2   Receive enable bit
U0C1.Bit1           1   Transmit buffer empty flag
U0C1.Bit0           0   Transmit enable bit
U0RB               0x0036   UART0 receive buffer register
U1MR               0x0038   UART1 transmit/receive mode register
U1MR.Bit7           7   Sleep select bit
U1MR.Bit6           6   Parity enable bit
U1MR.Bit5           5   Odd/Even parity select bit
U1MR.Bit4           4   Stop bit length select bit
U1MR.Bit3           3   Internal/External clock select bit
U1MR.Bit2           2   Serial I/O mode select bit 2
U1MR.Bit1           1   Serial I/O mode select bit 1
U1MR.Bit0           0   Serial I/O mode select bit 0
BRG1               0x0039   UART1 baud rate register (BRG1) (***)
U1TB               0x003A   UART1 transmit buffer register
U1C0               0x003C   UART1 transmit/receive control register 0
U1C0.Bit3           3   Transmit register empty flag
U1C0.Bit2           2   CTS/RTS select bit
U1C0.Bit1           1   BRG count source select bit 1
U1C0.Bit0           0   BRG count source select bit 0
U1C1               0x003D   UART1 transmit/receive control register 1
U1C1.Bit7           7   Error sum flag
U1C1.Bit6           6   Parity error flag
U1C1.Bit5           5   Framing error flag
U1C1.Bit4           4   Overrun error flag
U1C1.Bit3           3   Receive complete flag
U1C1.Bit2           2   Receive enable bit
U1C1.Bit1           1   Transmit buffer empty flag
U1C1.Bit0           0   Transmit enable bit
U1RB               0x003E   UART1 receive buffer register
CSREG              0x0040   Count start register (***)
CSREG.Bit7          7   Timer B2 count start bit
CSREG.Bit6          6   Timer B1 count start bit
CSREG.Bit5          5   Timer B0 count start bit
CSREG.Bit4          4   Timer A4 count start bit
CSREG.Bit3          3   Timer A3 count start bit
CSREG.Bit2          2   Timer A2 count start bit
CSREG.Bit1          1   Timer A1 count start bit
CSREG.Bit0          0   Timer A0 count start bit
RESERVED0041       0x0041   RESERVED
ONE_SSREG          0x0042   One-shot start register (***)
ONE_SSREG.Bit4      4   Timer A4 one-shot start bit
ONE_SSREG.Bit3      3   Timer A3 one-shot start bit
ONE_SSREG.Bit2      2   Timer A2 one-shot start bit
ONE_SSREG.Bit1      1   Timer A1 one-shot start bit
ONE_SSREG.Bit0      0   Timer A0 one-shot start bit
RESERVED0043       0x0043   RESERVED
UP_D_REG           0x0044   Up-down register (***)
UP_D_REG.Bit7       7   Timer A4 two-phase pulse signal processing select bit
UP_D_REG.Bit6       6   Timer A3 two-phase pulse signal processing select bit
UP_D_REG.Bit5       5   Timer A2 two-phase pulse signal processing select bit
UP_D_REG.Bit4       4   Timer A4 up-down bit
UP_D_REG.Bit3       3   Timer A3 up-down bit
UP_D_REG.Bit2       2   Timer A2 up-down bit
UP_D_REG.Bit1       1   Timer A1 up-down bit
UP_D_REG.Bit0       0   Timer A0 up-down bit
RESERVED0045       0x0045   RESERVED
TA0                0x0046   Timer A0 register
TA1                0x0048   Timer A1 register
TA2                0x004A   Timer A2 register
TA3                0x004C   Timer A3 register
TA4                0x004E   Timer A4 register
TB0                0x0050   Timer B0 register
TB1                0x0052   Timer B1 register
TB2                0x0054   Timer B2 register
TA0MR              0x0056   Timer A0 mode register
TA0MR.Bit7          7
TA0MR.Bit6          6
TA0MR.Bit5          5
TA0MR.Bit4          4
TA0MR.Bit3          3
TA0MR.Bit2          2
TA0MR.Bit1          1   Operating mode select bit 1
TA0MR.Bit0          0   Operating mode select bit 0
TA1MR              0x0057   Timer A1 mode register
TA1MR.Bit7          7
TA1MR.Bit6          6
TA1MR.Bit5          5
TA1MR.Bit4          4
TA1MR.Bit3          3
TA1MR.Bit2          2
TA1MR.Bit1          1   Operating mode select bit 1
TA1MR.Bit0          0   Operating mode select bit 0
TA2MR              0x0058   Timer A2 mode register
TA2MR.Bit7          7
TA2MR.Bit6          6
TA2MR.Bit5          5
TA2MR.Bit4          4
TA2MR.Bit3          3
TA2MR.Bit2          2
TA2MR.Bit1          1   Operating mode select bit 1
TA2MR.Bit0          0   Operating mode select bit 0
TA3MR              0x0059   Timer A3 mode register
TA3MR.Bit7          7
TA3MR.Bit6          6
TA3MR.Bit5          5
TA3MR.Bit4          4
TA3MR.Bit3          3
TA3MR.Bit2          2
TA3MR.Bit1          1   Operating mode select bit 1
TA3MR.Bit0          0   Operating mode select bit 0
TA4MR              0x005A   Timer A4 mode register
TA4MR.Bit7          7
TA4MR.Bit6          6
TA4MR.Bit5          5
TA4MR.Bit4          4
TA4MR.Bit3          3
TA4MR.Bit2          2
TA4MR.Bit1          1   Operating mode select bit 1
TA4MR.Bit0          0   Operating mode select bit 0
TB0MR              0x005B   Timer B0 mode register
TB0MR.Bit7          7
TB0MR.Bit6          6
TB0MR.Bit5          5
TB0MR.Bit3          3
TB0MR.Bit2          2
TB0MR.Bit1          1   Operating mode select bit 1
TB0MR.Bit0          0   Operating mode select bit 0
TB1MR              0x005C   Timer B1 mode register
TB1MR.Bit7          7
TB1MR.Bit6          6
TB1MR.Bit5          5
TB1MR.Bit3          3
TB1MR.Bit2          2
TB1MR.Bit1          1   Operating mode select bit 1
TB1MR.Bit0          0   Operating mode select bit 0
TB2MR              0x005D   Timer B2 mode register
TB2MR.Bit7          7
TB2MR.Bit6          6
TB2MR.Bit5          5
TB2MR.Bit3          3
TB2MR.Bit2          2
TB2MR.Bit1          1   Operating mode select bit 1
TB2MR.Bit0          0   Operating mode select bit 0
PM                 0x005E   Processor mode register
PM.Bit7             7   Clock 1 output select bit
PM.Bit5             5   Interrupt priority detection time select bit 5
PM.Bit4             4   Interrupt priority detection time select bit 4
PM.Bit3             3   Software reset bit
PM.Bit2             2   Wait bit
PM.Bit1             1   Processor mode bit 1
PM.Bit0             0   Processor mode bit 0
RESERVED005F       0x005F   RESERVED
WDT                0x0060   Watchdog timer register (***)
WDTFS              0x0061   Watchdog timer frequency select register (***)
WDTFS.Bit0          0   Watchdog timer frequency select bit
RESERVED0062       0x0062   RESERVED
RESERVED0063       0x0063   RESERVED
RESERVED0064       0x0064   RESERVED
RESERVED0065       0x0065   RESERVED
RESERVED0066       0x0066   RESERVED
RESERVED0067       0x0067   RESERVED
RESERVED0068       0x0068   RESERVED
RESERVED0069       0x0069   RESERVED
RESERVED006A       0x006A   RESERVED
RESERVED006B       0x006B   RESERVED
RESERVED006C       0x006C   RESERVED
RESERVED006D       0x006D   RESERVED
RESERVED006E       0x006E   RESERVED
RESERVED006F       0x006F   RESERVED
ADIC               0x0070   A-D conversion interrupt control register
ADIC.Bit3           3   Interrupt request bit
ADIC.Bit2           2   Interrupt priority level select bit 2
ADIC.Bit1           1   Interrupt priority level select bit 1
ADIC.Bit0           0   Interrupt priority level select bit 0
S0TIC              0x0071   UART0 transmit interrupt control register
S0TIC.Bit3           3   Interrupt request bit                
S0TIC.Bit2           2   Interrupt priority level select bit 2
S0TIC.Bit1           1   Interrupt priority level select bit 1
S0TIC.Bit0           0   Interrupt priority level select bit 0
S0RIC              0x0072   UART0 receive interrupt control register
S0RIC.Bit3           3   Interrupt request bit                
S0RIC.Bit2           2   Interrupt priority level select bit 2
S0RIC.Bit1           1   Interrupt priority level select bit 1
S0RIC.Bit0           0   Interrupt priority level select bit 0
S1TIC              0x0073   UART1 transmit interrupt control register
S1TIC.Bit3           3   Interrupt request bit                
S1TIC.Bit2           2   Interrupt priority level select bit 2
S1TIC.Bit1           1   Interrupt priority level select bit 1
S1TIC.Bit0           0   Interrupt priority level select bit 0
S1RIC              0x0074   UART1 receive interrupt control register
S1RIC.Bit3           3   Interrupt request bit                
S1RIC.Bit2           2   Interrupt priority level select bit 2
S1RIC.Bit1           1   Interrupt priority level select bit 1
S1RIC.Bit0           0   Interrupt priority level select bit 0
TA0IC              0x0075   Timer A0 interrupt control register
TA0IC.Bit3           3   Interrupt request bit                
TA0IC.Bit2           2   Interrupt priority level select bit 2
TA0IC.Bit1           1   Interrupt priority level select bit 1
TA0IC.Bit0           0   Interrupt priority level select bit 0
TA1IC              0x0076   Timer A1 interrupt control register
TA1IC.Bit3           3   Interrupt request bit                
TA1IC.Bit2           2   Interrupt priority level select bit 2
TA1IC.Bit1           1   Interrupt priority level select bit 1
TA1IC.Bit0           0   Interrupt priority level select bit 0
TA2IC              0x0077   Timer A2 interrupt control register
TA2IC.Bit3           3   Interrupt request bit                
TA2IC.Bit2           2   Interrupt priority level select bit 2
TA2IC.Bit1           1   Interrupt priority level select bit 1
TA2IC.Bit0           0   Interrupt priority level select bit 0
TA3IC              0x0078   Timer A3 interrupt control register
TA3IC.Bit3           3   Interrupt request bit                
TA3IC.Bit2           2   Interrupt priority level select bit 2
TA3IC.Bit1           1   Interrupt priority level select bit 1
TA3IC.Bit0           0   Interrupt priority level select bit 0
TA4IC              0x0079   Timer A4 interrupt control register
TA4IC.Bit3           3   Interrupt request bit                
TA4IC.Bit2           2   Interrupt priority level select bit 2
TA4IC.Bit1           1   Interrupt priority level select bit 1
TA4IC.Bit0           0   Interrupt priority level select bit 0
TB0IC              0x007A   Timer B0 interrupt control register
TB0IC.Bit3           3   Interrupt request bit                
TB0IC.Bit2           2   Interrupt priority level select bit 2
TB0IC.Bit1           1   Interrupt priority level select bit 1
TB0IC.Bit0           0   Interrupt priority level select bit 0
TB1IC              0x007B   Timer B1 interrupt control register
TB1IC.Bit3           3   Interrupt request bit                
TB1IC.Bit2           2   Interrupt priority level select bit 2
TB1IC.Bit1           1   Interrupt priority level select bit 1
TB1IC.Bit0           0   Interrupt priority level select bit 0
TB2IC              0x007C   Timer B2 interrupt control register
TB2IC.Bit3           3   Interrupt request bit                
TB2IC.Bit2           2   Interrupt priority level select bit 2
TB2IC.Bit1           1   Interrupt priority level select bit 1
TB2IC.Bit0           0   Interrupt priority level select bit 0
INT0IC             0x007D   INT0 interrupt control register
INT0IC.Bit5         5   Level sense/Edge sense select bit
INT0IC.Bit4         4   Polarity select bit
INT0IC.Bit3         3   Interrupt request bit
INT0IC.Bit2         2   Interrupt priority level select bit 2
INT0IC.Bit1         1   Interrupt priority level select bit 1
INT0IC.Bit0         0   Interrupt priority level select bit 0
INT1IC             0x007E   INT1 interrupt control register
INT1IC.Bit5         5   Level sense/Edge sense select bit
INT1IC.Bit4         4   Polarity select bit
INT1IC.Bit3         3   Interrupt request bit
INT1IC.Bit2         2   Interrupt priority level select bit 2
INT1IC.Bit1         1   Interrupt priority level select bit 1
INT1IC.Bit0         0   Interrupt priority level select bit 0
INT2IC             0x007F   INT2 interrupt control register
INT2IC.Bit5         5   Level sense/Edge sense select bit
INT2IC.Bit4         4   Polarity select bit
INT2IC.Bit3         3   Interrupt request bit
INT2IC.Bit2         2   Interrupt priority level select bit 2
INT2IC.Bit1         1   Interrupt priority level select bit 1
INT2IC.Bit0         0   Interrupt priority level select bit 0


.M37702M4BXXXFP
; http://www.mitsubishichips.com/Global/content/product/mcu/16bit/7700f/7700s/7702g/e7702um.pdf

; *** - собственные сокращения


; MEMORY MAP
area DATA FSR         0x0000:0x0080
area DATA RAM_        0x0080:0x0880   Internal RAM
area BSS  RESERVED    0x0880:0x8000
area DATA ROM_        0x8000:0xFFD6   Internal ROM
area DATA USER_VEC    0xFFD6:0x10000


; Interrupt and reset vector assignments
interrupt __RESET           0xFFFE   RESET
interrupt Zero_Div          0xFFFC   Zero division
interrupt BRK_              0xFFFA   BRK instruction
interrupt DBC_              0xFFF8   DBC
interrupt WATCDOG           0xFFF6   Watchdog timer
interrupt INT0_             0xFFF4   External interrupt due to INT0 pin input signal
interrupt INT1_             0xFFF2   External interrupt due to INT1 pin input signal
interrupt INT2_             0xFFF0   External interrupt due to INT2 pin input signal
interrupt Timer_A0          0xFFEE   Internal interrupt from Timer A0
interrupt Timer_A1          0xFFEC   Internal interrupt from Timer A1
interrupt Timer_A2          0xFFEA   Internal interrupt from Timer A2
interrupt Timer_A3          0xFFE8   Internal interrupt from Timer A3
interrupt Timer_A4          0xFFE6   Internal interrupt from Timer A4
interrupt Timer_B0          0xFFE4   Internal interrupt from Timer B0
interrupt Timer_B1          0xFFE2   Internal interrupt from Timer B1
interrupt Timer_B2          0xFFE0   Internal interrupt from Timer B2
interrupt UART0_receive     0xFFDE   Internal interrupt from UART0
interrupt UART0_transmit    0xFFDC   Internal interrupt from UART0
interrupt UART1_receive     0xFFDA   Internal interrupt from UART1
interrupt UART1_transmit    0xFFD8   Internal interrupt from UART1
interrupt A_D_conversion    0xFFD6   Internal interrupt from A-D converter


; INPUT/ OUTPUT PORTS
RESERVED0000       0x0000   RESERVED
RESERVED0001       0x0001   RESERVED
P0                 0x0002   Port P0 register
P0.P0_7             7   Port P07
P0.P0_6             6   Port P06
P0.P0_5             5   Port P05
P0.P0_4             4   Port P04
P0.P0_3             3   Port P03
P0.P0_2             2   Port P02
P0.P0_1             1   Port P01
P0.P0_0             0   Port P00
P1                 0x0003   Port P1 register
P1.P1_7             7   Port P17
P1.P1_6             6   Port P16
P1.P1_5             5   Port P15
P1.P1_4             4   Port P14
P1.P1_3             3   Port P13
P1.P1_2             2   Port P12
P1.P1_1             1   Port P11
P1.P1_0             0   Port P10
PD0                0x0004   Port P0 direction register
PD0.PD0_7           7   Port P07 direction bit
PD0.PD0_6           6   Port P06 direction bit
PD0.PD0_5           5   Port P05 direction bit
PD0.PD0_4           4   Port P04 direction bit
PD0.PD0_3           3   Port P03 direction bit
PD0.PD0_2           2   Port P02 direction bit
PD0.PD0_1           1   Port P01 direction bit
PD0.PD0_0           0   Port P00 direction bit
PD1                0x0005   Port P1 direction register
PD1.PD1_7           7   Port P17 direction bit
PD1.PD1_6           6   Port P16 direction bit
PD1.PD1_5           5   Port P15 direction bit
PD1.PD1_4           4   Port P14 direction bit
PD1.PD1_3           3   Port P13 direction bit
PD1.PD1_2           2   Port P12 direction bit
PD1.PD1_1           1   Port P11 direction bit
PD1.PD1_0           0   Port P10 direction bit
P2                 0x0006   Port P2 register
P2.P2_7             7   Port P27
P2.P2_6             6   Port P26
P2.P2_5             5   Port P25
P2.P2_4             4   Port P24
P2.P2_3             3   Port P23
P2.P2_2             2   Port P22
P2.P2_1             1   Port P21
P2.P2_0             0   Port P20
P3                 0x0007   Port P3 register
P3.P3_7             7   Port P37
P3.P3_6             6   Port P36
P3.P3_5             5   Port P35
P3.P3_4             4   Port P34
P3.P3_3             3   Port P33
P3.P3_2             2   Port P32
P3.P3_1             1   Port P31
P3.P3_0             0   Port P30
PD2                0x0008   Port P2 direction register
PD2.PD2_7           7   Port P27 direction bit
PD2.PD2_6           6   Port P26 direction bit
PD2.PD2_5           5   Port P25 direction bit
PD2.PD2_4           4   Port P24 direction bit
PD2.PD2_3           3   Port P23 direction bit
PD2.PD2_2           2   Port P22 direction bit
PD2.PD2_1           1   Port P21 direction bit
PD2.PD2_0           0   Port P20 direction bit
PD3                0x0009   Port P3 direction register
PD3.PD3_7           7   Port P37 direction bit
PD3.PD3_6           6   Port P36 direction bit
PD3.PD3_5           5   Port P35 direction bit
PD3.PD3_4           4   Port P34 direction bit
PD3.PD3_3           3   Port P33 direction bit
PD3.PD3_2           2   Port P32 direction bit
PD3.PD3_1           1   Port P31 direction bit
PD3.PD3_0           0   Port P30 direction bit
P4                 0x000A   Port P4 register
P4.P4_7             7   Port P47
P4.P4_6             6   Port P46
P4.P4_5             5   Port P45
P4.P4_4             4   Port P44
P4.P4_3             3   Port P43
P4.P4_2             2   Port P42
P4.P4_1             1   Port P41
P4.P4_0             0   Port P40
P5                 0x000B   Port P5 register
P5.P5_7             7   Port P57
P5.P5_6             6   Port P56
P5.P5_5             5   Port P55
P5.P5_4             4   Port P54
P5.P5_3             3   Port P53
P5.P5_2             2   Port P52
P5.P5_1             1   Port P51
P5.P5_0             0   Port P50
PD4                0x000C   Port P4 direction register
PD4.PD4_7           7   Port P47 direction bit
PD4.PD4_6           6   Port P46 direction bit
PD4.PD4_5           5   Port P45 direction bit
PD4.PD4_4           4   Port P44 direction bit
PD4.PD4_3           3   Port P43 direction bit
PD4.PD4_2           2   Port P42 direction bit
PD4.PD4_1           1   Port P41 direction bit
PD4.PD4_0           0   Port P40 direction bit
PD5                0x000D   Port P5 direction register
PD5.PD5_7           7   Port P57 direction bit
PD5.PD5_6           6   Port P56 direction bit
PD5.PD5_5           5   Port P55 direction bit
PD5.PD5_4           4   Port P54 direction bit
PD5.PD5_3           3   Port P53 direction bit
PD5.PD5_2           2   Port P52 direction bit
PD5.PD5_1           1   Port P51 direction bit
PD5.PD5_0           0   Port P50 direction bit
P6                 0x000E   Port P6 register
P6.P6_7             7   Port P67
P6.P6_6             6   Port P66
P6.P6_5             5   Port P65
P6.P6_4             4   Port P64
P6.P6_3             3   Port P63
P6.P6_2             2   Port P62
P6.P6_1             1   Port P61
P6.P6_0             0   Port P60
P7                 0x000F   Port P7 register
P7.P7_7             7   Port P77
P7.P7_6             6   Port P76
P7.P7_5             5   Port P75
P7.P7_4             4   Port P74
P7.P7_3             3   Port P73
P7.P7_2             2   Port P72
P7.P7_1             1   Port P71
P7.P7_0             0   Port P70
PD6                0x0010   Port P6 direction register
PD6.PD6_7           7   Port P67 direction bit
PD6.PD6_6           6   Port P66 direction bit
PD6.PD6_5           5   Port P65 direction bit
PD6.PD6_4           4   Port P64 direction bit
PD6.PD6_3           3   Port P63 direction bit
PD6.PD6_2           2   Port P62 direction bit
PD6.PD6_1           1   Port P61 direction bit
PD6.PD6_0           0   Port P60 direction bit
PD7                0x0011   Port P7 direction register
PD7.PD7_7           7   Port P77 direction bit
PD7.PD7_6           6   Port P76 direction bit
PD7.PD7_5           5   Port P75 direction bit
PD7.PD7_4           4   Port P74 direction bit
PD7.PD7_3           3   Port P73 direction bit
PD7.PD7_2           2   Port P72 direction bit
PD7.PD7_1           1   Port P71 direction bit
PD7.PD7_0           0   Port P70 direction bit
P8                 0x0012   Port P8 register
P8.P8_7             7   Port P87
P8.P8_6             6   Port P86
P8.P8_5             5   Port P85
P8.P8_4             4   Port P84
P8.P8_3             3   Port P83
P8.P8_2             2   Port P82
P8.P8_1             1   Port P81
P8.P8_0             0   Port P80
RESERVED0013       0x0013   RESERVED
PD8                0x0014   Port P8 direction register
PD8.PD8_7           7   Port P87 direction bit
PD8.PD8_6           6   Port P86 direction bit
PD8.PD8_5           5   Port P85 direction bit
PD8.PD8_4           4   Port P84 direction bit
PD8.PD8_3           3   Port P83 direction bit
PD8.PD8_2           2   Port P82 direction bit
PD8.PD8_1           1   Port P81 direction bit
PD8.PD8_0           0   Port P80 direction bit
RESERVED0015       0x0015   RESERVED
RESERVED0016       0x0016   RESERVED
RESERVED0017       0x0017   RESERVED
RESERVED0018       0x0018   RESERVED
RESERVED0019       0x0019   RESERVED
RESERVED001A       0x001A   RESERVED
RESERVED001B       0x001B   RESERVED
RESERVED001C       0x001C   RESERVED
RESERVED001D       0x001D   RESERVED
ADCON              0x001E   A-D control register
ADCON.Bit7          7   A-D conversion frequency select bit
ADCON.Bit6          6   A-D conversion start bit
ADCON.Bit5          5   Trigger select bit
ADCON.Bit4          4   A-D operation mode select bit 4
ADCON.Bit3          3   A-D operation mode select bit 3
ADCON.Bit2          2   Analog input select bit 2
ADCON.Bit1          1   Analog input select bit 1
ADCON.Bit0          0   Analog input select bit 0
A_D_SPSR           0x001F   A-D sweep pin select register (***)
A_D_SPSR.Bit1       1   A-D sweep pin select bit 1
A_D_SPSR.Bit0       0   A-D sweep pin select bit 0
AD0                0x0020   A-D register 0
AD0.Bit7            7   Reads an A-D conversion result bit 7
AD0.Bit6            6   Reads an A-D conversion result bit 6
AD0.Bit5            5   Reads an A-D conversion result bit 5
AD0.Bit4            4   Reads an A-D conversion result bit 4
AD0.Bit3            3   Reads an A-D conversion result bit 3
AD0.Bit2            2   Reads an A-D conversion result bit 2
AD0.Bit1            1   Reads an A-D conversion result bit 1
AD0.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0021       0x0021   RESERVED
AD1                0x0022   A-D register 1
AD1.Bit7            7   Reads an A-D conversion result bit 7
AD1.Bit6            6   Reads an A-D conversion result bit 6
AD1.Bit5            5   Reads an A-D conversion result bit 5
AD1.Bit4            4   Reads an A-D conversion result bit 4
AD1.Bit3            3   Reads an A-D conversion result bit 3
AD1.Bit2            2   Reads an A-D conversion result bit 2
AD1.Bit1            1   Reads an A-D conversion result bit 1
AD1.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0023       0x0023   RESERVED
AD2                0x0024   A-D register 2
AD2.Bit7            7   Reads an A-D conversion result bit 7
AD2.Bit6            6   Reads an A-D conversion result bit 6
AD2.Bit5            5   Reads an A-D conversion result bit 5
AD2.Bit4            4   Reads an A-D conversion result bit 4
AD2.Bit3            3   Reads an A-D conversion result bit 3
AD2.Bit2            2   Reads an A-D conversion result bit 2
AD2.Bit1            1   Reads an A-D conversion result bit 1
AD2.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0025       0x0025   RESERVED
AD3                0x0026   A-D register 3
AD3.Bit7            7   Reads an A-D conversion result bit 7
AD3.Bit6            6   Reads an A-D conversion result bit 6
AD3.Bit5            5   Reads an A-D conversion result bit 5
AD3.Bit4            4   Reads an A-D conversion result bit 4
AD3.Bit3            3   Reads an A-D conversion result bit 3
AD3.Bit2            2   Reads an A-D conversion result bit 2
AD3.Bit1            1   Reads an A-D conversion result bit 1
AD3.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0027       0x0027   RESERVED
AD4                0x0028   A-D register 4
AD4.Bit7            7   Reads an A-D conversion result bit 7
AD4.Bit6            6   Reads an A-D conversion result bit 6
AD4.Bit5            5   Reads an A-D conversion result bit 5
AD4.Bit4            4   Reads an A-D conversion result bit 4
AD4.Bit3            3   Reads an A-D conversion result bit 3
AD4.Bit2            2   Reads an A-D conversion result bit 2
AD4.Bit1            1   Reads an A-D conversion result bit 1
AD4.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0029       0x0029   RESERVED
AD5                0x002A   A-D register 5
AD5.Bit7            7   Reads an A-D conversion result bit 7
AD5.Bit6            6   Reads an A-D conversion result bit 6
AD5.Bit5            5   Reads an A-D conversion result bit 5
AD5.Bit4            4   Reads an A-D conversion result bit 4
AD5.Bit3            3   Reads an A-D conversion result bit 3
AD5.Bit2            2   Reads an A-D conversion result bit 2
AD5.Bit1            1   Reads an A-D conversion result bit 1
AD5.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002B       0x002B   RESERVED
AD6                0x002C   A-D register 6
AD6.Bit7            7   Reads an A-D conversion result bit 7
AD6.Bit6            6   Reads an A-D conversion result bit 6
AD6.Bit5            5   Reads an A-D conversion result bit 5
AD6.Bit4            4   Reads an A-D conversion result bit 4
AD6.Bit3            3   Reads an A-D conversion result bit 3
AD6.Bit2            2   Reads an A-D conversion result bit 2
AD6.Bit1            1   Reads an A-D conversion result bit 1
AD6.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002D       0x002D   RESERVED
AD7                0x002E   A-D register 7
AD7.Bit7            7   Reads an A-D conversion result bit 7
AD7.Bit6            6   Reads an A-D conversion result bit 6
AD7.Bit5            5   Reads an A-D conversion result bit 5
AD7.Bit4            4   Reads an A-D conversion result bit 4
AD7.Bit3            3   Reads an A-D conversion result bit 3
AD7.Bit2            2   Reads an A-D conversion result bit 2
AD7.Bit1            1   Reads an A-D conversion result bit 1
AD7.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002F       0x002F   RESERVED
U0MR               0x0030   UART0 transmit/receive mode register
U0MR.Bit7           7   Sleep select bit
U0MR.Bit6           6   Parity enable bit
U0MR.Bit5           5   Odd/Even parity select bit
U0MR.Bit4           4   Stop bit length select bit
U0MR.Bit3           3   Internal/External clock select bit
U0MR.Bit2           2   Serial I/O mode select bit 2
U0MR.Bit1           1   Serial I/O mode select bit 1
U0MR.Bit0           0   Serial I/O mode select bit 0
BRG0               0x0031   UART0 baud rate register (BRG0) (***)
U0TB               0x0032   UART0 transmit buffer register
U0C0               0x0034   UART0 transmit/receive control register 0
U0C0.Bit3           3   Transmit register empty flag
U0C0.Bit2           2   CTS/RTS select bit
U0C0.Bit1           1   BRG count source select bit 1
U0C0.Bit0           0   BRG count source select bit 0
U0C1               0x0035   UART0 transmit/receive control register 1
U0C1.Bit7           7   Error sum flag
U0C1.Bit6           6   Parity error flag
U0C1.Bit5           5   Framing error flag
U0C1.Bit4           4   Overrun error flag
U0C1.Bit3           3   Receive complete flag
U0C1.Bit2           2   Receive enable bit
U0C1.Bit1           1   Transmit buffer empty flag
U0C1.Bit0           0   Transmit enable bit
U0RB               0x0036   UART0 receive buffer register
U1MR               0x0038   UART1 transmit/receive mode register
U1MR.Bit7           7   Sleep select bit
U1MR.Bit6           6   Parity enable bit
U1MR.Bit5           5   Odd/Even parity select bit
U1MR.Bit4           4   Stop bit length select bit
U1MR.Bit3           3   Internal/External clock select bit
U1MR.Bit2           2   Serial I/O mode select bit 2
U1MR.Bit1           1   Serial I/O mode select bit 1
U1MR.Bit0           0   Serial I/O mode select bit 0
BRG1               0x0039   UART1 baud rate register (BRG1) (***)
U1TB               0x003A   UART1 transmit buffer register
U1C0               0x003C   UART1 transmit/receive control register 0
U1C0.Bit3           3   Transmit register empty flag
U1C0.Bit2           2   CTS/RTS select bit
U1C0.Bit1           1   BRG count source select bit 1
U1C0.Bit0           0   BRG count source select bit 0
U1C1               0x003D   UART1 transmit/receive control register 1
U1C1.Bit7           7   Error sum flag
U1C1.Bit6           6   Parity error flag
U1C1.Bit5           5   Framing error flag
U1C1.Bit4           4   Overrun error flag
U1C1.Bit3           3   Receive complete flag
U1C1.Bit2           2   Receive enable bit
U1C1.Bit1           1   Transmit buffer empty flag
U1C1.Bit0           0   Transmit enable bit
U1RB               0x003E   UART1 receive buffer register
CSREG              0x0040   Count start register (***)
CSREG.Bit7          7   Timer B2 count start bit
CSREG.Bit6          6   Timer B1 count start bit
CSREG.Bit5          5   Timer B0 count start bit
CSREG.Bit4          4   Timer A4 count start bit
CSREG.Bit3          3   Timer A3 count start bit
CSREG.Bit2          2   Timer A2 count start bit
CSREG.Bit1          1   Timer A1 count start bit
CSREG.Bit0          0   Timer A0 count start bit
RESERVED0041       0x0041   RESERVED
ONE_SSREG          0x0042   One-shot start register (***)
ONE_SSREG.Bit4      4   Timer A4 one-shot start bit
ONE_SSREG.Bit3      3   Timer A3 one-shot start bit
ONE_SSREG.Bit2      2   Timer A2 one-shot start bit
ONE_SSREG.Bit1      1   Timer A1 one-shot start bit
ONE_SSREG.Bit0      0   Timer A0 one-shot start bit
RESERVED0043       0x0043   RESERVED
UP_D_REG           0x0044   Up-down register (***)
UP_D_REG.Bit7       7   Timer A4 two-phase pulse signal processing select bit
UP_D_REG.Bit6       6   Timer A3 two-phase pulse signal processing select bit
UP_D_REG.Bit5       5   Timer A2 two-phase pulse signal processing select bit
UP_D_REG.Bit4       4   Timer A4 up-down bit
UP_D_REG.Bit3       3   Timer A3 up-down bit
UP_D_REG.Bit2       2   Timer A2 up-down bit
UP_D_REG.Bit1       1   Timer A1 up-down bit
UP_D_REG.Bit0       0   Timer A0 up-down bit
RESERVED0045       0x0045   RESERVED
TA0                0x0046   Timer A0 register
TA1                0x0048   Timer A1 register
TA2                0x004A   Timer A2 register
TA3                0x004C   Timer A3 register
TA4                0x004E   Timer A4 register
TB0                0x0050   Timer B0 register
TB1                0x0052   Timer B1 register
TB2                0x0054   Timer B2 register
TA0MR              0x0056   Timer A0 mode register
TA0MR.Bit7          7
TA0MR.Bit6          6
TA0MR.Bit5          5
TA0MR.Bit4          4
TA0MR.Bit3          3
TA0MR.Bit2          2
TA0MR.Bit1          1   Operating mode select bit 1
TA0MR.Bit0          0   Operating mode select bit 0
TA1MR              0x0057   Timer A1 mode register
TA1MR.Bit7          7
TA1MR.Bit6          6
TA1MR.Bit5          5
TA1MR.Bit4          4
TA1MR.Bit3          3
TA1MR.Bit2          2
TA1MR.Bit1          1   Operating mode select bit 1
TA1MR.Bit0          0   Operating mode select bit 0
TA2MR              0x0058   Timer A2 mode register
TA2MR.Bit7          7
TA2MR.Bit6          6
TA2MR.Bit5          5
TA2MR.Bit4          4
TA2MR.Bit3          3
TA2MR.Bit2          2
TA2MR.Bit1          1   Operating mode select bit 1
TA2MR.Bit0          0   Operating mode select bit 0
TA3MR              0x0059   Timer A3 mode register
TA3MR.Bit7          7
TA3MR.Bit6          6
TA3MR.Bit5          5
TA3MR.Bit4          4
TA3MR.Bit3          3
TA3MR.Bit2          2
TA3MR.Bit1          1   Operating mode select bit 1
TA3MR.Bit0          0   Operating mode select bit 0
TA4MR              0x005A   Timer A4 mode register
TA4MR.Bit7          7
TA4MR.Bit6          6
TA4MR.Bit5          5
TA4MR.Bit4          4
TA4MR.Bit3          3
TA4MR.Bit2          2
TA4MR.Bit1          1   Operating mode select bit 1
TA4MR.Bit0          0   Operating mode select bit 0
TB0MR              0x005B   Timer B0 mode register
TB0MR.Bit7          7
TB0MR.Bit6          6
TB0MR.Bit5          5
TB0MR.Bit3          3
TB0MR.Bit2          2
TB0MR.Bit1          1   Operating mode select bit 1
TB0MR.Bit0          0   Operating mode select bit 0
TB1MR              0x005C   Timer B1 mode register
TB1MR.Bit7          7
TB1MR.Bit6          6
TB1MR.Bit5          5
TB1MR.Bit3          3
TB1MR.Bit2          2
TB1MR.Bit1          1   Operating mode select bit 1
TB1MR.Bit0          0   Operating mode select bit 0
TB2MR              0x005D   Timer B2 mode register
TB2MR.Bit7          7
TB2MR.Bit6          6
TB2MR.Bit5          5
TB2MR.Bit3          3
TB2MR.Bit2          2
TB2MR.Bit1          1   Operating mode select bit 1
TB2MR.Bit0          0   Operating mode select bit 0
PM                 0x005E   Processor mode register
PM.Bit7             7   Clock 1 output select bit
PM.Bit5             5   Interrupt priority detection time select bit 5
PM.Bit4             4   Interrupt priority detection time select bit 4
PM.Bit3             3   Software reset bit
PM.Bit2             2   Wait bit
PM.Bit1             1   Processor mode bit 1
PM.Bit0             0   Processor mode bit 0
RESERVED005F       0x005F   RESERVED
WDT                0x0060   Watchdog timer register (***)
WDTFS              0x0061   Watchdog timer frequency select register (***)
WDTFS.Bit0          0   Watchdog timer frequency select bit
RESERVED0062       0x0062   RESERVED
RESERVED0063       0x0063   RESERVED
RESERVED0064       0x0064   RESERVED
RESERVED0065       0x0065   RESERVED
RESERVED0066       0x0066   RESERVED
RESERVED0067       0x0067   RESERVED
RESERVED0068       0x0068   RESERVED
RESERVED0069       0x0069   RESERVED
RESERVED006A       0x006A   RESERVED
RESERVED006B       0x006B   RESERVED
RESERVED006C       0x006C   RESERVED
RESERVED006D       0x006D   RESERVED
RESERVED006E       0x006E   RESERVED
RESERVED006F       0x006F   RESERVED
ADIC               0x0070   A-D conversion interrupt control register
ADIC.Bit3           3   Interrupt request bit
ADIC.Bit2           2   Interrupt priority level select bit 2
ADIC.Bit1           1   Interrupt priority level select bit 1
ADIC.Bit0           0   Interrupt priority level select bit 0
S0TIC              0x0071   UART0 transmit interrupt control register
S0TIC.Bit3           3   Interrupt request bit                
S0TIC.Bit2           2   Interrupt priority level select bit 2
S0TIC.Bit1           1   Interrupt priority level select bit 1
S0TIC.Bit0           0   Interrupt priority level select bit 0
S0RIC              0x0072   UART0 receive interrupt control register
S0RIC.Bit3           3   Interrupt request bit                
S0RIC.Bit2           2   Interrupt priority level select bit 2
S0RIC.Bit1           1   Interrupt priority level select bit 1
S0RIC.Bit0           0   Interrupt priority level select bit 0
S1TIC              0x0073   UART1 transmit interrupt control register
S1TIC.Bit3           3   Interrupt request bit                
S1TIC.Bit2           2   Interrupt priority level select bit 2
S1TIC.Bit1           1   Interrupt priority level select bit 1
S1TIC.Bit0           0   Interrupt priority level select bit 0
S1RIC              0x0074   UART1 receive interrupt control register
S1RIC.Bit3           3   Interrupt request bit                
S1RIC.Bit2           2   Interrupt priority level select bit 2
S1RIC.Bit1           1   Interrupt priority level select bit 1
S1RIC.Bit0           0   Interrupt priority level select bit 0
TA0IC              0x0075   Timer A0 interrupt control register
TA0IC.Bit3           3   Interrupt request bit                
TA0IC.Bit2           2   Interrupt priority level select bit 2
TA0IC.Bit1           1   Interrupt priority level select bit 1
TA0IC.Bit0           0   Interrupt priority level select bit 0
TA1IC              0x0076   Timer A1 interrupt control register
TA1IC.Bit3           3   Interrupt request bit                
TA1IC.Bit2           2   Interrupt priority level select bit 2
TA1IC.Bit1           1   Interrupt priority level select bit 1
TA1IC.Bit0           0   Interrupt priority level select bit 0
TA2IC              0x0077   Timer A2 interrupt control register
TA2IC.Bit3           3   Interrupt request bit                
TA2IC.Bit2           2   Interrupt priority level select bit 2
TA2IC.Bit1           1   Interrupt priority level select bit 1
TA2IC.Bit0           0   Interrupt priority level select bit 0
TA3IC              0x0078   Timer A3 interrupt control register
TA3IC.Bit3           3   Interrupt request bit                
TA3IC.Bit2           2   Interrupt priority level select bit 2
TA3IC.Bit1           1   Interrupt priority level select bit 1
TA3IC.Bit0           0   Interrupt priority level select bit 0
TA4IC              0x0079   Timer A4 interrupt control register
TA4IC.Bit3           3   Interrupt request bit                
TA4IC.Bit2           2   Interrupt priority level select bit 2
TA4IC.Bit1           1   Interrupt priority level select bit 1
TA4IC.Bit0           0   Interrupt priority level select bit 0
TB0IC              0x007A   Timer B0 interrupt control register
TB0IC.Bit3           3   Interrupt request bit                
TB0IC.Bit2           2   Interrupt priority level select bit 2
TB0IC.Bit1           1   Interrupt priority level select bit 1
TB0IC.Bit0           0   Interrupt priority level select bit 0
TB1IC              0x007B   Timer B1 interrupt control register
TB1IC.Bit3           3   Interrupt request bit                
TB1IC.Bit2           2   Interrupt priority level select bit 2
TB1IC.Bit1           1   Interrupt priority level select bit 1
TB1IC.Bit0           0   Interrupt priority level select bit 0
TB2IC              0x007C   Timer B2 interrupt control register
TB2IC.Bit3           3   Interrupt request bit                
TB2IC.Bit2           2   Interrupt priority level select bit 2
TB2IC.Bit1           1   Interrupt priority level select bit 1
TB2IC.Bit0           0   Interrupt priority level select bit 0
INT0IC             0x007D   INT0 interrupt control register
INT0IC.Bit5         5   Level sense/Edge sense select bit
INT0IC.Bit4         4   Polarity select bit
INT0IC.Bit3         3   Interrupt request bit
INT0IC.Bit2         2   Interrupt priority level select bit 2
INT0IC.Bit1         1   Interrupt priority level select bit 1
INT0IC.Bit0         0   Interrupt priority level select bit 0
INT1IC             0x007E   INT1 interrupt control register
INT1IC.Bit5         5   Level sense/Edge sense select bit
INT1IC.Bit4         4   Polarity select bit
INT1IC.Bit3         3   Interrupt request bit
INT1IC.Bit2         2   Interrupt priority level select bit 2
INT1IC.Bit1         1   Interrupt priority level select bit 1
INT1IC.Bit0         0   Interrupt priority level select bit 0
INT2IC             0x007F   INT2 interrupt control register
INT2IC.Bit5         5   Level sense/Edge sense select bit
INT2IC.Bit4         4   Polarity select bit
INT2IC.Bit3         3   Interrupt request bit
INT2IC.Bit2         2   Interrupt priority level select bit 2
INT2IC.Bit1         1   Interrupt priority level select bit 1
INT2IC.Bit0         0   Interrupt priority level select bit 0


.M37702M6BXXXFP
; http://www.mitsubishichips.com/Global/content/product/mcu/16bit/7700f/7700s/7702g/e7702um.pdf

; *** - собственные сокращения


; MEMORY MAP
area DATA FSR         0x0000:0x0080
area DATA RAM_        0x0080:0x0880   Internal RAM
area BSS  RESERVED    0x0880:0x4000
area DATA ROM_        0x4000:0xFFD6   Internal ROM
area DATA USER_VEC    0xFFD6:0x10000


; Interrupt and reset vector assignments
interrupt __RESET           0xFFFE   RESET
interrupt Zero_Div          0xFFFC   Zero division
interrupt BRK_              0xFFFA   BRK instruction
interrupt DBC_              0xFFF8   DBC
interrupt WATCDOG           0xFFF6   Watchdog timer
interrupt INT0_             0xFFF4   External interrupt due to INT0 pin input signal
interrupt INT1_             0xFFF2   External interrupt due to INT1 pin input signal
interrupt INT2_             0xFFF0   External interrupt due to INT2 pin input signal
interrupt Timer_A0          0xFFEE   Internal interrupt from Timer A0
interrupt Timer_A1          0xFFEC   Internal interrupt from Timer A1
interrupt Timer_A2          0xFFEA   Internal interrupt from Timer A2
interrupt Timer_A3          0xFFE8   Internal interrupt from Timer A3
interrupt Timer_A4          0xFFE6   Internal interrupt from Timer A4
interrupt Timer_B0          0xFFE4   Internal interrupt from Timer B0
interrupt Timer_B1          0xFFE2   Internal interrupt from Timer B1
interrupt Timer_B2          0xFFE0   Internal interrupt from Timer B2
interrupt UART0_receive     0xFFDE   Internal interrupt from UART0
interrupt UART0_transmit    0xFFDC   Internal interrupt from UART0
interrupt UART1_receive     0xFFDA   Internal interrupt from UART1
interrupt UART1_transmit    0xFFD8   Internal interrupt from UART1
interrupt A_D_conversion    0xFFD6   Internal interrupt from A-D converter


; INPUT/ OUTPUT PORTS
RESERVED0000       0x0000   RESERVED
RESERVED0001       0x0001   RESERVED
P0                 0x0002   Port P0 register
P0.P0_7             7   Port P07
P0.P0_6             6   Port P06
P0.P0_5             5   Port P05
P0.P0_4             4   Port P04
P0.P0_3             3   Port P03
P0.P0_2             2   Port P02
P0.P0_1             1   Port P01
P0.P0_0             0   Port P00
P1                 0x0003   Port P1 register
P1.P1_7             7   Port P17
P1.P1_6             6   Port P16
P1.P1_5             5   Port P15
P1.P1_4             4   Port P14
P1.P1_3             3   Port P13
P1.P1_2             2   Port P12
P1.P1_1             1   Port P11
P1.P1_0             0   Port P10
PD0                0x0004   Port P0 direction register
PD0.PD0_7           7   Port P07 direction bit
PD0.PD0_6           6   Port P06 direction bit
PD0.PD0_5           5   Port P05 direction bit
PD0.PD0_4           4   Port P04 direction bit
PD0.PD0_3           3   Port P03 direction bit
PD0.PD0_2           2   Port P02 direction bit
PD0.PD0_1           1   Port P01 direction bit
PD0.PD0_0           0   Port P00 direction bit
PD1                0x0005   Port P1 direction register
PD1.PD1_7           7   Port P17 direction bit
PD1.PD1_6           6   Port P16 direction bit
PD1.PD1_5           5   Port P15 direction bit
PD1.PD1_4           4   Port P14 direction bit
PD1.PD1_3           3   Port P13 direction bit
PD1.PD1_2           2   Port P12 direction bit
PD1.PD1_1           1   Port P11 direction bit
PD1.PD1_0           0   Port P10 direction bit
P2                 0x0006   Port P2 register
P2.P2_7             7   Port P27
P2.P2_6             6   Port P26
P2.P2_5             5   Port P25
P2.P2_4             4   Port P24
P2.P2_3             3   Port P23
P2.P2_2             2   Port P22
P2.P2_1             1   Port P21
P2.P2_0             0   Port P20
P3                 0x0007   Port P3 register
P3.P3_7             7   Port P37
P3.P3_6             6   Port P36
P3.P3_5             5   Port P35
P3.P3_4             4   Port P34
P3.P3_3             3   Port P33
P3.P3_2             2   Port P32
P3.P3_1             1   Port P31
P3.P3_0             0   Port P30
PD2                0x0008   Port P2 direction register
PD2.PD2_7           7   Port P27 direction bit
PD2.PD2_6           6   Port P26 direction bit
PD2.PD2_5           5   Port P25 direction bit
PD2.PD2_4           4   Port P24 direction bit
PD2.PD2_3           3   Port P23 direction bit
PD2.PD2_2           2   Port P22 direction bit
PD2.PD2_1           1   Port P21 direction bit
PD2.PD2_0           0   Port P20 direction bit
PD3                0x0009   Port P3 direction register
PD3.PD3_7           7   Port P37 direction bit
PD3.PD3_6           6   Port P36 direction bit
PD3.PD3_5           5   Port P35 direction bit
PD3.PD3_4           4   Port P34 direction bit
PD3.PD3_3           3   Port P33 direction bit
PD3.PD3_2           2   Port P32 direction bit
PD3.PD3_1           1   Port P31 direction bit
PD3.PD3_0           0   Port P30 direction bit
P4                 0x000A   Port P4 register
P4.P4_7             7   Port P47
P4.P4_6             6   Port P46
P4.P4_5             5   Port P45
P4.P4_4             4   Port P44
P4.P4_3             3   Port P43
P4.P4_2             2   Port P42
P4.P4_1             1   Port P41
P4.P4_0             0   Port P40
P5                 0x000B   Port P5 register
P5.P5_7             7   Port P57
P5.P5_6             6   Port P56
P5.P5_5             5   Port P55
P5.P5_4             4   Port P54
P5.P5_3             3   Port P53
P5.P5_2             2   Port P52
P5.P5_1             1   Port P51
P5.P5_0             0   Port P50
PD4                0x000C   Port P4 direction register
PD4.PD4_7           7   Port P47 direction bit
PD4.PD4_6           6   Port P46 direction bit
PD4.PD4_5           5   Port P45 direction bit
PD4.PD4_4           4   Port P44 direction bit
PD4.PD4_3           3   Port P43 direction bit
PD4.PD4_2           2   Port P42 direction bit
PD4.PD4_1           1   Port P41 direction bit
PD4.PD4_0           0   Port P40 direction bit
PD5                0x000D   Port P5 direction register
PD5.PD5_7           7   Port P57 direction bit
PD5.PD5_6           6   Port P56 direction bit
PD5.PD5_5           5   Port P55 direction bit
PD5.PD5_4           4   Port P54 direction bit
PD5.PD5_3           3   Port P53 direction bit
PD5.PD5_2           2   Port P52 direction bit
PD5.PD5_1           1   Port P51 direction bit
PD5.PD5_0           0   Port P50 direction bit
P6                 0x000E   Port P6 register
P6.P6_7             7   Port P67
P6.P6_6             6   Port P66
P6.P6_5             5   Port P65
P6.P6_4             4   Port P64
P6.P6_3             3   Port P63
P6.P6_2             2   Port P62
P6.P6_1             1   Port P61
P6.P6_0             0   Port P60
P7                 0x000F   Port P7 register
P7.P7_7             7   Port P77
P7.P7_6             6   Port P76
P7.P7_5             5   Port P75
P7.P7_4             4   Port P74
P7.P7_3             3   Port P73
P7.P7_2             2   Port P72
P7.P7_1             1   Port P71
P7.P7_0             0   Port P70
PD6                0x0010   Port P6 direction register
PD6.PD6_7           7   Port P67 direction bit
PD6.PD6_6           6   Port P66 direction bit
PD6.PD6_5           5   Port P65 direction bit
PD6.PD6_4           4   Port P64 direction bit
PD6.PD6_3           3   Port P63 direction bit
PD6.PD6_2           2   Port P62 direction bit
PD6.PD6_1           1   Port P61 direction bit
PD6.PD6_0           0   Port P60 direction bit
PD7                0x0011   Port P7 direction register
PD7.PD7_7           7   Port P77 direction bit
PD7.PD7_6           6   Port P76 direction bit
PD7.PD7_5           5   Port P75 direction bit
PD7.PD7_4           4   Port P74 direction bit
PD7.PD7_3           3   Port P73 direction bit
PD7.PD7_2           2   Port P72 direction bit
PD7.PD7_1           1   Port P71 direction bit
PD7.PD7_0           0   Port P70 direction bit
P8                 0x0012   Port P8 register
P8.P8_7             7   Port P87
P8.P8_6             6   Port P86
P8.P8_5             5   Port P85
P8.P8_4             4   Port P84
P8.P8_3             3   Port P83
P8.P8_2             2   Port P82
P8.P8_1             1   Port P81
P8.P8_0             0   Port P80
RESERVED0013       0x0013   RESERVED
PD8                0x0014   Port P8 direction register
PD8.PD8_7           7   Port P87 direction bit
PD8.PD8_6           6   Port P86 direction bit
PD8.PD8_5           5   Port P85 direction bit
PD8.PD8_4           4   Port P84 direction bit
PD8.PD8_3           3   Port P83 direction bit
PD8.PD8_2           2   Port P82 direction bit
PD8.PD8_1           1   Port P81 direction bit
PD8.PD8_0           0   Port P80 direction bit
RESERVED0015       0x0015   RESERVED
RESERVED0016       0x0016   RESERVED
RESERVED0017       0x0017   RESERVED
RESERVED0018       0x0018   RESERVED
RESERVED0019       0x0019   RESERVED
RESERVED001A       0x001A   RESERVED
RESERVED001B       0x001B   RESERVED
RESERVED001C       0x001C   RESERVED
RESERVED001D       0x001D   RESERVED
ADCON              0x001E   A-D control register
ADCON.Bit7          7   A-D conversion frequency select bit
ADCON.Bit6          6   A-D conversion start bit
ADCON.Bit5          5   Trigger select bit
ADCON.Bit4          4   A-D operation mode select bit 4
ADCON.Bit3          3   A-D operation mode select bit 3
ADCON.Bit2          2   Analog input select bit 2
ADCON.Bit1          1   Analog input select bit 1
ADCON.Bit0          0   Analog input select bit 0
A_D_SPSR           0x001F   A-D sweep pin select register (***)
A_D_SPSR.Bit1       1   A-D sweep pin select bit 1
A_D_SPSR.Bit0       0   A-D sweep pin select bit 0
AD0                0x0020   A-D register 0
AD0.Bit7            7   Reads an A-D conversion result bit 7
AD0.Bit6            6   Reads an A-D conversion result bit 6
AD0.Bit5            5   Reads an A-D conversion result bit 5
AD0.Bit4            4   Reads an A-D conversion result bit 4
AD0.Bit3            3   Reads an A-D conversion result bit 3
AD0.Bit2            2   Reads an A-D conversion result bit 2
AD0.Bit1            1   Reads an A-D conversion result bit 1
AD0.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0021       0x0021   RESERVED
AD1                0x0022   A-D register 1
AD1.Bit7            7   Reads an A-D conversion result bit 7
AD1.Bit6            6   Reads an A-D conversion result bit 6
AD1.Bit5            5   Reads an A-D conversion result bit 5
AD1.Bit4            4   Reads an A-D conversion result bit 4
AD1.Bit3            3   Reads an A-D conversion result bit 3
AD1.Bit2            2   Reads an A-D conversion result bit 2
AD1.Bit1            1   Reads an A-D conversion result bit 1
AD1.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0023       0x0023   RESERVED
AD2                0x0024   A-D register 2
AD2.Bit7            7   Reads an A-D conversion result bit 7
AD2.Bit6            6   Reads an A-D conversion result bit 6
AD2.Bit5            5   Reads an A-D conversion result bit 5
AD2.Bit4            4   Reads an A-D conversion result bit 4
AD2.Bit3            3   Reads an A-D conversion result bit 3
AD2.Bit2            2   Reads an A-D conversion result bit 2
AD2.Bit1            1   Reads an A-D conversion result bit 1
AD2.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0025       0x0025   RESERVED
AD3                0x0026   A-D register 3
AD3.Bit7            7   Reads an A-D conversion result bit 7
AD3.Bit6            6   Reads an A-D conversion result bit 6
AD3.Bit5            5   Reads an A-D conversion result bit 5
AD3.Bit4            4   Reads an A-D conversion result bit 4
AD3.Bit3            3   Reads an A-D conversion result bit 3
AD3.Bit2            2   Reads an A-D conversion result bit 2
AD3.Bit1            1   Reads an A-D conversion result bit 1
AD3.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0027       0x0027   RESERVED
AD4                0x0028   A-D register 4
AD4.Bit7            7   Reads an A-D conversion result bit 7
AD4.Bit6            6   Reads an A-D conversion result bit 6
AD4.Bit5            5   Reads an A-D conversion result bit 5
AD4.Bit4            4   Reads an A-D conversion result bit 4
AD4.Bit3            3   Reads an A-D conversion result bit 3
AD4.Bit2            2   Reads an A-D conversion result bit 2
AD4.Bit1            1   Reads an A-D conversion result bit 1
AD4.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0029       0x0029   RESERVED
AD5                0x002A   A-D register 5
AD5.Bit7            7   Reads an A-D conversion result bit 7
AD5.Bit6            6   Reads an A-D conversion result bit 6
AD5.Bit5            5   Reads an A-D conversion result bit 5
AD5.Bit4            4   Reads an A-D conversion result bit 4
AD5.Bit3            3   Reads an A-D conversion result bit 3
AD5.Bit2            2   Reads an A-D conversion result bit 2
AD5.Bit1            1   Reads an A-D conversion result bit 1
AD5.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002B       0x002B   RESERVED
AD6                0x002C   A-D register 6
AD6.Bit7            7   Reads an A-D conversion result bit 7
AD6.Bit6            6   Reads an A-D conversion result bit 6
AD6.Bit5            5   Reads an A-D conversion result bit 5
AD6.Bit4            4   Reads an A-D conversion result bit 4
AD6.Bit3            3   Reads an A-D conversion result bit 3
AD6.Bit2            2   Reads an A-D conversion result bit 2
AD6.Bit1            1   Reads an A-D conversion result bit 1
AD6.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002D       0x002D   RESERVED
AD7                0x002E   A-D register 7
AD7.Bit7            7   Reads an A-D conversion result bit 7
AD7.Bit6            6   Reads an A-D conversion result bit 6
AD7.Bit5            5   Reads an A-D conversion result bit 5
AD7.Bit4            4   Reads an A-D conversion result bit 4
AD7.Bit3            3   Reads an A-D conversion result bit 3
AD7.Bit2            2   Reads an A-D conversion result bit 2
AD7.Bit1            1   Reads an A-D conversion result bit 1
AD7.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002F       0x002F   RESERVED
U0MR               0x0030   UART0 transmit/receive mode register
U0MR.Bit7           7   Sleep select bit
U0MR.Bit6           6   Parity enable bit
U0MR.Bit5           5   Odd/Even parity select bit
U0MR.Bit4           4   Stop bit length select bit
U0MR.Bit3           3   Internal/External clock select bit
U0MR.Bit2           2   Serial I/O mode select bit 2
U0MR.Bit1           1   Serial I/O mode select bit 1
U0MR.Bit0           0   Serial I/O mode select bit 0
BRG0               0x0031   UART0 baud rate register (BRG0) (***)
U0TB               0x0032   UART0 transmit buffer register
U0C0               0x0034   UART0 transmit/receive control register 0
U0C0.Bit3           3   Transmit register empty flag
U0C0.Bit2           2   CTS/RTS select bit
U0C0.Bit1           1   BRG count source select bit 1
U0C0.Bit0           0   BRG count source select bit 0
U0C1               0x0035   UART0 transmit/receive control register 1
U0C1.Bit7           7   Error sum flag
U0C1.Bit6           6   Parity error flag
U0C1.Bit5           5   Framing error flag
U0C1.Bit4           4   Overrun error flag
U0C1.Bit3           3   Receive complete flag
U0C1.Bit2           2   Receive enable bit
U0C1.Bit1           1   Transmit buffer empty flag
U0C1.Bit0           0   Transmit enable bit
U0RB               0x0036   UART0 receive buffer register
U1MR               0x0038   UART1 transmit/receive mode register
U1MR.Bit7           7   Sleep select bit
U1MR.Bit6           6   Parity enable bit
U1MR.Bit5           5   Odd/Even parity select bit
U1MR.Bit4           4   Stop bit length select bit
U1MR.Bit3           3   Internal/External clock select bit
U1MR.Bit2           2   Serial I/O mode select bit 2
U1MR.Bit1           1   Serial I/O mode select bit 1
U1MR.Bit0           0   Serial I/O mode select bit 0
BRG1               0x0039   UART1 baud rate register (BRG1) (***)
U1TB               0x003A   UART1 transmit buffer register
U1C0               0x003C   UART1 transmit/receive control register 0
U1C0.Bit3           3   Transmit register empty flag
U1C0.Bit2           2   CTS/RTS select bit
U1C0.Bit1           1   BRG count source select bit 1
U1C0.Bit0           0   BRG count source select bit 0
U1C1               0x003D   UART1 transmit/receive control register 1
U1C1.Bit7           7   Error sum flag
U1C1.Bit6           6   Parity error flag
U1C1.Bit5           5   Framing error flag
U1C1.Bit4           4   Overrun error flag
U1C1.Bit3           3   Receive complete flag
U1C1.Bit2           2   Receive enable bit
U1C1.Bit1           1   Transmit buffer empty flag
U1C1.Bit0           0   Transmit enable bit
U1RB               0x003E   UART1 receive buffer register
CSREG              0x0040   Count start register (***)
CSREG.Bit7          7   Timer B2 count start bit
CSREG.Bit6          6   Timer B1 count start bit
CSREG.Bit5          5   Timer B0 count start bit
CSREG.Bit4          4   Timer A4 count start bit
CSREG.Bit3          3   Timer A3 count start bit
CSREG.Bit2          2   Timer A2 count start bit
CSREG.Bit1          1   Timer A1 count start bit
CSREG.Bit0          0   Timer A0 count start bit
RESERVED0041       0x0041   RESERVED
ONE_SSREG          0x0042   One-shot start register (***)
ONE_SSREG.Bit4      4   Timer A4 one-shot start bit
ONE_SSREG.Bit3      3   Timer A3 one-shot start bit
ONE_SSREG.Bit2      2   Timer A2 one-shot start bit
ONE_SSREG.Bit1      1   Timer A1 one-shot start bit
ONE_SSREG.Bit0      0   Timer A0 one-shot start bit
RESERVED0043       0x0043   RESERVED
UP_D_REG           0x0044   Up-down register (***)
UP_D_REG.Bit7       7   Timer A4 two-phase pulse signal processing select bit
UP_D_REG.Bit6       6   Timer A3 two-phase pulse signal processing select bit
UP_D_REG.Bit5       5   Timer A2 two-phase pulse signal processing select bit
UP_D_REG.Bit4       4   Timer A4 up-down bit
UP_D_REG.Bit3       3   Timer A3 up-down bit
UP_D_REG.Bit2       2   Timer A2 up-down bit
UP_D_REG.Bit1       1   Timer A1 up-down bit
UP_D_REG.Bit0       0   Timer A0 up-down bit
RESERVED0045       0x0045   RESERVED
TA0                0x0046   Timer A0 register
TA1                0x0048   Timer A1 register
TA2                0x004A   Timer A2 register
TA3                0x004C   Timer A3 register
TA4                0x004E   Timer A4 register
TB0                0x0050   Timer B0 register
TB1                0x0052   Timer B1 register
TB2                0x0054   Timer B2 register
TA0MR              0x0056   Timer A0 mode register
TA0MR.Bit7          7
TA0MR.Bit6          6
TA0MR.Bit5          5
TA0MR.Bit4          4
TA0MR.Bit3          3
TA0MR.Bit2          2
TA0MR.Bit1          1   Operating mode select bit 1
TA0MR.Bit0          0   Operating mode select bit 0
TA1MR              0x0057   Timer A1 mode register
TA1MR.Bit7          7
TA1MR.Bit6          6
TA1MR.Bit5          5
TA1MR.Bit4          4
TA1MR.Bit3          3
TA1MR.Bit2          2
TA1MR.Bit1          1   Operating mode select bit 1
TA1MR.Bit0          0   Operating mode select bit 0
TA2MR              0x0058   Timer A2 mode register
TA2MR.Bit7          7
TA2MR.Bit6          6
TA2MR.Bit5          5
TA2MR.Bit4          4
TA2MR.Bit3          3
TA2MR.Bit2          2
TA2MR.Bit1          1   Operating mode select bit 1
TA2MR.Bit0          0   Operating mode select bit 0
TA3MR              0x0059   Timer A3 mode register
TA3MR.Bit7          7
TA3MR.Bit6          6
TA3MR.Bit5          5
TA3MR.Bit4          4
TA3MR.Bit3          3
TA3MR.Bit2          2
TA3MR.Bit1          1   Operating mode select bit 1
TA3MR.Bit0          0   Operating mode select bit 0
TA4MR              0x005A   Timer A4 mode register
TA4MR.Bit7          7
TA4MR.Bit6          6
TA4MR.Bit5          5
TA4MR.Bit4          4
TA4MR.Bit3          3
TA4MR.Bit2          2
TA4MR.Bit1          1   Operating mode select bit 1
TA4MR.Bit0          0   Operating mode select bit 0
TB0MR              0x005B   Timer B0 mode register
TB0MR.Bit7          7
TB0MR.Bit6          6
TB0MR.Bit5          5
TB0MR.Bit3          3
TB0MR.Bit2          2
TB0MR.Bit1          1   Operating mode select bit 1
TB0MR.Bit0          0   Operating mode select bit 0
TB1MR              0x005C   Timer B1 mode register
TB1MR.Bit7          7
TB1MR.Bit6          6
TB1MR.Bit5          5
TB1MR.Bit3          3
TB1MR.Bit2          2
TB1MR.Bit1          1   Operating mode select bit 1
TB1MR.Bit0          0   Operating mode select bit 0
TB2MR              0x005D   Timer B2 mode register
TB2MR.Bit7          7
TB2MR.Bit6          6
TB2MR.Bit5          5
TB2MR.Bit3          3
TB2MR.Bit2          2
TB2MR.Bit1          1   Operating mode select bit 1
TB2MR.Bit0          0   Operating mode select bit 0
PM                 0x005E   Processor mode register
PM.Bit7             7   Clock 1 output select bit
PM.Bit5             5   Interrupt priority detection time select bit 5
PM.Bit4             4   Interrupt priority detection time select bit 4
PM.Bit3             3   Software reset bit
PM.Bit2             2   Wait bit
PM.Bit1             1   Processor mode bit 1
PM.Bit0             0   Processor mode bit 0
RESERVED005F       0x005F   RESERVED
WDT                0x0060   Watchdog timer register (***)
WDTFS              0x0061   Watchdog timer frequency select register (***)
WDTFS.Bit0          0   Watchdog timer frequency select bit
RESERVED0062       0x0062   RESERVED
RESERVED0063       0x0063   RESERVED
RESERVED0064       0x0064   RESERVED
RESERVED0065       0x0065   RESERVED
RESERVED0066       0x0066   RESERVED
RESERVED0067       0x0067   RESERVED
RESERVED0068       0x0068   RESERVED
RESERVED0069       0x0069   RESERVED
RESERVED006A       0x006A   RESERVED
RESERVED006B       0x006B   RESERVED
RESERVED006C       0x006C   RESERVED
RESERVED006D       0x006D   RESERVED
RESERVED006E       0x006E   RESERVED
RESERVED006F       0x006F   RESERVED
ADIC               0x0070   A-D conversion interrupt control register
ADIC.Bit3           3   Interrupt request bit
ADIC.Bit2           2   Interrupt priority level select bit 2
ADIC.Bit1           1   Interrupt priority level select bit 1
ADIC.Bit0           0   Interrupt priority level select bit 0
S0TIC              0x0071   UART0 transmit interrupt control register
S0TIC.Bit3           3   Interrupt request bit                
S0TIC.Bit2           2   Interrupt priority level select bit 2
S0TIC.Bit1           1   Interrupt priority level select bit 1
S0TIC.Bit0           0   Interrupt priority level select bit 0
S0RIC              0x0072   UART0 receive interrupt control register
S0RIC.Bit3           3   Interrupt request bit                
S0RIC.Bit2           2   Interrupt priority level select bit 2
S0RIC.Bit1           1   Interrupt priority level select bit 1
S0RIC.Bit0           0   Interrupt priority level select bit 0
S1TIC              0x0073   UART1 transmit interrupt control register
S1TIC.Bit3           3   Interrupt request bit                
S1TIC.Bit2           2   Interrupt priority level select bit 2
S1TIC.Bit1           1   Interrupt priority level select bit 1
S1TIC.Bit0           0   Interrupt priority level select bit 0
S1RIC              0x0074   UART1 receive interrupt control register
S1RIC.Bit3           3   Interrupt request bit                
S1RIC.Bit2           2   Interrupt priority level select bit 2
S1RIC.Bit1           1   Interrupt priority level select bit 1
S1RIC.Bit0           0   Interrupt priority level select bit 0
TA0IC              0x0075   Timer A0 interrupt control register
TA0IC.Bit3           3   Interrupt request bit                
TA0IC.Bit2           2   Interrupt priority level select bit 2
TA0IC.Bit1           1   Interrupt priority level select bit 1
TA0IC.Bit0           0   Interrupt priority level select bit 0
TA1IC              0x0076   Timer A1 interrupt control register
TA1IC.Bit3           3   Interrupt request bit                
TA1IC.Bit2           2   Interrupt priority level select bit 2
TA1IC.Bit1           1   Interrupt priority level select bit 1
TA1IC.Bit0           0   Interrupt priority level select bit 0
TA2IC              0x0077   Timer A2 interrupt control register
TA2IC.Bit3           3   Interrupt request bit                
TA2IC.Bit2           2   Interrupt priority level select bit 2
TA2IC.Bit1           1   Interrupt priority level select bit 1
TA2IC.Bit0           0   Interrupt priority level select bit 0
TA3IC              0x0078   Timer A3 interrupt control register
TA3IC.Bit3           3   Interrupt request bit                
TA3IC.Bit2           2   Interrupt priority level select bit 2
TA3IC.Bit1           1   Interrupt priority level select bit 1
TA3IC.Bit0           0   Interrupt priority level select bit 0
TA4IC              0x0079   Timer A4 interrupt control register
TA4IC.Bit3           3   Interrupt request bit                
TA4IC.Bit2           2   Interrupt priority level select bit 2
TA4IC.Bit1           1   Interrupt priority level select bit 1
TA4IC.Bit0           0   Interrupt priority level select bit 0
TB0IC              0x007A   Timer B0 interrupt control register
TB0IC.Bit3           3   Interrupt request bit                
TB0IC.Bit2           2   Interrupt priority level select bit 2
TB0IC.Bit1           1   Interrupt priority level select bit 1
TB0IC.Bit0           0   Interrupt priority level select bit 0
TB1IC              0x007B   Timer B1 interrupt control register
TB1IC.Bit3           3   Interrupt request bit                
TB1IC.Bit2           2   Interrupt priority level select bit 2
TB1IC.Bit1           1   Interrupt priority level select bit 1
TB1IC.Bit0           0   Interrupt priority level select bit 0
TB2IC              0x007C   Timer B2 interrupt control register
TB2IC.Bit3           3   Interrupt request bit                
TB2IC.Bit2           2   Interrupt priority level select bit 2
TB2IC.Bit1           1   Interrupt priority level select bit 1
TB2IC.Bit0           0   Interrupt priority level select bit 0
INT0IC             0x007D   INT0 interrupt control register
INT0IC.Bit5         5   Level sense/Edge sense select bit
INT0IC.Bit4         4   Polarity select bit
INT0IC.Bit3         3   Interrupt request bit
INT0IC.Bit2         2   Interrupt priority level select bit 2
INT0IC.Bit1         1   Interrupt priority level select bit 1
INT0IC.Bit0         0   Interrupt priority level select bit 0
INT1IC             0x007E   INT1 interrupt control register
INT1IC.Bit5         5   Level sense/Edge sense select bit
INT1IC.Bit4         4   Polarity select bit
INT1IC.Bit3         3   Interrupt request bit
INT1IC.Bit2         2   Interrupt priority level select bit 2
INT1IC.Bit1         1   Interrupt priority level select bit 1
INT1IC.Bit0         0   Interrupt priority level select bit 0
INT2IC             0x007F   INT2 interrupt control register
INT2IC.Bit5         5   Level sense/Edge sense select bit
INT2IC.Bit4         4   Polarity select bit
INT2IC.Bit3         3   Interrupt request bit
INT2IC.Bit2         2   Interrupt priority level select bit 2
INT2IC.Bit1         1   Interrupt priority level select bit 1
INT2IC.Bit0         0   Interrupt priority level select bit 0


.M37702M8BXXXFP
; http://www.mitsubishichips.com/Global/content/product/mcu/16bit/7700f/7700s/7702g/e7702um.pdf

; *** - собственные сокращения


; MEMORY MAP
area DATA FSR         0x0000:0x0080
area DATA RAM_        0x0080:0x0880   Internal RAM
area BSS  RESERVED    0x0880:0x1000
area DATA ROM_        0x1000:0xFFD6   Internal ROM
area DATA USER_VEC    0xFFD6:0x10000


; Interrupt and reset vector assignments
interrupt __RESET           0xFFFE   RESET
interrupt Zero_Div          0xFFFC   Zero division
interrupt BRK_              0xFFFA   BRK instruction
interrupt DBC_              0xFFF8   DBC
interrupt WATCDOG           0xFFF6   Watchdog timer
interrupt INT0_             0xFFF4   External interrupt due to INT0 pin input signal
interrupt INT1_             0xFFF2   External interrupt due to INT1 pin input signal
interrupt INT2_             0xFFF0   External interrupt due to INT2 pin input signal
interrupt Timer_A0          0xFFEE   Internal interrupt from Timer A0
interrupt Timer_A1          0xFFEC   Internal interrupt from Timer A1
interrupt Timer_A2          0xFFEA   Internal interrupt from Timer A2
interrupt Timer_A3          0xFFE8   Internal interrupt from Timer A3
interrupt Timer_A4          0xFFE6   Internal interrupt from Timer A4
interrupt Timer_B0          0xFFE4   Internal interrupt from Timer B0
interrupt Timer_B1          0xFFE2   Internal interrupt from Timer B1
interrupt Timer_B2          0xFFE0   Internal interrupt from Timer B2
interrupt UART0_receive     0xFFDE   Internal interrupt from UART0
interrupt UART0_transmit    0xFFDC   Internal interrupt from UART0
interrupt UART1_receive     0xFFDA   Internal interrupt from UART1
interrupt UART1_transmit    0xFFD8   Internal interrupt from UART1
interrupt A_D_conversion    0xFFD6   Internal interrupt from A-D converter


; INPUT/ OUTPUT PORTS
RESERVED0000       0x0000   RESERVED
RESERVED0001       0x0001   RESERVED
P0                 0x0002   Port P0 register
P0.P0_7             7   Port P07
P0.P0_6             6   Port P06
P0.P0_5             5   Port P05
P0.P0_4             4   Port P04
P0.P0_3             3   Port P03
P0.P0_2             2   Port P02
P0.P0_1             1   Port P01
P0.P0_0             0   Port P00
P1                 0x0003   Port P1 register
P1.P1_7             7   Port P17
P1.P1_6             6   Port P16
P1.P1_5             5   Port P15
P1.P1_4             4   Port P14
P1.P1_3             3   Port P13
P1.P1_2             2   Port P12
P1.P1_1             1   Port P11
P1.P1_0             0   Port P10
PD0                0x0004   Port P0 direction register
PD0.PD0_7           7   Port P07 direction bit
PD0.PD0_6           6   Port P06 direction bit
PD0.PD0_5           5   Port P05 direction bit
PD0.PD0_4           4   Port P04 direction bit
PD0.PD0_3           3   Port P03 direction bit
PD0.PD0_2           2   Port P02 direction bit
PD0.PD0_1           1   Port P01 direction bit
PD0.PD0_0           0   Port P00 direction bit
PD1                0x0005   Port P1 direction register
PD1.PD1_7           7   Port P17 direction bit
PD1.PD1_6           6   Port P16 direction bit
PD1.PD1_5           5   Port P15 direction bit
PD1.PD1_4           4   Port P14 direction bit
PD1.PD1_3           3   Port P13 direction bit
PD1.PD1_2           2   Port P12 direction bit
PD1.PD1_1           1   Port P11 direction bit
PD1.PD1_0           0   Port P10 direction bit
P2                 0x0006   Port P2 register
P2.P2_7             7   Port P27
P2.P2_6             6   Port P26
P2.P2_5             5   Port P25
P2.P2_4             4   Port P24
P2.P2_3             3   Port P23
P2.P2_2             2   Port P22
P2.P2_1             1   Port P21
P2.P2_0             0   Port P20
P3                 0x0007   Port P3 register
P3.P3_7             7   Port P37
P3.P3_6             6   Port P36
P3.P3_5             5   Port P35
P3.P3_4             4   Port P34
P3.P3_3             3   Port P33
P3.P3_2             2   Port P32
P3.P3_1             1   Port P31
P3.P3_0             0   Port P30
PD2                0x0008   Port P2 direction register
PD2.PD2_7           7   Port P27 direction bit
PD2.PD2_6           6   Port P26 direction bit
PD2.PD2_5           5   Port P25 direction bit
PD2.PD2_4           4   Port P24 direction bit
PD2.PD2_3           3   Port P23 direction bit
PD2.PD2_2           2   Port P22 direction bit
PD2.PD2_1           1   Port P21 direction bit
PD2.PD2_0           0   Port P20 direction bit
PD3                0x0009   Port P3 direction register
PD3.PD3_7           7   Port P37 direction bit
PD3.PD3_6           6   Port P36 direction bit
PD3.PD3_5           5   Port P35 direction bit
PD3.PD3_4           4   Port P34 direction bit
PD3.PD3_3           3   Port P33 direction bit
PD3.PD3_2           2   Port P32 direction bit
PD3.PD3_1           1   Port P31 direction bit
PD3.PD3_0           0   Port P30 direction bit
P4                 0x000A   Port P4 register
P4.P4_7             7   Port P47
P4.P4_6             6   Port P46
P4.P4_5             5   Port P45
P4.P4_4             4   Port P44
P4.P4_3             3   Port P43
P4.P4_2             2   Port P42
P4.P4_1             1   Port P41
P4.P4_0             0   Port P40
P5                 0x000B   Port P5 register
P5.P5_7             7   Port P57
P5.P5_6             6   Port P56
P5.P5_5             5   Port P55
P5.P5_4             4   Port P54
P5.P5_3             3   Port P53
P5.P5_2             2   Port P52
P5.P5_1             1   Port P51
P5.P5_0             0   Port P50
PD4                0x000C   Port P4 direction register
PD4.PD4_7           7   Port P47 direction bit
PD4.PD4_6           6   Port P46 direction bit
PD4.PD4_5           5   Port P45 direction bit
PD4.PD4_4           4   Port P44 direction bit
PD4.PD4_3           3   Port P43 direction bit
PD4.PD4_2           2   Port P42 direction bit
PD4.PD4_1           1   Port P41 direction bit
PD4.PD4_0           0   Port P40 direction bit
PD5                0x000D   Port P5 direction register
PD5.PD5_7           7   Port P57 direction bit
PD5.PD5_6           6   Port P56 direction bit
PD5.PD5_5           5   Port P55 direction bit
PD5.PD5_4           4   Port P54 direction bit
PD5.PD5_3           3   Port P53 direction bit
PD5.PD5_2           2   Port P52 direction bit
PD5.PD5_1           1   Port P51 direction bit
PD5.PD5_0           0   Port P50 direction bit
P6                 0x000E   Port P6 register
P6.P6_7             7   Port P67
P6.P6_6             6   Port P66
P6.P6_5             5   Port P65
P6.P6_4             4   Port P64
P6.P6_3             3   Port P63
P6.P6_2             2   Port P62
P6.P6_1             1   Port P61
P6.P6_0             0   Port P60
P7                 0x000F   Port P7 register
P7.P7_7             7   Port P77
P7.P7_6             6   Port P76
P7.P7_5             5   Port P75
P7.P7_4             4   Port P74
P7.P7_3             3   Port P73
P7.P7_2             2   Port P72
P7.P7_1             1   Port P71
P7.P7_0             0   Port P70
PD6                0x0010   Port P6 direction register
PD6.PD6_7           7   Port P67 direction bit
PD6.PD6_6           6   Port P66 direction bit
PD6.PD6_5           5   Port P65 direction bit
PD6.PD6_4           4   Port P64 direction bit
PD6.PD6_3           3   Port P63 direction bit
PD6.PD6_2           2   Port P62 direction bit
PD6.PD6_1           1   Port P61 direction bit
PD6.PD6_0           0   Port P60 direction bit
PD7                0x0011   Port P7 direction register
PD7.PD7_7           7   Port P77 direction bit
PD7.PD7_6           6   Port P76 direction bit
PD7.PD7_5           5   Port P75 direction bit
PD7.PD7_4           4   Port P74 direction bit
PD7.PD7_3           3   Port P73 direction bit
PD7.PD7_2           2   Port P72 direction bit
PD7.PD7_1           1   Port P71 direction bit
PD7.PD7_0           0   Port P70 direction bit
P8                 0x0012   Port P8 register
P8.P8_7             7   Port P87
P8.P8_6             6   Port P86
P8.P8_5             5   Port P85
P8.P8_4             4   Port P84
P8.P8_3             3   Port P83
P8.P8_2             2   Port P82
P8.P8_1             1   Port P81
P8.P8_0             0   Port P80
RESERVED0013       0x0013   RESERVED
PD8                0x0014   Port P8 direction register
PD8.PD8_7           7   Port P87 direction bit
PD8.PD8_6           6   Port P86 direction bit
PD8.PD8_5           5   Port P85 direction bit
PD8.PD8_4           4   Port P84 direction bit
PD8.PD8_3           3   Port P83 direction bit
PD8.PD8_2           2   Port P82 direction bit
PD8.PD8_1           1   Port P81 direction bit
PD8.PD8_0           0   Port P80 direction bit
RESERVED0015       0x0015   RESERVED
RESERVED0016       0x0016   RESERVED
RESERVED0017       0x0017   RESERVED
RESERVED0018       0x0018   RESERVED
RESERVED0019       0x0019   RESERVED
RESERVED001A       0x001A   RESERVED
RESERVED001B       0x001B   RESERVED
RESERVED001C       0x001C   RESERVED
RESERVED001D       0x001D   RESERVED
ADCON              0x001E   A-D control register
ADCON.Bit7          7   A-D conversion frequency select bit
ADCON.Bit6          6   A-D conversion start bit
ADCON.Bit5          5   Trigger select bit
ADCON.Bit4          4   A-D operation mode select bit 4
ADCON.Bit3          3   A-D operation mode select bit 3
ADCON.Bit2          2   Analog input select bit 2
ADCON.Bit1          1   Analog input select bit 1
ADCON.Bit0          0   Analog input select bit 0
A_D_SPSR           0x001F   A-D sweep pin select register (***)
A_D_SPSR.Bit1       1   A-D sweep pin select bit 1
A_D_SPSR.Bit0       0   A-D sweep pin select bit 0
AD0                0x0020   A-D register 0
AD0.Bit7            7   Reads an A-D conversion result bit 7
AD0.Bit6            6   Reads an A-D conversion result bit 6
AD0.Bit5            5   Reads an A-D conversion result bit 5
AD0.Bit4            4   Reads an A-D conversion result bit 4
AD0.Bit3            3   Reads an A-D conversion result bit 3
AD0.Bit2            2   Reads an A-D conversion result bit 2
AD0.Bit1            1   Reads an A-D conversion result bit 1
AD0.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0021       0x0021   RESERVED
AD1                0x0022   A-D register 1
AD1.Bit7            7   Reads an A-D conversion result bit 7
AD1.Bit6            6   Reads an A-D conversion result bit 6
AD1.Bit5            5   Reads an A-D conversion result bit 5
AD1.Bit4            4   Reads an A-D conversion result bit 4
AD1.Bit3            3   Reads an A-D conversion result bit 3
AD1.Bit2            2   Reads an A-D conversion result bit 2
AD1.Bit1            1   Reads an A-D conversion result bit 1
AD1.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0023       0x0023   RESERVED
AD2                0x0024   A-D register 2
AD2.Bit7            7   Reads an A-D conversion result bit 7
AD2.Bit6            6   Reads an A-D conversion result bit 6
AD2.Bit5            5   Reads an A-D conversion result bit 5
AD2.Bit4            4   Reads an A-D conversion result bit 4
AD2.Bit3            3   Reads an A-D conversion result bit 3
AD2.Bit2            2   Reads an A-D conversion result bit 2
AD2.Bit1            1   Reads an A-D conversion result bit 1
AD2.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0025       0x0025   RESERVED
AD3                0x0026   A-D register 3
AD3.Bit7            7   Reads an A-D conversion result bit 7
AD3.Bit6            6   Reads an A-D conversion result bit 6
AD3.Bit5            5   Reads an A-D conversion result bit 5
AD3.Bit4            4   Reads an A-D conversion result bit 4
AD3.Bit3            3   Reads an A-D conversion result bit 3
AD3.Bit2            2   Reads an A-D conversion result bit 2
AD3.Bit1            1   Reads an A-D conversion result bit 1
AD3.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0027       0x0027   RESERVED
AD4                0x0028   A-D register 4
AD4.Bit7            7   Reads an A-D conversion result bit 7
AD4.Bit6            6   Reads an A-D conversion result bit 6
AD4.Bit5            5   Reads an A-D conversion result bit 5
AD4.Bit4            4   Reads an A-D conversion result bit 4
AD4.Bit3            3   Reads an A-D conversion result bit 3
AD4.Bit2            2   Reads an A-D conversion result bit 2
AD4.Bit1            1   Reads an A-D conversion result bit 1
AD4.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0029       0x0029   RESERVED
AD5                0x002A   A-D register 5
AD5.Bit7            7   Reads an A-D conversion result bit 7
AD5.Bit6            6   Reads an A-D conversion result bit 6
AD5.Bit5            5   Reads an A-D conversion result bit 5
AD5.Bit4            4   Reads an A-D conversion result bit 4
AD5.Bit3            3   Reads an A-D conversion result bit 3
AD5.Bit2            2   Reads an A-D conversion result bit 2
AD5.Bit1            1   Reads an A-D conversion result bit 1
AD5.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002B       0x002B   RESERVED
AD6                0x002C   A-D register 6
AD6.Bit7            7   Reads an A-D conversion result bit 7
AD6.Bit6            6   Reads an A-D conversion result bit 6
AD6.Bit5            5   Reads an A-D conversion result bit 5
AD6.Bit4            4   Reads an A-D conversion result bit 4
AD6.Bit3            3   Reads an A-D conversion result bit 3
AD6.Bit2            2   Reads an A-D conversion result bit 2
AD6.Bit1            1   Reads an A-D conversion result bit 1
AD6.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002D       0x002D   RESERVED
AD7                0x002E   A-D register 7
AD7.Bit7            7   Reads an A-D conversion result bit 7
AD7.Bit6            6   Reads an A-D conversion result bit 6
AD7.Bit5            5   Reads an A-D conversion result bit 5
AD7.Bit4            4   Reads an A-D conversion result bit 4
AD7.Bit3            3   Reads an A-D conversion result bit 3
AD7.Bit2            2   Reads an A-D conversion result bit 2
AD7.Bit1            1   Reads an A-D conversion result bit 1
AD7.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002F       0x002F   RESERVED
U0MR               0x0030   UART0 transmit/receive mode register
U0MR.Bit7           7   Sleep select bit
U0MR.Bit6           6   Parity enable bit
U0MR.Bit5           5   Odd/Even parity select bit
U0MR.Bit4           4   Stop bit length select bit
U0MR.Bit3           3   Internal/External clock select bit
U0MR.Bit2           2   Serial I/O mode select bit 2
U0MR.Bit1           1   Serial I/O mode select bit 1
U0MR.Bit0           0   Serial I/O mode select bit 0
BRG0               0x0031   UART0 baud rate register (BRG0) (***)
U0TB               0x0032   UART0 transmit buffer register
U0C0               0x0034   UART0 transmit/receive control register 0
U0C0.Bit3           3   Transmit register empty flag
U0C0.Bit2           2   CTS/RTS select bit
U0C0.Bit1           1   BRG count source select bit 1
U0C0.Bit0           0   BRG count source select bit 0
U0C1               0x0035   UART0 transmit/receive control register 1
U0C1.Bit7           7   Error sum flag
U0C1.Bit6           6   Parity error flag
U0C1.Bit5           5   Framing error flag
U0C1.Bit4           4   Overrun error flag
U0C1.Bit3           3   Receive complete flag
U0C1.Bit2           2   Receive enable bit
U0C1.Bit1           1   Transmit buffer empty flag
U0C1.Bit0           0   Transmit enable bit
U0RB               0x0036   UART0 receive buffer register
U1MR               0x0038   UART1 transmit/receive mode register
U1MR.Bit7           7   Sleep select bit
U1MR.Bit6           6   Parity enable bit
U1MR.Bit5           5   Odd/Even parity select bit
U1MR.Bit4           4   Stop bit length select bit
U1MR.Bit3           3   Internal/External clock select bit
U1MR.Bit2           2   Serial I/O mode select bit 2
U1MR.Bit1           1   Serial I/O mode select bit 1
U1MR.Bit0           0   Serial I/O mode select bit 0
BRG1               0x0039   UART1 baud rate register (BRG1) (***)
U1TB               0x003A   UART1 transmit buffer register
U1C0               0x003C   UART1 transmit/receive control register 0
U1C0.Bit3           3   Transmit register empty flag
U1C0.Bit2           2   CTS/RTS select bit
U1C0.Bit1           1   BRG count source select bit 1
U1C0.Bit0           0   BRG count source select bit 0
U1C1               0x003D   UART1 transmit/receive control register 1
U1C1.Bit7           7   Error sum flag
U1C1.Bit6           6   Parity error flag
U1C1.Bit5           5   Framing error flag
U1C1.Bit4           4   Overrun error flag
U1C1.Bit3           3   Receive complete flag
U1C1.Bit2           2   Receive enable bit
U1C1.Bit1           1   Transmit buffer empty flag
U1C1.Bit0           0   Transmit enable bit
U1RB               0x003E   UART1 receive buffer register
CSREG              0x0040   Count start register (***)
CSREG.Bit7          7   Timer B2 count start bit
CSREG.Bit6          6   Timer B1 count start bit
CSREG.Bit5          5   Timer B0 count start bit
CSREG.Bit4          4   Timer A4 count start bit
CSREG.Bit3          3   Timer A3 count start bit
CSREG.Bit2          2   Timer A2 count start bit
CSREG.Bit1          1   Timer A1 count start bit
CSREG.Bit0          0   Timer A0 count start bit
RESERVED0041       0x0041   RESERVED
ONE_SSREG          0x0042   One-shot start register (***)
ONE_SSREG.Bit4      4   Timer A4 one-shot start bit
ONE_SSREG.Bit3      3   Timer A3 one-shot start bit
ONE_SSREG.Bit2      2   Timer A2 one-shot start bit
ONE_SSREG.Bit1      1   Timer A1 one-shot start bit
ONE_SSREG.Bit0      0   Timer A0 one-shot start bit
RESERVED0043       0x0043   RESERVED
UP_D_REG           0x0044   Up-down register (***)
UP_D_REG.Bit7       7   Timer A4 two-phase pulse signal processing select bit
UP_D_REG.Bit6       6   Timer A3 two-phase pulse signal processing select bit
UP_D_REG.Bit5       5   Timer A2 two-phase pulse signal processing select bit
UP_D_REG.Bit4       4   Timer A4 up-down bit
UP_D_REG.Bit3       3   Timer A3 up-down bit
UP_D_REG.Bit2       2   Timer A2 up-down bit
UP_D_REG.Bit1       1   Timer A1 up-down bit
UP_D_REG.Bit0       0   Timer A0 up-down bit
RESERVED0045       0x0045   RESERVED
TA0                0x0046   Timer A0 register
TA1                0x0048   Timer A1 register
TA2                0x004A   Timer A2 register
TA3                0x004C   Timer A3 register
TA4                0x004E   Timer A4 register
TB0                0x0050   Timer B0 register
TB1                0x0052   Timer B1 register
TB2                0x0054   Timer B2 register
TA0MR              0x0056   Timer A0 mode register
TA0MR.Bit7          7
TA0MR.Bit6          6
TA0MR.Bit5          5
TA0MR.Bit4          4
TA0MR.Bit3          3
TA0MR.Bit2          2
TA0MR.Bit1          1   Operating mode select bit 1
TA0MR.Bit0          0   Operating mode select bit 0
TA1MR              0x0057   Timer A1 mode register
TA1MR.Bit7          7
TA1MR.Bit6          6
TA1MR.Bit5          5
TA1MR.Bit4          4
TA1MR.Bit3          3
TA1MR.Bit2          2
TA1MR.Bit1          1   Operating mode select bit 1
TA1MR.Bit0          0   Operating mode select bit 0
TA2MR              0x0058   Timer A2 mode register
TA2MR.Bit7          7
TA2MR.Bit6          6
TA2MR.Bit5          5
TA2MR.Bit4          4
TA2MR.Bit3          3
TA2MR.Bit2          2
TA2MR.Bit1          1   Operating mode select bit 1
TA2MR.Bit0          0   Operating mode select bit 0
TA3MR              0x0059   Timer A3 mode register
TA3MR.Bit7          7
TA3MR.Bit6          6
TA3MR.Bit5          5
TA3MR.Bit4          4
TA3MR.Bit3          3
TA3MR.Bit2          2
TA3MR.Bit1          1   Operating mode select bit 1
TA3MR.Bit0          0   Operating mode select bit 0
TA4MR              0x005A   Timer A4 mode register
TA4MR.Bit7          7
TA4MR.Bit6          6
TA4MR.Bit5          5
TA4MR.Bit4          4
TA4MR.Bit3          3
TA4MR.Bit2          2
TA4MR.Bit1          1   Operating mode select bit 1
TA4MR.Bit0          0   Operating mode select bit 0
TB0MR              0x005B   Timer B0 mode register
TB0MR.Bit7          7
TB0MR.Bit6          6
TB0MR.Bit5          5
TB0MR.Bit3          3
TB0MR.Bit2          2
TB0MR.Bit1          1   Operating mode select bit 1
TB0MR.Bit0          0   Operating mode select bit 0
TB1MR              0x005C   Timer B1 mode register
TB1MR.Bit7          7
TB1MR.Bit6          6
TB1MR.Bit5          5
TB1MR.Bit3          3
TB1MR.Bit2          2
TB1MR.Bit1          1   Operating mode select bit 1
TB1MR.Bit0          0   Operating mode select bit 0
TB2MR              0x005D   Timer B2 mode register
TB2MR.Bit7          7
TB2MR.Bit6          6
TB2MR.Bit5          5
TB2MR.Bit3          3
TB2MR.Bit2          2
TB2MR.Bit1          1   Operating mode select bit 1
TB2MR.Bit0          0   Operating mode select bit 0
PM                 0x005E   Processor mode register
PM.Bit7             7   Clock 1 output select bit
PM.Bit5             5   Interrupt priority detection time select bit 5
PM.Bit4             4   Interrupt priority detection time select bit 4
PM.Bit3             3   Software reset bit
PM.Bit2             2   Wait bit
PM.Bit1             1   Processor mode bit 1
PM.Bit0             0   Processor mode bit 0
RESERVED005F       0x005F   RESERVED
WDT                0x0060   Watchdog timer register (***)
WDTFS              0x0061   Watchdog timer frequency select register (***)
WDTFS.Bit0          0   Watchdog timer frequency select bit
RESERVED0062       0x0062   RESERVED
RESERVED0063       0x0063   RESERVED
RESERVED0064       0x0064   RESERVED
RESERVED0065       0x0065   RESERVED
RESERVED0066       0x0066   RESERVED
RESERVED0067       0x0067   RESERVED
RESERVED0068       0x0068   RESERVED
RESERVED0069       0x0069   RESERVED
RESERVED006A       0x006A   RESERVED
RESERVED006B       0x006B   RESERVED
RESERVED006C       0x006C   RESERVED
RESERVED006D       0x006D   RESERVED
RESERVED006E       0x006E   RESERVED
RESERVED006F       0x006F   RESERVED
ADIC               0x0070   A-D conversion interrupt control register
ADIC.Bit3           3   Interrupt request bit
ADIC.Bit2           2   Interrupt priority level select bit 2
ADIC.Bit1           1   Interrupt priority level select bit 1
ADIC.Bit0           0   Interrupt priority level select bit 0
S0TIC              0x0071   UART0 transmit interrupt control register
S0TIC.Bit3           3   Interrupt request bit                
S0TIC.Bit2           2   Interrupt priority level select bit 2
S0TIC.Bit1           1   Interrupt priority level select bit 1
S0TIC.Bit0           0   Interrupt priority level select bit 0
S0RIC              0x0072   UART0 receive interrupt control register
S0RIC.Bit3           3   Interrupt request bit                
S0RIC.Bit2           2   Interrupt priority level select bit 2
S0RIC.Bit1           1   Interrupt priority level select bit 1
S0RIC.Bit0           0   Interrupt priority level select bit 0
S1TIC              0x0073   UART1 transmit interrupt control register
S1TIC.Bit3           3   Interrupt request bit                
S1TIC.Bit2           2   Interrupt priority level select bit 2
S1TIC.Bit1           1   Interrupt priority level select bit 1
S1TIC.Bit0           0   Interrupt priority level select bit 0
S1RIC              0x0074   UART1 receive interrupt control register
S1RIC.Bit3           3   Interrupt request bit                
S1RIC.Bit2           2   Interrupt priority level select bit 2
S1RIC.Bit1           1   Interrupt priority level select bit 1
S1RIC.Bit0           0   Interrupt priority level select bit 0
TA0IC              0x0075   Timer A0 interrupt control register
TA0IC.Bit3           3   Interrupt request bit                
TA0IC.Bit2           2   Interrupt priority level select bit 2
TA0IC.Bit1           1   Interrupt priority level select bit 1
TA0IC.Bit0           0   Interrupt priority level select bit 0
TA1IC              0x0076   Timer A1 interrupt control register
TA1IC.Bit3           3   Interrupt request bit                
TA1IC.Bit2           2   Interrupt priority level select bit 2
TA1IC.Bit1           1   Interrupt priority level select bit 1
TA1IC.Bit0           0   Interrupt priority level select bit 0
TA2IC              0x0077   Timer A2 interrupt control register
TA2IC.Bit3           3   Interrupt request bit                
TA2IC.Bit2           2   Interrupt priority level select bit 2
TA2IC.Bit1           1   Interrupt priority level select bit 1
TA2IC.Bit0           0   Interrupt priority level select bit 0
TA3IC              0x0078   Timer A3 interrupt control register
TA3IC.Bit3           3   Interrupt request bit                
TA3IC.Bit2           2   Interrupt priority level select bit 2
TA3IC.Bit1           1   Interrupt priority level select bit 1
TA3IC.Bit0           0   Interrupt priority level select bit 0
TA4IC              0x0079   Timer A4 interrupt control register
TA4IC.Bit3           3   Interrupt request bit                
TA4IC.Bit2           2   Interrupt priority level select bit 2
TA4IC.Bit1           1   Interrupt priority level select bit 1
TA4IC.Bit0           0   Interrupt priority level select bit 0
TB0IC              0x007A   Timer B0 interrupt control register
TB0IC.Bit3           3   Interrupt request bit                
TB0IC.Bit2           2   Interrupt priority level select bit 2
TB0IC.Bit1           1   Interrupt priority level select bit 1
TB0IC.Bit0           0   Interrupt priority level select bit 0
TB1IC              0x007B   Timer B1 interrupt control register
TB1IC.Bit3           3   Interrupt request bit                
TB1IC.Bit2           2   Interrupt priority level select bit 2
TB1IC.Bit1           1   Interrupt priority level select bit 1
TB1IC.Bit0           0   Interrupt priority level select bit 0
TB2IC              0x007C   Timer B2 interrupt control register
TB2IC.Bit3           3   Interrupt request bit                
TB2IC.Bit2           2   Interrupt priority level select bit 2
TB2IC.Bit1           1   Interrupt priority level select bit 1
TB2IC.Bit0           0   Interrupt priority level select bit 0
INT0IC             0x007D   INT0 interrupt control register
INT0IC.Bit5         5   Level sense/Edge sense select bit
INT0IC.Bit4         4   Polarity select bit
INT0IC.Bit3         3   Interrupt request bit
INT0IC.Bit2         2   Interrupt priority level select bit 2
INT0IC.Bit1         1   Interrupt priority level select bit 1
INT0IC.Bit0         0   Interrupt priority level select bit 0
INT1IC             0x007E   INT1 interrupt control register
INT1IC.Bit5         5   Level sense/Edge sense select bit
INT1IC.Bit4         4   Polarity select bit
INT1IC.Bit3         3   Interrupt request bit
INT1IC.Bit2         2   Interrupt priority level select bit 2
INT1IC.Bit1         1   Interrupt priority level select bit 1
INT1IC.Bit0         0   Interrupt priority level select bit 0
INT2IC             0x007F   INT2 interrupt control register
INT2IC.Bit5         5   Level sense/Edge sense select bit
INT2IC.Bit4         4   Polarity select bit
INT2IC.Bit3         3   Interrupt request bit
INT2IC.Bit2         2   Interrupt priority level select bit 2
INT2IC.Bit1         1   Interrupt priority level select bit 1
INT2IC.Bit0         0   Interrupt priority level select bit 0


.M37702MDBXXXFP
; http://www.mitsubishichips.com/Global/content/product/mcu/16bit/7700f/7700s/7702g/e7702um.pdf

; *** - собственные сокращения


; MEMORY MAP
area DATA FSR         0x0000:0x0080
area DATA RAM_        0x0080:0x0480   Internal RAM
area BSS  RESERVED    0x0480:0x8000
area DATA ROM_        0x8000:0xFFD6   Internal ROM
area DATA USER_VEC    0xFFD6:0x10000


; Interrupt and reset vector assignments
interrupt __RESET           0xFFFE   RESET
interrupt Zero_Div          0xFFFC   Zero division
interrupt BRK_              0xFFFA   BRK instruction
interrupt DBC_              0xFFF8   DBC
interrupt WATCDOG           0xFFF6   Watchdog timer
interrupt INT0_             0xFFF4   External interrupt due to INT0 pin input signal
interrupt INT1_             0xFFF2   External interrupt due to INT1 pin input signal
interrupt INT2_             0xFFF0   External interrupt due to INT2 pin input signal
interrupt Timer_A0          0xFFEE   Internal interrupt from Timer A0
interrupt Timer_A1          0xFFEC   Internal interrupt from Timer A1
interrupt Timer_A2          0xFFEA   Internal interrupt from Timer A2
interrupt Timer_A3          0xFFE8   Internal interrupt from Timer A3
interrupt Timer_A4          0xFFE6   Internal interrupt from Timer A4
interrupt Timer_B0          0xFFE4   Internal interrupt from Timer B0
interrupt Timer_B1          0xFFE2   Internal interrupt from Timer B1
interrupt Timer_B2          0xFFE0   Internal interrupt from Timer B2
interrupt UART0_receive     0xFFDE   Internal interrupt from UART0
interrupt UART0_transmit    0xFFDC   Internal interrupt from UART0
interrupt UART1_receive     0xFFDA   Internal interrupt from UART1
interrupt UART1_transmit    0xFFD8   Internal interrupt from UART1
interrupt A_D_conversion    0xFFD6   Internal interrupt from A-D converter


; INPUT/ OUTPUT PORTS
RESERVED0000       0x0000   RESERVED
RESERVED0001       0x0001   RESERVED
P0                 0x0002   Port P0 register
P0.P0_7             7   Port P07
P0.P0_6             6   Port P06
P0.P0_5             5   Port P05
P0.P0_4             4   Port P04
P0.P0_3             3   Port P03
P0.P0_2             2   Port P02
P0.P0_1             1   Port P01
P0.P0_0             0   Port P00
P1                 0x0003   Port P1 register
P1.P1_7             7   Port P17
P1.P1_6             6   Port P16
P1.P1_5             5   Port P15
P1.P1_4             4   Port P14
P1.P1_3             3   Port P13
P1.P1_2             2   Port P12
P1.P1_1             1   Port P11
P1.P1_0             0   Port P10
PD0                0x0004   Port P0 direction register
PD0.PD0_7           7   Port P07 direction bit
PD0.PD0_6           6   Port P06 direction bit
PD0.PD0_5           5   Port P05 direction bit
PD0.PD0_4           4   Port P04 direction bit
PD0.PD0_3           3   Port P03 direction bit
PD0.PD0_2           2   Port P02 direction bit
PD0.PD0_1           1   Port P01 direction bit
PD0.PD0_0           0   Port P00 direction bit
PD1                0x0005   Port P1 direction register
PD1.PD1_7           7   Port P17 direction bit
PD1.PD1_6           6   Port P16 direction bit
PD1.PD1_5           5   Port P15 direction bit
PD1.PD1_4           4   Port P14 direction bit
PD1.PD1_3           3   Port P13 direction bit
PD1.PD1_2           2   Port P12 direction bit
PD1.PD1_1           1   Port P11 direction bit
PD1.PD1_0           0   Port P10 direction bit
P2                 0x0006   Port P2 register
P2.P2_7             7   Port P27
P2.P2_6             6   Port P26
P2.P2_5             5   Port P25
P2.P2_4             4   Port P24
P2.P2_3             3   Port P23
P2.P2_2             2   Port P22
P2.P2_1             1   Port P21
P2.P2_0             0   Port P20
P3                 0x0007   Port P3 register
P3.P3_7             7   Port P37
P3.P3_6             6   Port P36
P3.P3_5             5   Port P35
P3.P3_4             4   Port P34
P3.P3_3             3   Port P33
P3.P3_2             2   Port P32
P3.P3_1             1   Port P31
P3.P3_0             0   Port P30
PD2                0x0008   Port P2 direction register
PD2.PD2_7           7   Port P27 direction bit
PD2.PD2_6           6   Port P26 direction bit
PD2.PD2_5           5   Port P25 direction bit
PD2.PD2_4           4   Port P24 direction bit
PD2.PD2_3           3   Port P23 direction bit
PD2.PD2_2           2   Port P22 direction bit
PD2.PD2_1           1   Port P21 direction bit
PD2.PD2_0           0   Port P20 direction bit
PD3                0x0009   Port P3 direction register
PD3.PD3_7           7   Port P37 direction bit
PD3.PD3_6           6   Port P36 direction bit
PD3.PD3_5           5   Port P35 direction bit
PD3.PD3_4           4   Port P34 direction bit
PD3.PD3_3           3   Port P33 direction bit
PD3.PD3_2           2   Port P32 direction bit
PD3.PD3_1           1   Port P31 direction bit
PD3.PD3_0           0   Port P30 direction bit
P4                 0x000A   Port P4 register
P4.P4_7             7   Port P47
P4.P4_6             6   Port P46
P4.P4_5             5   Port P45
P4.P4_4             4   Port P44
P4.P4_3             3   Port P43
P4.P4_2             2   Port P42
P4.P4_1             1   Port P41
P4.P4_0             0   Port P40
P5                 0x000B   Port P5 register
P5.P5_7             7   Port P57
P5.P5_6             6   Port P56
P5.P5_5             5   Port P55
P5.P5_4             4   Port P54
P5.P5_3             3   Port P53
P5.P5_2             2   Port P52
P5.P5_1             1   Port P51
P5.P5_0             0   Port P50
PD4                0x000C   Port P4 direction register
PD4.PD4_7           7   Port P47 direction bit
PD4.PD4_6           6   Port P46 direction bit
PD4.PD4_5           5   Port P45 direction bit
PD4.PD4_4           4   Port P44 direction bit
PD4.PD4_3           3   Port P43 direction bit
PD4.PD4_2           2   Port P42 direction bit
PD4.PD4_1           1   Port P41 direction bit
PD4.PD4_0           0   Port P40 direction bit
PD5                0x000D   Port P5 direction register
PD5.PD5_7           7   Port P57 direction bit
PD5.PD5_6           6   Port P56 direction bit
PD5.PD5_5           5   Port P55 direction bit
PD5.PD5_4           4   Port P54 direction bit
PD5.PD5_3           3   Port P53 direction bit
PD5.PD5_2           2   Port P52 direction bit
PD5.PD5_1           1   Port P51 direction bit
PD5.PD5_0           0   Port P50 direction bit
P6                 0x000E   Port P6 register
P6.P6_7             7   Port P67
P6.P6_6             6   Port P66
P6.P6_5             5   Port P65
P6.P6_4             4   Port P64
P6.P6_3             3   Port P63
P6.P6_2             2   Port P62
P6.P6_1             1   Port P61
P6.P6_0             0   Port P60
P7                 0x000F   Port P7 register
P7.P7_7             7   Port P77
P7.P7_6             6   Port P76
P7.P7_5             5   Port P75
P7.P7_4             4   Port P74
P7.P7_3             3   Port P73
P7.P7_2             2   Port P72
P7.P7_1             1   Port P71
P7.P7_0             0   Port P70
PD6                0x0010   Port P6 direction register
PD6.PD6_7           7   Port P67 direction bit
PD6.PD6_6           6   Port P66 direction bit
PD6.PD6_5           5   Port P65 direction bit
PD6.PD6_4           4   Port P64 direction bit
PD6.PD6_3           3   Port P63 direction bit
PD6.PD6_2           2   Port P62 direction bit
PD6.PD6_1           1   Port P61 direction bit
PD6.PD6_0           0   Port P60 direction bit
PD7                0x0011   Port P7 direction register
PD7.PD7_7           7   Port P77 direction bit
PD7.PD7_6           6   Port P76 direction bit
PD7.PD7_5           5   Port P75 direction bit
PD7.PD7_4           4   Port P74 direction bit
PD7.PD7_3           3   Port P73 direction bit
PD7.PD7_2           2   Port P72 direction bit
PD7.PD7_1           1   Port P71 direction bit
PD7.PD7_0           0   Port P70 direction bit
P8                 0x0012   Port P8 register
P8.P8_7             7   Port P87
P8.P8_6             6   Port P86
P8.P8_5             5   Port P85
P8.P8_4             4   Port P84
P8.P8_3             3   Port P83
P8.P8_2             2   Port P82
P8.P8_1             1   Port P81
P8.P8_0             0   Port P80
RESERVED0013       0x0013   RESERVED
PD8                0x0014   Port P8 direction register
PD8.PD8_7           7   Port P87 direction bit
PD8.PD8_6           6   Port P86 direction bit
PD8.PD8_5           5   Port P85 direction bit
PD8.PD8_4           4   Port P84 direction bit
PD8.PD8_3           3   Port P83 direction bit
PD8.PD8_2           2   Port P82 direction bit
PD8.PD8_1           1   Port P81 direction bit
PD8.PD8_0           0   Port P80 direction bit
RESERVED0015       0x0015   RESERVED
RESERVED0016       0x0016   RESERVED
RESERVED0017       0x0017   RESERVED
RESERVED0018       0x0018   RESERVED
RESERVED0019       0x0019   RESERVED
RESERVED001A       0x001A   RESERVED
RESERVED001B       0x001B   RESERVED
RESERVED001C       0x001C   RESERVED
RESERVED001D       0x001D   RESERVED
ADCON              0x001E   A-D control register
ADCON.Bit7          7   A-D conversion frequency select bit
ADCON.Bit6          6   A-D conversion start bit
ADCON.Bit5          5   Trigger select bit
ADCON.Bit4          4   A-D operation mode select bit 4
ADCON.Bit3          3   A-D operation mode select bit 3
ADCON.Bit2          2   Analog input select bit 2
ADCON.Bit1          1   Analog input select bit 1
ADCON.Bit0          0   Analog input select bit 0
A_D_SPSR           0x001F   A-D sweep pin select register (***)
A_D_SPSR.Bit1       1   A-D sweep pin select bit 1
A_D_SPSR.Bit0       0   A-D sweep pin select bit 0
AD0                0x0020   A-D register 0
AD0.Bit7            7   Reads an A-D conversion result bit 7
AD0.Bit6            6   Reads an A-D conversion result bit 6
AD0.Bit5            5   Reads an A-D conversion result bit 5
AD0.Bit4            4   Reads an A-D conversion result bit 4
AD0.Bit3            3   Reads an A-D conversion result bit 3
AD0.Bit2            2   Reads an A-D conversion result bit 2
AD0.Bit1            1   Reads an A-D conversion result bit 1
AD0.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0021       0x0021   RESERVED
AD1                0x0022   A-D register 1
AD1.Bit7            7   Reads an A-D conversion result bit 7
AD1.Bit6            6   Reads an A-D conversion result bit 6
AD1.Bit5            5   Reads an A-D conversion result bit 5
AD1.Bit4            4   Reads an A-D conversion result bit 4
AD1.Bit3            3   Reads an A-D conversion result bit 3
AD1.Bit2            2   Reads an A-D conversion result bit 2
AD1.Bit1            1   Reads an A-D conversion result bit 1
AD1.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0023       0x0023   RESERVED
AD2                0x0024   A-D register 2
AD2.Bit7            7   Reads an A-D conversion result bit 7
AD2.Bit6            6   Reads an A-D conversion result bit 6
AD2.Bit5            5   Reads an A-D conversion result bit 5
AD2.Bit4            4   Reads an A-D conversion result bit 4
AD2.Bit3            3   Reads an A-D conversion result bit 3
AD2.Bit2            2   Reads an A-D conversion result bit 2
AD2.Bit1            1   Reads an A-D conversion result bit 1
AD2.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0025       0x0025   RESERVED
AD3                0x0026   A-D register 3
AD3.Bit7            7   Reads an A-D conversion result bit 7
AD3.Bit6            6   Reads an A-D conversion result bit 6
AD3.Bit5            5   Reads an A-D conversion result bit 5
AD3.Bit4            4   Reads an A-D conversion result bit 4
AD3.Bit3            3   Reads an A-D conversion result bit 3
AD3.Bit2            2   Reads an A-D conversion result bit 2
AD3.Bit1            1   Reads an A-D conversion result bit 1
AD3.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0027       0x0027   RESERVED
AD4                0x0028   A-D register 4
AD4.Bit7            7   Reads an A-D conversion result bit 7
AD4.Bit6            6   Reads an A-D conversion result bit 6
AD4.Bit5            5   Reads an A-D conversion result bit 5
AD4.Bit4            4   Reads an A-D conversion result bit 4
AD4.Bit3            3   Reads an A-D conversion result bit 3
AD4.Bit2            2   Reads an A-D conversion result bit 2
AD4.Bit1            1   Reads an A-D conversion result bit 1
AD4.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0029       0x0029   RESERVED
AD5                0x002A   A-D register 5
AD5.Bit7            7   Reads an A-D conversion result bit 7
AD5.Bit6            6   Reads an A-D conversion result bit 6
AD5.Bit5            5   Reads an A-D conversion result bit 5
AD5.Bit4            4   Reads an A-D conversion result bit 4
AD5.Bit3            3   Reads an A-D conversion result bit 3
AD5.Bit2            2   Reads an A-D conversion result bit 2
AD5.Bit1            1   Reads an A-D conversion result bit 1
AD5.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002B       0x002B   RESERVED
AD6                0x002C   A-D register 6
AD6.Bit7            7   Reads an A-D conversion result bit 7
AD6.Bit6            6   Reads an A-D conversion result bit 6
AD6.Bit5            5   Reads an A-D conversion result bit 5
AD6.Bit4            4   Reads an A-D conversion result bit 4
AD6.Bit3            3   Reads an A-D conversion result bit 3
AD6.Bit2            2   Reads an A-D conversion result bit 2
AD6.Bit1            1   Reads an A-D conversion result bit 1
AD6.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002D       0x002D   RESERVED
AD7                0x002E   A-D register 7
AD7.Bit7            7   Reads an A-D conversion result bit 7
AD7.Bit6            6   Reads an A-D conversion result bit 6
AD7.Bit5            5   Reads an A-D conversion result bit 5
AD7.Bit4            4   Reads an A-D conversion result bit 4
AD7.Bit3            3   Reads an A-D conversion result bit 3
AD7.Bit2            2   Reads an A-D conversion result bit 2
AD7.Bit1            1   Reads an A-D conversion result bit 1
AD7.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002F       0x002F   RESERVED
U0MR               0x0030   UART0 transmit/receive mode register
U0MR.Bit7           7   Sleep select bit
U0MR.Bit6           6   Parity enable bit
U0MR.Bit5           5   Odd/Even parity select bit
U0MR.Bit4           4   Stop bit length select bit
U0MR.Bit3           3   Internal/External clock select bit
U0MR.Bit2           2   Serial I/O mode select bit 2
U0MR.Bit1           1   Serial I/O mode select bit 1
U0MR.Bit0           0   Serial I/O mode select bit 0
BRG0               0x0031   UART0 baud rate register (BRG0) (***)
U0TB               0x0032   UART0 transmit buffer register
U0C0               0x0034   UART0 transmit/receive control register 0
U0C0.Bit3           3   Transmit register empty flag
U0C0.Bit2           2   CTS/RTS select bit
U0C0.Bit1           1   BRG count source select bit 1
U0C0.Bit0           0   BRG count source select bit 0
U0C1               0x0035   UART0 transmit/receive control register 1
U0C1.Bit7           7   Error sum flag
U0C1.Bit6           6   Parity error flag
U0C1.Bit5           5   Framing error flag
U0C1.Bit4           4   Overrun error flag
U0C1.Bit3           3   Receive complete flag
U0C1.Bit2           2   Receive enable bit
U0C1.Bit1           1   Transmit buffer empty flag
U0C1.Bit0           0   Transmit enable bit
U0RB               0x0036   UART0 receive buffer register
U1MR               0x0038   UART1 transmit/receive mode register
U1MR.Bit7           7   Sleep select bit
U1MR.Bit6           6   Parity enable bit
U1MR.Bit5           5   Odd/Even parity select bit
U1MR.Bit4           4   Stop bit length select bit
U1MR.Bit3           3   Internal/External clock select bit
U1MR.Bit2           2   Serial I/O mode select bit 2
U1MR.Bit1           1   Serial I/O mode select bit 1
U1MR.Bit0           0   Serial I/O mode select bit 0
BRG1               0x0039   UART1 baud rate register (BRG1) (***)
U1TB               0x003A   UART1 transmit buffer register
U1C0               0x003C   UART1 transmit/receive control register 0
U1C0.Bit3           3   Transmit register empty flag
U1C0.Bit2           2   CTS/RTS select bit
U1C0.Bit1           1   BRG count source select bit 1
U1C0.Bit0           0   BRG count source select bit 0
U1C1               0x003D   UART1 transmit/receive control register 1
U1C1.Bit7           7   Error sum flag
U1C1.Bit6           6   Parity error flag
U1C1.Bit5           5   Framing error flag
U1C1.Bit4           4   Overrun error flag
U1C1.Bit3           3   Receive complete flag
U1C1.Bit2           2   Receive enable bit
U1C1.Bit1           1   Transmit buffer empty flag
U1C1.Bit0           0   Transmit enable bit
U1RB               0x003E   UART1 receive buffer register
CSREG              0x0040   Count start register (***)
CSREG.Bit7          7   Timer B2 count start bit
CSREG.Bit6          6   Timer B1 count start bit
CSREG.Bit5          5   Timer B0 count start bit
CSREG.Bit4          4   Timer A4 count start bit
CSREG.Bit3          3   Timer A3 count start bit
CSREG.Bit2          2   Timer A2 count start bit
CSREG.Bit1          1   Timer A1 count start bit
CSREG.Bit0          0   Timer A0 count start bit
RESERVED0041       0x0041   RESERVED
ONE_SSREG          0x0042   One-shot start register (***)
ONE_SSREG.Bit4      4   Timer A4 one-shot start bit
ONE_SSREG.Bit3      3   Timer A3 one-shot start bit
ONE_SSREG.Bit2      2   Timer A2 one-shot start bit
ONE_SSREG.Bit1      1   Timer A1 one-shot start bit
ONE_SSREG.Bit0      0   Timer A0 one-shot start bit
RESERVED0043       0x0043   RESERVED
UP_D_REG           0x0044   Up-down register (***)
UP_D_REG.Bit7       7   Timer A4 two-phase pulse signal processing select bit
UP_D_REG.Bit6       6   Timer A3 two-phase pulse signal processing select bit
UP_D_REG.Bit5       5   Timer A2 two-phase pulse signal processing select bit
UP_D_REG.Bit4       4   Timer A4 up-down bit
UP_D_REG.Bit3       3   Timer A3 up-down bit
UP_D_REG.Bit2       2   Timer A2 up-down bit
UP_D_REG.Bit1       1   Timer A1 up-down bit
UP_D_REG.Bit0       0   Timer A0 up-down bit
RESERVED0045       0x0045   RESERVED
TA0                0x0046   Timer A0 register
TA1                0x0048   Timer A1 register
TA2                0x004A   Timer A2 register
TA3                0x004C   Timer A3 register
TA4                0x004E   Timer A4 register
TB0                0x0050   Timer B0 register
TB1                0x0052   Timer B1 register
TB2                0x0054   Timer B2 register
TA0MR              0x0056   Timer A0 mode register
TA0MR.Bit7          7
TA0MR.Bit6          6
TA0MR.Bit5          5
TA0MR.Bit4          4
TA0MR.Bit3          3
TA0MR.Bit2          2
TA0MR.Bit1          1   Operating mode select bit 1
TA0MR.Bit0          0   Operating mode select bit 0
TA1MR              0x0057   Timer A1 mode register
TA1MR.Bit7          7
TA1MR.Bit6          6
TA1MR.Bit5          5
TA1MR.Bit4          4
TA1MR.Bit3          3
TA1MR.Bit2          2
TA1MR.Bit1          1   Operating mode select bit 1
TA1MR.Bit0          0   Operating mode select bit 0
TA2MR              0x0058   Timer A2 mode register
TA2MR.Bit7          7
TA2MR.Bit6          6
TA2MR.Bit5          5
TA2MR.Bit4          4
TA2MR.Bit3          3
TA2MR.Bit2          2
TA2MR.Bit1          1   Operating mode select bit 1
TA2MR.Bit0          0   Operating mode select bit 0
TA3MR              0x0059   Timer A3 mode register
TA3MR.Bit7          7
TA3MR.Bit6          6
TA3MR.Bit5          5
TA3MR.Bit4          4
TA3MR.Bit3          3
TA3MR.Bit2          2
TA3MR.Bit1          1   Operating mode select bit 1
TA3MR.Bit0          0   Operating mode select bit 0
TA4MR              0x005A   Timer A4 mode register
TA4MR.Bit7          7
TA4MR.Bit6          6
TA4MR.Bit5          5
TA4MR.Bit4          4
TA4MR.Bit3          3
TA4MR.Bit2          2
TA4MR.Bit1          1   Operating mode select bit 1
TA4MR.Bit0          0   Operating mode select bit 0
TB0MR              0x005B   Timer B0 mode register
TB0MR.Bit7          7
TB0MR.Bit6          6
TB0MR.Bit5          5
TB0MR.Bit3          3
TB0MR.Bit2          2
TB0MR.Bit1          1   Operating mode select bit 1
TB0MR.Bit0          0   Operating mode select bit 0
TB1MR              0x005C   Timer B1 mode register
TB1MR.Bit7          7
TB1MR.Bit6          6
TB1MR.Bit5          5
TB1MR.Bit3          3
TB1MR.Bit2          2
TB1MR.Bit1          1   Operating mode select bit 1
TB1MR.Bit0          0   Operating mode select bit 0
TB2MR              0x005D   Timer B2 mode register
TB2MR.Bit7          7
TB2MR.Bit6          6
TB2MR.Bit5          5
TB2MR.Bit3          3
TB2MR.Bit2          2
TB2MR.Bit1          1   Operating mode select bit 1
TB2MR.Bit0          0   Operating mode select bit 0
PM                 0x005E   Processor mode register
PM.Bit7             7   Clock 1 output select bit
PM.Bit5             5   Interrupt priority detection time select bit 5
PM.Bit4             4   Interrupt priority detection time select bit 4
PM.Bit3             3   Software reset bit
PM.Bit2             2   Wait bit
PM.Bit1             1   Processor mode bit 1
PM.Bit0             0   Processor mode bit 0
RESERVED005F       0x005F   RESERVED
WDT                0x0060   Watchdog timer register (***)
WDTFS              0x0061   Watchdog timer frequency select register (***)
WDTFS.Bit0          0   Watchdog timer frequency select bit
RESERVED0062       0x0062   RESERVED
RESERVED0063       0x0063   RESERVED
RESERVED0064       0x0064   RESERVED
RESERVED0065       0x0065   RESERVED
RESERVED0066       0x0066   RESERVED
RESERVED0067       0x0067   RESERVED
RESERVED0068       0x0068   RESERVED
RESERVED0069       0x0069   RESERVED
RESERVED006A       0x006A   RESERVED
RESERVED006B       0x006B   RESERVED
RESERVED006C       0x006C   RESERVED
RESERVED006D       0x006D   RESERVED
RESERVED006E       0x006E   RESERVED
RESERVED006F       0x006F   RESERVED
ADIC               0x0070   A-D conversion interrupt control register
ADIC.Bit3           3   Interrupt request bit
ADIC.Bit2           2   Interrupt priority level select bit 2
ADIC.Bit1           1   Interrupt priority level select bit 1
ADIC.Bit0           0   Interrupt priority level select bit 0
S0TIC              0x0071   UART0 transmit interrupt control register
S0TIC.Bit3           3   Interrupt request bit                
S0TIC.Bit2           2   Interrupt priority level select bit 2
S0TIC.Bit1           1   Interrupt priority level select bit 1
S0TIC.Bit0           0   Interrupt priority level select bit 0
S0RIC              0x0072   UART0 receive interrupt control register
S0RIC.Bit3           3   Interrupt request bit                
S0RIC.Bit2           2   Interrupt priority level select bit 2
S0RIC.Bit1           1   Interrupt priority level select bit 1
S0RIC.Bit0           0   Interrupt priority level select bit 0
S1TIC              0x0073   UART1 transmit interrupt control register
S1TIC.Bit3           3   Interrupt request bit                
S1TIC.Bit2           2   Interrupt priority level select bit 2
S1TIC.Bit1           1   Interrupt priority level select bit 1
S1TIC.Bit0           0   Interrupt priority level select bit 0
S1RIC              0x0074   UART1 receive interrupt control register
S1RIC.Bit3           3   Interrupt request bit                
S1RIC.Bit2           2   Interrupt priority level select bit 2
S1RIC.Bit1           1   Interrupt priority level select bit 1
S1RIC.Bit0           0   Interrupt priority level select bit 0
TA0IC              0x0075   Timer A0 interrupt control register
TA0IC.Bit3           3   Interrupt request bit                
TA0IC.Bit2           2   Interrupt priority level select bit 2
TA0IC.Bit1           1   Interrupt priority level select bit 1
TA0IC.Bit0           0   Interrupt priority level select bit 0
TA1IC              0x0076   Timer A1 interrupt control register
TA1IC.Bit3           3   Interrupt request bit                
TA1IC.Bit2           2   Interrupt priority level select bit 2
TA1IC.Bit1           1   Interrupt priority level select bit 1
TA1IC.Bit0           0   Interrupt priority level select bit 0
TA2IC              0x0077   Timer A2 interrupt control register
TA2IC.Bit3           3   Interrupt request bit                
TA2IC.Bit2           2   Interrupt priority level select bit 2
TA2IC.Bit1           1   Interrupt priority level select bit 1
TA2IC.Bit0           0   Interrupt priority level select bit 0
TA3IC              0x0078   Timer A3 interrupt control register
TA3IC.Bit3           3   Interrupt request bit                
TA3IC.Bit2           2   Interrupt priority level select bit 2
TA3IC.Bit1           1   Interrupt priority level select bit 1
TA3IC.Bit0           0   Interrupt priority level select bit 0
TA4IC              0x0079   Timer A4 interrupt control register
TA4IC.Bit3           3   Interrupt request bit                
TA4IC.Bit2           2   Interrupt priority level select bit 2
TA4IC.Bit1           1   Interrupt priority level select bit 1
TA4IC.Bit0           0   Interrupt priority level select bit 0
TB0IC              0x007A   Timer B0 interrupt control register
TB0IC.Bit3           3   Interrupt request bit                
TB0IC.Bit2           2   Interrupt priority level select bit 2
TB0IC.Bit1           1   Interrupt priority level select bit 1
TB0IC.Bit0           0   Interrupt priority level select bit 0
TB1IC              0x007B   Timer B1 interrupt control register
TB1IC.Bit3           3   Interrupt request bit                
TB1IC.Bit2           2   Interrupt priority level select bit 2
TB1IC.Bit1           1   Interrupt priority level select bit 1
TB1IC.Bit0           0   Interrupt priority level select bit 0
TB2IC              0x007C   Timer B2 interrupt control register
TB2IC.Bit3           3   Interrupt request bit                
TB2IC.Bit2           2   Interrupt priority level select bit 2
TB2IC.Bit1           1   Interrupt priority level select bit 1
TB2IC.Bit0           0   Interrupt priority level select bit 0
INT0IC             0x007D   INT0 interrupt control register
INT0IC.Bit5         5   Level sense/Edge sense select bit
INT0IC.Bit4         4   Polarity select bit
INT0IC.Bit3         3   Interrupt request bit
INT0IC.Bit2         2   Interrupt priority level select bit 2
INT0IC.Bit1         1   Interrupt priority level select bit 1
INT0IC.Bit0         0   Interrupt priority level select bit 0
INT1IC             0x007E   INT1 interrupt control register
INT1IC.Bit5         5   Level sense/Edge sense select bit
INT1IC.Bit4         4   Polarity select bit
INT1IC.Bit3         3   Interrupt request bit
INT1IC.Bit2         2   Interrupt priority level select bit 2
INT1IC.Bit1         1   Interrupt priority level select bit 1
INT1IC.Bit0         0   Interrupt priority level select bit 0
INT2IC             0x007F   INT2 interrupt control register
INT2IC.Bit5         5   Level sense/Edge sense select bit
INT2IC.Bit4         4   Polarity select bit
INT2IC.Bit3         3   Interrupt request bit
INT2IC.Bit2         2   Interrupt priority level select bit 2
INT2IC.Bit1         1   Interrupt priority level select bit 1
INT2IC.Bit0         0   Interrupt priority level select bit 0


.M37721S1BFP
; http://www.infomicom.mesc.co.jp/micom/english/edocs/7700/um/e7721um.pdf

; *** - собственные сокращения


; MEMORY MAP
area DATA FSR_1       0x0000:0x0080
area DATA RAM_        0x0080:0x0480   Internal RAM
area BSS  RESERVED    0x0480:0x1FC0
area DATA FSR_2       0x1FC0:0x2000
area BSS  RESERVED    0x2000:0xFFCE
area DATA USER_VEC    0xFFCE:0x10000


; Interrupt and reset vector assignments
interrupt __RESET           0xFFFE   RESET
interrupt Zero_Div          0xFFFC   Zero division
interrupt BRK_              0xFFFA   BRK instruction
interrupt DBC_              0xFFF8   DBC
interrupt WATCDOG           0xFFF6   Watchdog timer
interrupt INT0_             0xFFF4   INT0
interrupt INT1_             0xFFF2   INT1
interrupt INT2_             0xFFF0   INT2
interrupt Timer_A0          0xFFEE   Timer A0      
interrupt Timer_A1          0xFFEC   Timer A1      
interrupt Timer_A2          0xFFEA   Timer A2      
interrupt Timer_A3          0xFFE8   Timer A3      
interrupt Timer_A4          0xFFE6   Timer A4      
interrupt Timer_B0          0xFFE4   Timer B0      
interrupt Timer_B1          0xFFE2   Timer B1      
interrupt Timer_B2          0xFFE0   Timer B2      
interrupt UART0_receive     0xFFDE   UART0 receive 
interrupt UART0_transmit    0xFFDC   UART0 transmit
interrupt UART1_receive     0xFFDA   UART1 receive 
interrupt UART1_transmit    0xFFD8   UART1 transmit
interrupt A_D_conversion    0xFFD6   A/D conversion
interrupt DMA0_             0xFFD4   DMA0
interrupt DMA1_             0xFFD2   DMA1
interrupt DMA2_             0xFFD0   DMA2
interrupt DMA3_             0xFFCE   DMA3


; INPUT/ OUTPUT PORTS
RESERVED0000       0x0000   RESERVED
RESERVED0001       0x0001   RESERVED
RESERVED0002       0x0002   RESERVED
RESERVED0003       0x0003   RESERVED
RESERVED0004       0x0004   RESERVED
RESERVED0005       0x0005   RESERVED
RESERVED0006       0x0006   RESERVED
RESERVED0007       0x0007   RESERVED
RESERVED0008       0x0008   RESERVED
RESERVED0009       0x0009   RESERVED
P4                 0x000A   Port P4 register
P4.P4_7             7   Port P47's pin
P4.P4_6             6   Port P46's pin
P4.P4_5             5   Port P45's pin
P4.P4_4             4   Port P44's pin
P4.P4_3             3   Port P43's pin
P4.P4_2             2   Port P42's pin
P4.P4_1             1   Port P41's pin
P4.P4_0             0   Port P40's pin
P5                 0x000B   Port P5 register
P5.P5_7             7   Port P57's pin
P5.P5_6             6   Port P56's pin
P5.P5_5             5   Port P55's pin
P5.P5_4             4   Port P54's pin
P5.P5_3             3   Port P53's pin
P5.P5_2             2   Port P52's pin
P5.P5_1             1   Port P51's pin
P5.P5_0             0   Port P50's pin
PD4                0x000C   Port P4 direction register
PD4.PD4_7           7   Port P47 direction bit
PD4.PD4_6           6   Port P46 direction bit
PD4.PD4_5           5   Port P45 direction bit
PD4.PD4_4           4   Port P44 direction bit
PD4.PD4_3           3   Port P43 direction bit
PD4.PD4_2           2   Port P42 direction bit
PD4.PD4_1           1   Port P41 direction bit
PD4.PD4_0           0   Port P40 direction bit
PD5                0x000D   Port P5 direction register
PD5.PD5_7           7   Port P57 direction bit
PD5.PD5_6           6   Port P56 direction bit
PD5.PD5_5           5   Port P55 direction bit
PD5.PD5_4           4   Port P54 direction bit
PD5.PD5_3           3   Port P53 direction bit
PD5.PD5_2           2   Port P52 direction bit
PD5.PD5_1           1   Port P51 direction bit
PD5.PD5_0           0   Port P50 direction bit
P6                 0x000E   Port P6 register
P6.P6_7             7   Port P67's pin
P6.P6_6             6   Port P66's pin
P6.P6_5             5   Port P65's pin
P6.P6_4             4   Port P64's pin
P6.P6_3             3   Port P63's pin
P6.P6_2             2   Port P62's pin
P6.P6_1             1   Port P61's pin
P6.P6_0             0   Port P60's pin
P7                 0x000F   Port P7 register
P7.P7_7             7   Port P77's pin
P7.P7_6             6   Port P76's pin
P7.P7_5             5   Port P75's pin
P7.P7_4             4   Port P74's pin
P7.P7_3             3   Port P73's pin
P7.P7_2             2   Port P72's pin
P7.P7_1             1   Port P71's pin
P7.P7_0             0   Port P70's pin
PD6                0x0010   Port P6 direction register
PD6.PD6_7           7   Port P67 direction bit
PD6.PD6_6           6   Port P66 direction bit
PD6.PD6_5           5   Port P65 direction bit
PD6.PD6_4           4   Port P64 direction bit
PD6.PD6_3           3   Port P63 direction bit
PD6.PD6_2           2   Port P62 direction bit
PD6.PD6_1           1   Port P61 direction bit
PD6.PD6_0           0   Port P60 direction bit
PD7                0x0011   Port P7 direction register
PD7.PD7_7           7   Port P77 direction bit
PD7.PD7_6           6   Port P76 direction bit
PD7.PD7_5           5   Port P75 direction bit
PD7.PD7_4           4   Port P74 direction bit
PD7.PD7_3           3   Port P73 direction bit
PD7.PD7_2           2   Port P72 direction bit
PD7.PD7_1           1   Port P71 direction bit
PD7.PD7_0           0   Port P70 direction bit
P8                 0x0012   Port P8 register
P8.P8_7             7   Port P87's pin
P8.P8_6             6   Port P86's pin
P8.P8_5             5   Port P85's pin
P8.P8_4             4   Port P84's pin
P8.P8_3             3   Port P83's pin
P8.P8_2             2   Port P82's pin
P8.P8_1             1   Port P81's pin
P8.P8_0             0   Port P80's pin
P9                 0x0013   Port P9 register
P9.P9_7             7   Port P97's pin
P9.P9_6             6   Port P96's pin
P9.P9_5             5   Port P95's pin
P9.P9_4             4   Port P94's pin
P9.P9_3             3   Port P93's pin
P9.P9_2             2   Port P92's pin
P9.P9_1             1   Port P91's pin
P9.P9_0             0   Port P90's pin
PD8                0x0014   Port P8 direction register
PD8.PD8_7           7   Port P87 direction bit
PD8.PD8_6           6   Port P86 direction bit
PD8.PD8_5           5   Port P85 direction bit
PD8.PD8_4           4   Port P84 direction bit
PD8.PD8_3           3   Port P83 direction bit
PD8.PD8_2           2   Port P82 direction bit
PD8.PD8_1           1   Port P81 direction bit
PD8.PD8_0           0   Port P80 direction bit
PD9                0x0015   Port P9 direction register
PD9.PD9_7           7   Port P97 direction bit
PD9.PD9_6           6   Port P96 direction bit
PD9.PD9_5           5   Port P95 direction bit
PD9.PD9_4           4   Port P94 direction bit
PD9.PD9_3           3   Port P93 direction bit
PD9.PD9_2           2   Port P92 direction bit
PD9.PD9_1           1   Port P91 direction bit
PD9.PD9_0           0   Port P90 direction bit
P10                0x0016   Port P10 register
P10.P10_7           7   Port P107's pin
P10.P10_6           6   Port P106's pin
P10.P10_5           5   Port P105's pin
P10.P10_4           4   Port P104's pin
P10.P10_3           3   Port P103's pin
P10.P10_2           2   Port P102's pin
P10.P10_1           1   Port P101's pin
P10.P10_0           0   Port P100's pin
RESERVED0017       0x0017   RESERVED
PD10               0x0018   Port P10 direction register
PD10.PD10_7           7   Port P107 direction bit
PD10.PD10_6           6   Port P106 direction bit
PD10.PD10_5           5   Port P105 direction bit
PD10.PD10_4           4   Port P104 direction bit
PD10.PD10_3           3   Port P103 direction bit
PD10.PD10_2           2   Port P102 direction bit
PD10.PD10_1           1   Port P101 direction bit
PD10.PD10_0           0   Port P100 direction bit
RESERVED0019       0x0019   RESERVED
POD_R0             0x001A   Pulse output data register 0 (***)
POD_R0.Bit3         3   RTP03 pulse output data bit
POD_R0.Bit2         2   RTP02 pulse output data bit
POD_R0.Bit1         1   RTP01 pulse output data bit
POD_R0.Bit0         0   RTP00 pulse output data bit
RESERVED001B       0x001B   RESERVED
POD_R1             0x001C   Pulse output data register 1 (***)
POD_R1.Bit7         7   RTP13 pulse output data bit
POD_R1.Bit6         6   RTP12 pulse output data bit
POD_R1.Bit5         5   RTP11 pulse output data bit
POD_R1.Bit4         4   RTP10 pulse output data bit
POD_R1.Bit3         3   RTP03 pulse output data bit
POD_R1.Bit2         2   RTP02 pulse output data bit
RESERVED001D       0x001D   RESERVED
ADCON0             0x001E   A-D control register (***)
ADCON0.Bit7         7   A-D conversion frequency select bit
ADCON0.Bit6         6   A-D conversion start bit
ADCON0.Bit5         5   Trigger select bit
ADCON0.Bit4         4   A-D operation mode select bit 4
ADCON0.Bit3         3   A-D operation mode select bit 3
ADCON0.Bit2         2   Analog input select bit 2
ADCON0.Bit1         1   Analog input select bit 1
ADCON0.Bit0         0   Analog input select bit 0
ADSPS_R            0x001F   A-D sweep pin select register (***)
ADSPS_R.Bit1        1   A-D sweep pin select bit 1
ADSPS_R.Bit0        0   A-D sweep pin select bit 0
AD0                0x0020   A-D register 0
AD0.Bit7            7   Reads an A-D conversion result bit 7
AD0.Bit6            6   Reads an A-D conversion result bit 6
AD0.Bit5            5   Reads an A-D conversion result bit 5
AD0.Bit4            4   Reads an A-D conversion result bit 4
AD0.Bit3            3   Reads an A-D conversion result bit 3
AD0.Bit2            2   Reads an A-D conversion result bit 2
AD0.Bit1            1   Reads an A-D conversion result bit 1
AD0.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0021       0x0021   RESERVED
AD1                0x0022   A-D register 1
AD1.Bit7            7   Reads an A-D conversion result bit 7
AD1.Bit6            6   Reads an A-D conversion result bit 6
AD1.Bit5            5   Reads an A-D conversion result bit 5
AD1.Bit4            4   Reads an A-D conversion result bit 4
AD1.Bit3            3   Reads an A-D conversion result bit 3
AD1.Bit2            2   Reads an A-D conversion result bit 2
AD1.Bit1            1   Reads an A-D conversion result bit 1
AD1.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0023       0x0023   RESERVED
AD2                0x0024   A-D register 2
AD2.Bit7            7   Reads an A-D conversion result bit 7
AD2.Bit6            6   Reads an A-D conversion result bit 6
AD2.Bit5            5   Reads an A-D conversion result bit 5
AD2.Bit4            4   Reads an A-D conversion result bit 4
AD2.Bit3            3   Reads an A-D conversion result bit 3
AD2.Bit2            2   Reads an A-D conversion result bit 2
AD2.Bit1            1   Reads an A-D conversion result bit 1
AD2.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0025       0x0025   RESERVED
AD3                0x0026   A-D register 3
AD3.Bit7            7   Reads an A-D conversion result bit 7
AD3.Bit6            6   Reads an A-D conversion result bit 6
AD3.Bit5            5   Reads an A-D conversion result bit 5
AD3.Bit4            4   Reads an A-D conversion result bit 4
AD3.Bit3            3   Reads an A-D conversion result bit 3
AD3.Bit2            2   Reads an A-D conversion result bit 2
AD3.Bit1            1   Reads an A-D conversion result bit 1
AD3.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0027       0x0027   RESERVED
AD4                0x0028   A-D register 4
AD4.Bit7            7   Reads an A-D conversion result bit 7
AD4.Bit6            6   Reads an A-D conversion result bit 6
AD4.Bit5            5   Reads an A-D conversion result bit 5
AD4.Bit4            4   Reads an A-D conversion result bit 4
AD4.Bit3            3   Reads an A-D conversion result bit 3
AD4.Bit2            2   Reads an A-D conversion result bit 2
AD4.Bit1            1   Reads an A-D conversion result bit 1
AD4.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0029       0x0029   RESERVED
AD5                0x002A   A-D register 5
AD5.Bit7            7   Reads an A-D conversion result bit 7
AD5.Bit6            6   Reads an A-D conversion result bit 6
AD5.Bit5            5   Reads an A-D conversion result bit 5
AD5.Bit4            4   Reads an A-D conversion result bit 4
AD5.Bit3            3   Reads an A-D conversion result bit 3
AD5.Bit2            2   Reads an A-D conversion result bit 2
AD5.Bit1            1   Reads an A-D conversion result bit 1
AD5.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002B       0x002B   RESERVED
AD6                0x002C   A-D register 6
AD6.Bit7            7   Reads an A-D conversion result bit 7
AD6.Bit6            6   Reads an A-D conversion result bit 6
AD6.Bit5            5   Reads an A-D conversion result bit 5
AD6.Bit4            4   Reads an A-D conversion result bit 4
AD6.Bit3            3   Reads an A-D conversion result bit 3
AD6.Bit2            2   Reads an A-D conversion result bit 2
AD6.Bit1            1   Reads an A-D conversion result bit 1
AD6.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002D       0x002D   RESERVED
AD7                0x002E   A-D register 7
AD7.Bit7            7   Reads an A-D conversion result bit 7
AD7.Bit6            6   Reads an A-D conversion result bit 6
AD7.Bit5            5   Reads an A-D conversion result bit 5
AD7.Bit4            4   Reads an A-D conversion result bit 4
AD7.Bit3            3   Reads an A-D conversion result bit 3
AD7.Bit2            2   Reads an A-D conversion result bit 2
AD7.Bit1            1   Reads an A-D conversion result bit 1
AD7.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002F       0x002F   RESERVED
U0MR               0x0030   UART0 transmit/receive mode register
U0MR.Bit7           7   Sleep select bit
U0MR.Bit6           6   Parity enable bit
U0MR.Bit5           5   Odd/Even parity select bit
U0MR.Bit4           4   Stop bit length select bit
U0MR.Bit3           3   Internal/External clock select bit
U0MR.Bit2           2   Serial I/O mode select bit 2
U0MR.Bit1           1   Serial I/O mode select bit 1
U0MR.Bit0           0   Serial I/O mode select bit 0
BRG0               0x0031   UART0 baud rate register (BRG0) (***)
U0TB               0x0032   UART0 transmit buffer register
U0C0               0x0034   UART0 transmit/receive control register 0
U0C0.Bit3           3   Transmit register empty flag
U0C0.Bit2           2   CTS/RTS select bit
U0C0.Bit1           1   BRG count source select bit 1
U0C0.Bit0           0   BRG count source select bit 0
U0C1               0x0035   UART0 transmit/receive control register 1
U0C1.Bit7           7   Error sum flag
U0C1.Bit6           6   Parity error flag
U0C1.Bit5           5   Framing error flag
U0C1.Bit4           4   Overrun error flag
U0C1.Bit3           3   Receive complete flag
U0C1.Bit2           2   Receive enable bit
U0C1.Bit1           1   Transmit buffer empty flag
U0C1.Bit0           0   Transmit enable bit
U0RB               0x0036   UART0 receive buffer register
U1MR               0x0038   UART1 transmit/receive mode register
BRG1               0x0039   UART1 baud rate register (BRG1) (***)
U1TB               0x003A   UART1 transmit buffer register
U1C0               0x003C   UART1 transmit/receive control register 0
U1C0.Bit3           3   Transmit register empty flag
U1C0.Bit2           2   CTS/RTS select bit
U1C0.Bit1           1   BRG count source select bit 1
U1C0.Bit0           0   BRG count source select bit 0
U1C1               0x003D   UART1 transmit/receive control register 1
U1C1.Bit7           7   Error sum flag
U1C1.Bit6           6   Parity error flag
U1C1.Bit5           5   Framing error flag
U1C1.Bit4           4   Overrun error flag
U1C1.Bit3           3   Receive complete flag
U1C1.Bit2           2   Receive enable bit
U1C1.Bit1           1   Transmit buffer empty flag
U1C1.Bit0           0   Transmit enable bit
U1RB               0x003E   UART1 receive buffer register
CSREG              0x0040   Count start register (***)
CSREG.Bit7          7   Timer B2 count start bit
CSREG.Bit6          6   Timer B1 count start bit
CSREG.Bit5          5   Timer B0 count start bit
CSREG.Bit4          4   Timer A4 count start bit
CSREG.Bit3          3   Timer A3 count start bit
CSREG.Bit2          2   Timer A2 count start bit
CSREG.Bit1          1   Timer A1 count start bit
CSREG.Bit0          0   Timer A0 count start bit
RESERVED0041       0x0041   RESERVED
ONE_SSREG          0x0042   One-shot start register (***)
ONE_SSREG.Bit4      4   Timer A4 one-shot start bit
ONE_SSREG.Bit3      3   Timer A3 one-shot start bit
ONE_SSREG.Bit2      2   Timer A2 one-shot start bit
RESERVED0043       0x0043   RESERVED
UP_D_REG           0x0044   Up-down register (***)
UP_D_REG.Bit7       7   Timer A4 two-phase pulse signal processing select bit
UP_D_REG.Bit6       6   Timer A3 two-phase pulse signal processing select bit
UP_D_REG.Bit5       5   Timer A2 two-phase pulse signal processing select bit
UP_D_REG.Bit4       4   Timer A4 up-down bit
UP_D_REG.Bit3       3   Timer A3 up-down bit
UP_D_REG.Bit2       2   Timer A2 up-down bit
RESERVED0045       0x0045   RESERVED
TA0                0x0046   Timer A0 register
TA1                0x0048   Timer A1 register
TA2                0x004A   Timer A2 register
TA3                0x004C   Timer A3 register
TA4                0x004E   Timer A4 register
TB0                0x0050   Timer B0 register
TB1                0x0052   Timer B1 register
TB2                0x0054   Timer B2 register
TA0MR              0x0056   Timer A0 mode register
TA0MR.Bit7          7   
TA0MR.Bit6          6   
TA0MR.Bit5          5   
TA0MR.Bit4          4   
TA0MR.Bit3          3   
TA0MR.Bit2          2   
TA0MR.Bit1          1   Operating mode select bit 1
TA0MR.Bit0          0   Operating mode select bit 0
TA1MR              0x0057   Timer A1 mode register
TA1MR.Bit7          7   
TA1MR.Bit6          6   
TA1MR.Bit5          5   
TA1MR.Bit4          4   
TA1MR.Bit3          3   
TA1MR.Bit2          2   
TA1MR.Bit1          1   Operating mode select bit 1
TA1MR.Bit0          0   Operating mode select bit 0
TA2MR              0x0058   Timer A2 mode register
TA2MR.Bit7          7   
TA2MR.Bit6          6   
TA2MR.Bit5          5   
TA2MR.Bit4          4   
TA2MR.Bit3          3   
TA2MR.Bit2          2   
TA2MR.Bit1          1   Operating mode select bit 1
TA2MR.Bit0          0   Operating mode select bit 0
TA3MR              0x0059   Timer A3 mode register
TA3MR.Bit7          7   
TA3MR.Bit6          6   
TA3MR.Bit5          5   
TA3MR.Bit4          4   
TA3MR.Bit3          3   
TA3MR.Bit2          2   
TA3MR.Bit1          1   Operating mode select bit 1
TA3MR.Bit0          0   Operating mode select bit 0
TA4MR              0x005A   Timer A4 mode register
TA4MR.Bit7          7   
TA4MR.Bit6          6   
TA4MR.Bit5          5   
TA4MR.Bit4          4   
TA4MR.Bit3          3   
TA4MR.Bit2          2   
TA4MR.Bit1          1   Operating mode select bit 1
TA4MR.Bit0          0   Operating mode select bit 0
TB0MR              0x005B   Timer B0 mode register
TB0MR.Bit7          7
TB0MR.Bit6          6
TB0MR.Bit5          5
TB0MR.Bit3          3
TB0MR.Bit2          2
TB0MR.Bit1          1   Operating mode select bit 1
TB0MR.Bit0          0   Operating mode select bit 0
TB1MR              0x005C   Timer B1 mode register
TB1MR.Bit7          7
TB1MR.Bit6          6
TB1MR.Bit5          5
TB1MR.Bit3          3
TB1MR.Bit2          2
TB1MR.Bit1          1   Operating mode select bit 1
TB1MR.Bit0          0   Operating mode select bit 0
TB2MR              0x005D   Timer B2 mode register
TB2MR.Bit7          7
TB2MR.Bit6          6
TB2MR.Bit5          5
TB2MR.Bit3          3
TB2MR.Bit2          2
TB2MR.Bit1          1   Operating mode select bit 1
TB2MR.Bit0          0   Operating mode select bit 0
PM0                0x005E   Processor mode register 0
PM0.Bit7            7   Stack bank select bit
PM0.Bit5            5   Interrupt priority detection time select bit 5
PM0.Bit4            4   Interrupt priority detection time select bit 4
PM0.Bit3            3   Software reset bit
PM0.Bit2            2   Wait bit
PM1                0x005F   Processor mode register 1
PM1.Bit1            1   Internal RAM area select bit
WDT                0x0060   Watchdog timer register (***)
WDTFS              0x0061   Watchdog timer frequency select register (***)
WDTFS.Bit0          0   Watchdog timer frequency select bit
RTOC_R             0x0062   Real-time output control register (***)
RTOC_R.Bit2         2   Pulse output mode select bit
RTOC_R.Bit1         1   Waveform output select bit 1
RTOC_R.Bit0         0   Waveform output select bit 0
RESERVED0063       0x0063   RESERVED
DRAM_CR            0x0064   DRAM control register (***)
DRAM_CR.Bit7        7   DRAM validity bit
DRAM_CR.Bit3        3   DRAM area select bit 3
DRAM_CR.Bit2        2   DRAM area select bit 2
DRAM_CR.Bit1        1   DRAM area select bit 1
DRAM_CR.Bit0        0   DRAM area select bit 0
RESERVED0065       0x0065   RESERVED
REFR_T             0x0066   Refresh timer (***)
RESERVED0067       0x0067   RESERVED
DMAC_RL            0x0068   DMAC control register L (***)
DMAC_RL.Bit7        7   DMA3 request bit
DMAC_RL.Bit6        6   DMA2 request bit
DMAC_RL.Bit5        5   DMA1 request bit
DMAC_RL.Bit4        4   DMA0 request bit
DMAC_RL.Bit3        3   TC pin validity bit
DMAC_RL.Bit0        0   Priority select bit
DMAC_RH            0x0069   DMAC control register H (***)
DMAC_RH.Bit7        7   DMA3 enable bit
DMAC_RH.Bit6        6   DMA2 enable bit
DMAC_RH.Bit5        5   DMA1 enable bit
DMAC_RH.Bit4        4   DMA0 enable bit
DMAC_RH.Bit3        3   Software DMA3 request bit
DMAC_RH.Bit2        2   Software DMA2 request bit
DMAC_RH.Bit1        1   Software DMA1 request bit
DMAC_RH.Bit0        0   Software DMA0 request bit
RESERVED006A       0x006A   RESERVED
RESERVED006B       0x006B   RESERVED
DMA0_ICR           0x006C   DMA0 interrupt control register (***)
DMA0_ICR.Bit3       3   Interrupt request bit
DMA0_ICR.Bit2       2   Interrupt priority level select bit 2
DMA0_ICR.Bit1       1   Interrupt priority level select bit 1
DMA0_ICR.Bit0       0   Interrupt priority level select bit 0
DMA1_ICR           0x006D   DMA1 interrupt control register (***)
DMA1_ICR.Bit3       3   Interrupt request bit
DMA1_ICR.Bit2       2   Interrupt priority level select bit 2
DMA1_ICR.Bit1       1   Interrupt priority level select bit 1
DMA1_ICR.Bit0       0   Interrupt priority level select bit 0
DMA2_ICR           0x006E   DMA2 interrupt control register (***)
DMA2_ICR.Bit3       3   Interrupt request bit
DMA2_ICR.Bit2       2   Interrupt priority level select bit 2
DMA2_ICR.Bit1       1   Interrupt priority level select bit 1
DMA2_ICR.Bit0       0   Interrupt priority level select bit 0
DMA3_ICR           0x006F   DMA3 interrupt control register (***)
DMA3_ICR.Bit3       3   Interrupt request bit
DMA3_ICR.Bit2       2   Interrupt priority level select bit 2
DMA3_ICR.Bit1       1   Interrupt priority level select bit 1
DMA3_ICR.Bit0       0   Interrupt priority level select bit 0
ADIC               0x0070   A-D conversion interrupt control register
ADIC.Bit3           3   Interrupt request bit
ADIC.Bit2           2   Interrupt priority level select bit 2
ADIC.Bit1           1   Interrupt priority level select bit 1
ADIC.Bit0           0   Interrupt priority level select bit 0
S0TIC              0x0071   UART0 transmit interrupt control register
S0TIC.Bit3          3   Interrupt request bit                
S0TIC.Bit2          2   Interrupt priority level select bit 2
S0TIC.Bit1          1   Interrupt priority level select bit 1
S0TIC.Bit0          0   Interrupt priority level select bit 0
S0RIC              0x0072   UART0 receive interrupt control register
S0RIC.Bit3          3   Interrupt request bit                
S0RIC.Bit2          2   Interrupt priority level select bit 2
S0RIC.Bit1          1   Interrupt priority level select bit 1
S0RIC.Bit0          0   Interrupt priority level select bit 0
S1TIC              0x0073   UART1 transmit interrupt control register
S1TIC.Bit3          3   Interrupt request bit                
S1TIC.Bit2          2   Interrupt priority level select bit 2
S1TIC.Bit1          1   Interrupt priority level select bit 1
S1TIC.Bit0          0   Interrupt priority level select bit 0
S1RIC              0x0074   UART1 receive interrupt control register
S1RIC.Bit3          3   Interrupt request bit                
S1RIC.Bit2          2   Interrupt priority level select bit 2
S1RIC.Bit1          1   Interrupt priority level select bit 1
S1RIC.Bit0          0   Interrupt priority level select bit 0
TA0IC              0x0075   Timer A0 interrupt control register
TA0IC.Bit3          3   Interrupt request bit                
TA0IC.Bit2          2   Interrupt priority level select bit 2
TA0IC.Bit1          1   Interrupt priority level select bit 1
TA0IC.Bit0          0   Interrupt priority level select bit 0
TA1IC              0x0076   Timer A1 interrupt control register
TA1IC.Bit3          3   Interrupt request bit                
TA1IC.Bit2          2   Interrupt priority level select bit 2
TA1IC.Bit1          1   Interrupt priority level select bit 1
TA1IC.Bit0          0   Interrupt priority level select bit 0
TA2IC              0x0077   Timer A2 interrupt control register
TA2IC.Bit3          3   Interrupt request bit                
TA2IC.Bit2          2   Interrupt priority level select bit 2
TA2IC.Bit1          1   Interrupt priority level select bit 1
TA2IC.Bit0          0   Interrupt priority level select bit 0
TA3IC              0x0078   Timer A3 interrupt control register
TA3IC.Bit3          3   Interrupt request bit                
TA3IC.Bit2          2   Interrupt priority level select bit 2
TA3IC.Bit1          1   Interrupt priority level select bit 1
TA3IC.Bit0          0   Interrupt priority level select bit 0
TA4IC              0x0079   Timer A4 interrupt control register
TA4IC.Bit3          3   Interrupt request bit                
TA4IC.Bit2          2   Interrupt priority level select bit 2
TA4IC.Bit1          1   Interrupt priority level select bit 1
TA4IC.Bit0          0   Interrupt priority level select bit 0
TB0IC              0x007A   Timer B0 interrupt control register
TB0IC.Bit3          3   Interrupt request bit                
TB0IC.Bit2          2   Interrupt priority level select bit 2
TB0IC.Bit1          1   Interrupt priority level select bit 1
TB0IC.Bit0          0   Interrupt priority level select bit 0
TB1IC              0x007B   Timer B1 interrupt control register
TB1IC.Bit3          3   Interrupt request bit                
TB1IC.Bit2          2   Interrupt priority level select bit 2
TB1IC.Bit1          1   Interrupt priority level select bit 1
TB1IC.Bit0          0   Interrupt priority level select bit 0
TB2IC              0x007C   Timer B2 interrupt control register
TB2IC.Bit3          3   Interrupt request bit                
TB2IC.Bit2          2   Interrupt priority level select bit 2
TB2IC.Bit1          1   Interrupt priority level select bit 1
TB2IC.Bit0          0   Interrupt priority level select bit 0
INT0IC             0x007D   INT0 interrupt control register
INT0IC.Bit5         5   Level sense/Edge sense select bit
INT0IC.Bit4         4   Polarity select bit
INT0IC.Bit3         3   Interrupt request bit
INT0IC.Bit2         2   Interrupt priority level select bit 2
INT0IC.Bit1         1   Interrupt priority level select bit 1
INT0IC.Bit0         0   Interrupt priority level select bit 0
INT1IC             0x007E   INT1 interrupt control register
INT1IC.Bit5         5   Level sense/Edge sense select bit
INT1IC.Bit4         4   Polarity select bit
INT1IC.Bit3         3   Interrupt request bit
INT1IC.Bit2         2   Interrupt priority level select bit 2
INT1IC.Bit1         1   Interrupt priority level select bit 1
INT1IC.Bit0         0   Interrupt priority level select bit 0
INT2IC             0x007F   INT2 interrupt control register
INT2IC.Bit5         5   Level sense/Edge sense select bit
INT2IC.Bit4         4   Polarity select bit
INT2IC.Bit3         3   Interrupt request bit
INT2IC.Bit2         2   Interrupt priority level select bit 2
INT2IC.Bit1         1   Interrupt priority level select bit 1
INT2IC.Bit0         0   Interrupt priority level select bit 0
SAR0L              0x1FC0   Source address register 0 L
SAR0M              0x1FC1   Source address register 0 M
SAR0H              0x1FC2   Source address register 0 H
RESERVED1FC3       0x1FC3   RESERVED
DAR0L              0x1FC4   Destination address register 0 L
DAR0M              0x1FC5   Destination address register 0 M
DAR0H              0x1FC6   Destination address register 0 H
RESERVED1FC7       0x1FC7   RESERVED
TCR0L              0x1FC8   Transfer counter register 0 L
TCR0M              0x1FC9   Transfer counter register 0 M
TCR0H              0x1FCA   Transfer counter register 0 H
RESERVED1FCB       0x1FCB   RESERVED
DMA0_MRL           0x1FCC   DMA0 mode register L (***)
DMA0_MRL.Bit7       7   Transfer destination address direction select bit 7
DMA0_MRL.Bit6       6   Transfer destination address direction select bit 6
DMA0_MRL.Bit5       5   Transfer source address direction select bit 5
DMA0_MRL.Bit4       4   Transfer source address direction select bit 4
DMA0_MRL.Bit2       2   Transfer mode select bit
DMA0_MRL.Bit1       1   Transfer method select bit
DMA0_MRL.Bit0       0   Number-of-unit-transfer-bits select bit
DMA0_MRH           0x1FCD   DMA0 mode register H (***)
DMA0_MRH.Bit7       7   Continuous transfer mode select bit 7
DMA0_MRH.Bit6       6   Continuous transfer mode select bit 6
DMA0_MRH.Bit5       5   Transfer destination wait bit
DMA0_MRH.Bit4       4   Transfer source wait bit
DMA0_MRH.Bit1       1   I/O connection select bit
DMA0_MRH.Bit0       0   Transfer direction select bit
DMA0_CR            0x1FCE   DMA0 control register (***)
DMA0_CR.Bit5        5   DMAACKi validity bit
DMA0_CR.Bit4        4   Edge sense/Level sense select bit
DMA0_CR.Bit3        3   DMA request source select bit 3
DMA0_CR.Bit2        2   DMA request source select bit 2
DMA0_CR.Bit1        1   DMA request source select bit 1
DMA0_CR.Bit0        0   DMA request source select bit 0
RESERVED1FCF       0x1FCF   RESERVED
SAR1L              0x1FD0   Source address register 1 L
SAR1M              0x1FD1   Source address register 1 M
SAR1H              0x1FD2   Source address register 1 H
RESERVED1FD3       0x1FD3   RESERVED
DAR1L              0x1FD4   Destination address register 1 L
DAR1M              0x1FD5   Destination address register 1 M
DAR1H              0x1FD6   Destination address register 1 H
RESERVED1FD7       0x1FD7   RESERVED
TCR1L              0x1FD8   Transfer counter register 1 L
TCR1M              0x1FD9   Transfer counter register 1 M
TCR1H              0x1FDA   Transfer counter register 1 H
RESERVED1FDB       0x1FDB   RESERVED
DMA1_MRL           0x1FDC   DMA1 mode register L (***)
DMA1_MRL.Bit7       7   Transfer destination address direction select bit 7
DMA1_MRL.Bit6       6   Transfer destination address direction select bit 6
DMA1_MRL.Bit5       5   Transfer source address direction select bit 5
DMA1_MRL.Bit4       4   Transfer source address direction select bit 4
DMA1_MRL.Bit2       2   Transfer mode select bit
DMA1_MRL.Bit1       1   Transfer method select bit
DMA1_MRL.Bit0       0   Number-of-unit-transfer-bits select bit
DMA1_MRH           0x1FDD   DMA1 mode register H (***)
DMA1_MRH.Bit7       7   Continuous transfer mode select bit 7
DMA1_MRH.Bit6       6   Continuous transfer mode select bit 6
DMA1_MRH.Bit5       5   Transfer destination wait bit
DMA1_MRH.Bit4       4   Transfer source wait bit
DMA1_MRH.Bit1       1   I/O connection select bit
DMA1_MRH.Bit0       0   Transfer direction select bit
DMA1_CR            0x1FDE   DMA1 control register (***)
DMA1_CR.Bit5        5   DMAACKi validity bit
DMA1_CR.Bit4        4   Edge sense/Level sense select bit
DMA1_CR.Bit3        3   DMA request source select bit 3
DMA1_CR.Bit2        2   DMA request source select bit 2
DMA1_CR.Bit1        1   DMA request source select bit 1
DMA1_CR.Bit0        0   DMA request source select bit 0
RESERVED1FDF       0x1FDF   RESERVED
SAR2L              0x1FE0   Source address register 2 L
SAR2M              0x1FE1   Source address register 2 M
SAR2H              0x1FE2   Source address register 2 H
RESERVED1FE3       0x1FE3   RESERVED
DAR2L              0x1FE4   Destination address register 2 L
DAR2M              0x1FE5   Destination address register 2 M
DAR2H              0x1FE6   Destination address register 2 H
RESERVED1FE7       0x1FE7   RESERVED
TCR2L              0x1FE8   Transfer counter register 2 L
TCR2M              0x1FE9   Transfer counter register 2 M
TCR2H              0x1FEA   Transfer counter register 2 H
RESERVED1FEB       0x1FEB   RESERVED
DMA2_MRL           0x1FEC   DMA2 mode register L (***)
DMA2_MRL.Bit7       7   Transfer destination address direction select bit 7
DMA2_MRL.Bit6       6   Transfer destination address direction select bit 6
DMA2_MRL.Bit5       5   Transfer source address direction select bit 5
DMA2_MRL.Bit4       4   Transfer source address direction select bit 4
DMA2_MRL.Bit2       2   Transfer mode select bit
DMA2_MRL.Bit1       1   Transfer method select bit
DMA2_MRL.Bit0       0   Number-of-unit-transfer-bits select bit
DMA2_MRH           0x1FED   DMA2 mode register H (***)
DMA2_MRH.Bit7       7   Continuous transfer mode select bit 7
DMA2_MRH.Bit6       6   Continuous transfer mode select bit 6
DMA2_MRH.Bit5       5   Transfer destination wait bit
DMA2_MRH.Bit4       4   Transfer source wait bit
DMA2_MRH.Bit1       1   I/O connection select bit
DMA2_MRH.Bit0       0   Transfer direction select bit
DMA2_CR            0x1FEE   DMA2 control register (***)
DMA2_CR.Bit5        5   DMAACKi validity bit
DMA2_CR.Bit4        4   Edge sense/Level sense select bit
DMA2_CR.Bit3        3   DMA request source select bit 3
DMA2_CR.Bit2        2   DMA request source select bit 2
DMA2_CR.Bit1        1   DMA request source select bit 1
DMA2_CR.Bit0        0   DMA request source select bit 0
RESERVED1FEF       0x1FEF   RESERVED
SAR3L              0x1FF0   Source address register 3 L
SAR3M              0x1FF1   Source address register 3 M
SAR3H              0x1FF2   Source address register 3 H
RESERVED1FF3       0x1FF3   RESERVED
DAR3L              0x1FF4   Destination address register 3 L
DAR3M              0x1FF5   Destination address register 3 M
DAR3H              0x1FF6   Destination address register 3 H
RESERVED1FF7       0x1FF7   RESERVED
TCR3L              0x1FF8   Transfer counter register 3 L
TCR3M              0x1FF9   Transfer counter register 3 M
TCR3H              0x1FFA   Transfer counter register 3 H
RESERVED1FFB       0x1FFB   RESERVED
DMA3_MRL           0x1FFC   DMA3 mode register L (***)
DMA3_MRL.Bit7       7   Transfer destination address direction select bit 7
DMA3_MRL.Bit6       6   Transfer destination address direction select bit 6
DMA3_MRL.Bit5       5   Transfer source address direction select bit 5
DMA3_MRL.Bit4       4   Transfer source address direction select bit 4
DMA3_MRL.Bit2       2   Transfer mode select bit
DMA3_MRL.Bit1       1   Transfer method select bit
DMA3_MRL.Bit0       0   Number-of-unit-transfer-bits select bit
DMA3_MRH           0x1FFD   DMA3 mode register H (***)
DMA3_MRH.Bit7       7   Continuous transfer mode select bit 7
DMA3_MRH.Bit6       6   Continuous transfer mode select bit 6
DMA3_MRH.Bit5       5   Transfer destination wait bit
DMA3_MRH.Bit4       4   Transfer source wait bit
DMA3_MRH.Bit1       1   I/O connection select bit
DMA3_MRH.Bit0       0   Transfer direction select bit
DMA3_CR            0x1FFE   DMA3 control register (***)
DMA3_CR.Bit5        5   DMAACKi validity bit
DMA3_CR.Bit4        4   Edge sense/Level sense select bit
DMA3_CR.Bit3        3   DMA request source select bit 3
DMA3_CR.Bit2        2   DMA request source select bit 2
DMA3_CR.Bit1        1   DMA request source select bit 1
DMA3_CR.Bit0        0   DMA request source select bit 0
RESERVED1FFF       0x1FFF   RESERVED


.M37721S2BFP
; http://www.infomicom.mesc.co.jp/micom/english/edocs/7700/um/e7721um.pdf

; *** - собственные сокращения


; MEMORY MAP
area DATA FSR_1       0x0000:0x0080
area DATA RAM_        0x0080:0x0280   Internal RAM
area BSS  RESERVED    0x0280:0x1FC0
area DATA FSR_2       0x1FC0:0x2000
area BSS  RESERVED    0x2000:0xFFCE
area DATA USER_VEC    0xFFCE:0x10000


; Interrupt and reset vector assignments
interrupt __RESET           0xFFFE   RESET
interrupt Zero_Div          0xFFFC   Zero division
interrupt BRK_              0xFFFA   BRK instruction
interrupt DBC_              0xFFF8   DBC
interrupt WATCDOG           0xFFF6   Watchdog timer
interrupt INT0_             0xFFF4   INT0
interrupt INT1_             0xFFF2   INT1
interrupt INT2_             0xFFF0   INT2
interrupt Timer_A0          0xFFEE   Timer A0      
interrupt Timer_A1          0xFFEC   Timer A1      
interrupt Timer_A2          0xFFEA   Timer A2      
interrupt Timer_A3          0xFFE8   Timer A3      
interrupt Timer_A4          0xFFE6   Timer A4      
interrupt Timer_B0          0xFFE4   Timer B0      
interrupt Timer_B1          0xFFE2   Timer B1      
interrupt Timer_B2          0xFFE0   Timer B2      
interrupt UART0_receive     0xFFDE   UART0 receive 
interrupt UART0_transmit    0xFFDC   UART0 transmit
interrupt UART1_receive     0xFFDA   UART1 receive 
interrupt UART1_transmit    0xFFD8   UART1 transmit
interrupt A_D_conversion    0xFFD6   A/D conversion
interrupt DMA0_             0xFFD4   DMA0
interrupt DMA1_             0xFFD2   DMA1
interrupt DMA2_             0xFFD0   DMA2
interrupt DMA3_             0xFFCE   DMA3


; INPUT/ OUTPUT PORTS
RESERVED0000       0x0000   RESERVED
RESERVED0001       0x0001   RESERVED
RESERVED0002       0x0002   RESERVED
RESERVED0003       0x0003   RESERVED
RESERVED0004       0x0004   RESERVED
RESERVED0005       0x0005   RESERVED
RESERVED0006       0x0006   RESERVED
RESERVED0007       0x0007   RESERVED
RESERVED0008       0x0008   RESERVED
RESERVED0009       0x0009   RESERVED
P4                 0x000A   Port P4 register
P4.P4_7             7   Port P47's pin
P4.P4_6             6   Port P46's pin
P4.P4_5             5   Port P45's pin
P4.P4_4             4   Port P44's pin
P4.P4_3             3   Port P43's pin
P4.P4_2             2   Port P42's pin
P4.P4_1             1   Port P41's pin
P4.P4_0             0   Port P40's pin
P5                 0x000B   Port P5 register
P5.P5_7             7   Port P57's pin
P5.P5_6             6   Port P56's pin
P5.P5_5             5   Port P55's pin
P5.P5_4             4   Port P54's pin
P5.P5_3             3   Port P53's pin
P5.P5_2             2   Port P52's pin
P5.P5_1             1   Port P51's pin
P5.P5_0             0   Port P50's pin
PD4                0x000C   Port P4 direction register
PD4.PD4_7           7   Port P47 direction bit
PD4.PD4_6           6   Port P46 direction bit
PD4.PD4_5           5   Port P45 direction bit
PD4.PD4_4           4   Port P44 direction bit
PD4.PD4_3           3   Port P43 direction bit
PD4.PD4_2           2   Port P42 direction bit
PD4.PD4_1           1   Port P41 direction bit
PD4.PD4_0           0   Port P40 direction bit
PD5                0x000D   Port P5 direction register
PD5.PD5_7           7   Port P57 direction bit
PD5.PD5_6           6   Port P56 direction bit
PD5.PD5_5           5   Port P55 direction bit
PD5.PD5_4           4   Port P54 direction bit
PD5.PD5_3           3   Port P53 direction bit
PD5.PD5_2           2   Port P52 direction bit
PD5.PD5_1           1   Port P51 direction bit
PD5.PD5_0           0   Port P50 direction bit
P6                 0x000E   Port P6 register
P6.P6_7             7   Port P67's pin
P6.P6_6             6   Port P66's pin
P6.P6_5             5   Port P65's pin
P6.P6_4             4   Port P64's pin
P6.P6_3             3   Port P63's pin
P6.P6_2             2   Port P62's pin
P6.P6_1             1   Port P61's pin
P6.P6_0             0   Port P60's pin
P7                 0x000F   Port P7 register
P7.P7_7             7   Port P77's pin
P7.P7_6             6   Port P76's pin
P7.P7_5             5   Port P75's pin
P7.P7_4             4   Port P74's pin
P7.P7_3             3   Port P73's pin
P7.P7_2             2   Port P72's pin
P7.P7_1             1   Port P71's pin
P7.P7_0             0   Port P70's pin
PD6                0x0010   Port P6 direction register
PD6.PD6_7           7   Port P67 direction bit
PD6.PD6_6           6   Port P66 direction bit
PD6.PD6_5           5   Port P65 direction bit
PD6.PD6_4           4   Port P64 direction bit
PD6.PD6_3           3   Port P63 direction bit
PD6.PD6_2           2   Port P62 direction bit
PD6.PD6_1           1   Port P61 direction bit
PD6.PD6_0           0   Port P60 direction bit
PD7                0x0011   Port P7 direction register
PD7.PD7_7           7   Port P77 direction bit
PD7.PD7_6           6   Port P76 direction bit
PD7.PD7_5           5   Port P75 direction bit
PD7.PD7_4           4   Port P74 direction bit
PD7.PD7_3           3   Port P73 direction bit
PD7.PD7_2           2   Port P72 direction bit
PD7.PD7_1           1   Port P71 direction bit
PD7.PD7_0           0   Port P70 direction bit
P8                 0x0012   Port P8 register
P8.P8_7             7   Port P87's pin
P8.P8_6             6   Port P86's pin
P8.P8_5             5   Port P85's pin
P8.P8_4             4   Port P84's pin
P8.P8_3             3   Port P83's pin
P8.P8_2             2   Port P82's pin
P8.P8_1             1   Port P81's pin
P8.P8_0             0   Port P80's pin
P9                 0x0013   Port P9 register
P9.P9_7             7   Port P97's pin
P9.P9_6             6   Port P96's pin
P9.P9_5             5   Port P95's pin
P9.P9_4             4   Port P94's pin
P9.P9_3             3   Port P93's pin
P9.P9_2             2   Port P92's pin
P9.P9_1             1   Port P91's pin
P9.P9_0             0   Port P90's pin
PD8                0x0014   Port P8 direction register
PD8.PD8_7           7   Port P87 direction bit
PD8.PD8_6           6   Port P86 direction bit
PD8.PD8_5           5   Port P85 direction bit
PD8.PD8_4           4   Port P84 direction bit
PD8.PD8_3           3   Port P83 direction bit
PD8.PD8_2           2   Port P82 direction bit
PD8.PD8_1           1   Port P81 direction bit
PD8.PD8_0           0   Port P80 direction bit
PD9                0x0015   Port P9 direction register
PD9.PD9_7           7   Port P97 direction bit
PD9.PD9_6           6   Port P96 direction bit
PD9.PD9_5           5   Port P95 direction bit
PD9.PD9_4           4   Port P94 direction bit
PD9.PD9_3           3   Port P93 direction bit
PD9.PD9_2           2   Port P92 direction bit
PD9.PD9_1           1   Port P91 direction bit
PD9.PD9_0           0   Port P90 direction bit
P10                0x0016   Port P10 register
P10.P10_7           7   Port P107's pin
P10.P10_6           6   Port P106's pin
P10.P10_5           5   Port P105's pin
P10.P10_4           4   Port P104's pin
P10.P10_3           3   Port P103's pin
P10.P10_2           2   Port P102's pin
P10.P10_1           1   Port P101's pin
P10.P10_0           0   Port P100's pin
RESERVED0017       0x0017   RESERVED
PD10               0x0018   Port P10 direction register
PD10.PD10_7           7   Port P107 direction bit
PD10.PD10_6           6   Port P106 direction bit
PD10.PD10_5           5   Port P105 direction bit
PD10.PD10_4           4   Port P104 direction bit
PD10.PD10_3           3   Port P103 direction bit
PD10.PD10_2           2   Port P102 direction bit
PD10.PD10_1           1   Port P101 direction bit
PD10.PD10_0           0   Port P100 direction bit
RESERVED0019       0x0019   RESERVED
POD_R0             0x001A   Pulse output data register 0 (***)
POD_R0.Bit3         3   RTP03 pulse output data bit
POD_R0.Bit2         2   RTP02 pulse output data bit
POD_R0.Bit1         1   RTP01 pulse output data bit
POD_R0.Bit0         0   RTP00 pulse output data bit
RESERVED001B       0x001B   RESERVED
POD_R1             0x001C   Pulse output data register 1 (***)
POD_R1.Bit7         7   RTP13 pulse output data bit
POD_R1.Bit6         6   RTP12 pulse output data bit
POD_R1.Bit5         5   RTP11 pulse output data bit
POD_R1.Bit4         4   RTP10 pulse output data bit
POD_R1.Bit3         3   RTP03 pulse output data bit
POD_R1.Bit2         2   RTP02 pulse output data bit
RESERVED001D       0x001D   RESERVED
ADCON0             0x001E   A-D control register (***)
ADCON0.Bit7         7   A-D conversion frequency select bit
ADCON0.Bit6         6   A-D conversion start bit
ADCON0.Bit5         5   Trigger select bit
ADCON0.Bit4         4   A-D operation mode select bit 4
ADCON0.Bit3         3   A-D operation mode select bit 3
ADCON0.Bit2         2   Analog input select bit 2
ADCON0.Bit1         1   Analog input select bit 1
ADCON0.Bit0         0   Analog input select bit 0
ADSPS_R            0x001F   A-D sweep pin select register (***)
ADSPS_R.Bit1        1   A-D sweep pin select bit 1
ADSPS_R.Bit0        0   A-D sweep pin select bit 0
AD0                0x0020   A-D register 0
AD0.Bit7            7   Reads an A-D conversion result bit 7
AD0.Bit6            6   Reads an A-D conversion result bit 6
AD0.Bit5            5   Reads an A-D conversion result bit 5
AD0.Bit4            4   Reads an A-D conversion result bit 4
AD0.Bit3            3   Reads an A-D conversion result bit 3
AD0.Bit2            2   Reads an A-D conversion result bit 2
AD0.Bit1            1   Reads an A-D conversion result bit 1
AD0.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0021       0x0021   RESERVED
AD1                0x0022   A-D register 1
AD1.Bit7            7   Reads an A-D conversion result bit 7
AD1.Bit6            6   Reads an A-D conversion result bit 6
AD1.Bit5            5   Reads an A-D conversion result bit 5
AD1.Bit4            4   Reads an A-D conversion result bit 4
AD1.Bit3            3   Reads an A-D conversion result bit 3
AD1.Bit2            2   Reads an A-D conversion result bit 2
AD1.Bit1            1   Reads an A-D conversion result bit 1
AD1.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0023       0x0023   RESERVED
AD2                0x0024   A-D register 2
AD2.Bit7            7   Reads an A-D conversion result bit 7
AD2.Bit6            6   Reads an A-D conversion result bit 6
AD2.Bit5            5   Reads an A-D conversion result bit 5
AD2.Bit4            4   Reads an A-D conversion result bit 4
AD2.Bit3            3   Reads an A-D conversion result bit 3
AD2.Bit2            2   Reads an A-D conversion result bit 2
AD2.Bit1            1   Reads an A-D conversion result bit 1
AD2.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0025       0x0025   RESERVED
AD3                0x0026   A-D register 3
AD3.Bit7            7   Reads an A-D conversion result bit 7
AD3.Bit6            6   Reads an A-D conversion result bit 6
AD3.Bit5            5   Reads an A-D conversion result bit 5
AD3.Bit4            4   Reads an A-D conversion result bit 4
AD3.Bit3            3   Reads an A-D conversion result bit 3
AD3.Bit2            2   Reads an A-D conversion result bit 2
AD3.Bit1            1   Reads an A-D conversion result bit 1
AD3.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0027       0x0027   RESERVED
AD4                0x0028   A-D register 4
AD4.Bit7            7   Reads an A-D conversion result bit 7
AD4.Bit6            6   Reads an A-D conversion result bit 6
AD4.Bit5            5   Reads an A-D conversion result bit 5
AD4.Bit4            4   Reads an A-D conversion result bit 4
AD4.Bit3            3   Reads an A-D conversion result bit 3
AD4.Bit2            2   Reads an A-D conversion result bit 2
AD4.Bit1            1   Reads an A-D conversion result bit 1
AD4.Bit0            0   Reads an A-D conversion result bit 0
RESERVED0029       0x0029   RESERVED
AD5                0x002A   A-D register 5
AD5.Bit7            7   Reads an A-D conversion result bit 7
AD5.Bit6            6   Reads an A-D conversion result bit 6
AD5.Bit5            5   Reads an A-D conversion result bit 5
AD5.Bit4            4   Reads an A-D conversion result bit 4
AD5.Bit3            3   Reads an A-D conversion result bit 3
AD5.Bit2            2   Reads an A-D conversion result bit 2
AD5.Bit1            1   Reads an A-D conversion result bit 1
AD5.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002B       0x002B   RESERVED
AD6                0x002C   A-D register 6
AD6.Bit7            7   Reads an A-D conversion result bit 7
AD6.Bit6            6   Reads an A-D conversion result bit 6
AD6.Bit5            5   Reads an A-D conversion result bit 5
AD6.Bit4            4   Reads an A-D conversion result bit 4
AD6.Bit3            3   Reads an A-D conversion result bit 3
AD6.Bit2            2   Reads an A-D conversion result bit 2
AD6.Bit1            1   Reads an A-D conversion result bit 1
AD6.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002D       0x002D   RESERVED
AD7                0x002E   A-D register 7
AD7.Bit7            7   Reads an A-D conversion result bit 7
AD7.Bit6            6   Reads an A-D conversion result bit 6
AD7.Bit5            5   Reads an A-D conversion result bit 5
AD7.Bit4            4   Reads an A-D conversion result bit 4
AD7.Bit3            3   Reads an A-D conversion result bit 3
AD7.Bit2            2   Reads an A-D conversion result bit 2
AD7.Bit1            1   Reads an A-D conversion result bit 1
AD7.Bit0            0   Reads an A-D conversion result bit 0
RESERVED002F       0x002F   RESERVED
U0MR               0x0030   UART0 transmit/receive mode register
U0MR.Bit7           7   Sleep select bit
U0MR.Bit6           6   Parity enable bit
U0MR.Bit5           5   Odd/Even parity select bit
U0MR.Bit4           4   Stop bit length select bit
U0MR.Bit3           3   Internal/External clock select bit
U0MR.Bit2           2   Serial I/O mode select bit 2
U0MR.Bit1           1   Serial I/O mode select bit 1
U0MR.Bit0           0   Serial I/O mode select bit 0
BRG0               0x0031   UART0 baud rate register (BRG0) (***)
U0TB               0x0032   UART0 transmit buffer register
U0C0               0x0034   UART0 transmit/receive control register 0
U0C0.Bit3           3   Transmit register empty flag
U0C0.Bit2           2   CTS/RTS select bit
U0C0.Bit1           1   BRG count source select bit 1
U0C0.Bit0           0   BRG count source select bit 0
U0C1               0x0035   UART0 transmit/receive control register 1
U0C1.Bit7           7   Error sum flag
U0C1.Bit6           6   Parity error flag
U0C1.Bit5           5   Framing error flag
U0C1.Bit4           4   Overrun error flag
U0C1.Bit3           3   Receive complete flag
U0C1.Bit2           2   Receive enable bit
U0C1.Bit1           1   Transmit buffer empty flag
U0C1.Bit0           0   Transmit enable bit
U0RB               0x0036   UART0 receive buffer register
U1MR               0x0038   UART1 transmit/receive mode register
BRG1               0x0039   UART1 baud rate register (BRG1) (***)
U1TB               0x003A   UART1 transmit buffer register
U1C0               0x003C   UART1 transmit/receive control register 0
U1C0.Bit3           3   Transmit register empty flag
U1C0.Bit2           2   CTS/RTS select bit
U1C0.Bit1           1   BRG count source select bit 1
U1C0.Bit0           0   BRG count source select bit 0
U1C1               0x003D   UART1 transmit/receive control register 1
U1C1.Bit7           7   Error sum flag
U1C1.Bit6           6   Parity error flag
U1C1.Bit5           5   Framing error flag
U1C1.Bit4           4   Overrun error flag
U1C1.Bit3           3   Receive complete flag
U1C1.Bit2           2   Receive enable bit
U1C1.Bit1           1   Transmit buffer empty flag
U1C1.Bit0           0   Transmit enable bit
U1RB               0x003E   UART1 receive buffer register
CSREG              0x0040   Count start register (***)
CSREG.Bit7          7   Timer B2 count start bit
CSREG.Bit6          6   Timer B1 count start bit
CSREG.Bit5          5   Timer B0 count start bit
CSREG.Bit4          4   Timer A4 count start bit
CSREG.Bit3          3   Timer A3 count start bit
CSREG.Bit2          2   Timer A2 count start bit
CSREG.Bit1          1   Timer A1 count start bit
CSREG.Bit0          0   Timer A0 count start bit
RESERVED0041       0x0041   RESERVED
ONE_SSREG          0x0042   One-shot start register (***)
ONE_SSREG.Bit4      4   Timer A4 one-shot start bit
ONE_SSREG.Bit3      3   Timer A3 one-shot start bit
ONE_SSREG.Bit2      2   Timer A2 one-shot start bit
RESERVED0043       0x0043   RESERVED
UP_D_REG           0x0044   Up-down register (***)
UP_D_REG.Bit7       7   Timer A4 two-phase pulse signal processing select bit
UP_D_REG.Bit6       6   Timer A3 two-phase pulse signal processing select bit
UP_D_REG.Bit5       5   Timer A2 two-phase pulse signal processing select bit
UP_D_REG.Bit4       4   Timer A4 up-down bit
UP_D_REG.Bit3       3   Timer A3 up-down bit
UP_D_REG.Bit2       2   Timer A2 up-down bit
RESERVED0045       0x0045   RESERVED
TA0                0x0046   Timer A0 register
TA1                0x0048   Timer A1 register
TA2                0x004A   Timer A2 register
TA3                0x004C   Timer A3 register
TA4                0x004E   Timer A4 register
TB0                0x0050   Timer B0 register
TB1                0x0052   Timer B1 register
TB2                0x0054   Timer B2 register
TA0MR              0x0056   Timer A0 mode register
TA0MR.Bit7          7   
TA0MR.Bit6          6   
TA0MR.Bit5          5   
TA0MR.Bit4          4   
TA0MR.Bit3          3   
TA0MR.Bit2          2   
TA0MR.Bit1          1   Operating mode select bit 1
TA0MR.Bit0          0   Operating mode select bit 0
TA1MR              0x0057   Timer A1 mode register
TA1MR.Bit7          7   
TA1MR.Bit6          6   
TA1MR.Bit5          5   
TA1MR.Bit4          4   
TA1MR.Bit3          3   
TA1MR.Bit2          2   
TA1MR.Bit1          1   Operating mode select bit 1
TA1MR.Bit0          0   Operating mode select bit 0
TA2MR              0x0058   Timer A2 mode register
TA2MR.Bit7          7   
TA2MR.Bit6          6   
TA2MR.Bit5          5   
TA2MR.Bit4          4   
TA2MR.Bit3          3   
TA2MR.Bit2          2   
TA2MR.Bit1          1   Operating mode select bit 1
TA2MR.Bit0          0   Operating mode select bit 0
TA3MR              0x0059   Timer A3 mode register
TA3MR.Bit7          7   
TA3MR.Bit6          6   
TA3MR.Bit5          5   
TA3MR.Bit4          4   
TA3MR.Bit3          3   
TA3MR.Bit2          2   
TA3MR.Bit1          1   Operating mode select bit 1
TA3MR.Bit0          0   Operating mode select bit 0
TA4MR              0x005A   Timer A4 mode register
TA4MR.Bit7          7   
TA4MR.Bit6          6   
TA4MR.Bit5          5   
TA4MR.Bit4          4   
TA4MR.Bit3          3   
TA4MR.Bit2          2   
TA4MR.Bit1          1   Operating mode select bit 1
TA4MR.Bit0          0   Operating mode select bit 0
TB0MR              0x005B   Timer B0 mode register
TB0MR.Bit7          7
TB0MR.Bit6          6
TB0MR.Bit5          5
TB0MR.Bit3          3
TB0MR.Bit2          2
TB0MR.Bit1          1   Operating mode select bit 1
TB0MR.Bit0          0   Operating mode select bit 0
TB1MR              0x005C   Timer B1 mode register
TB1MR.Bit7          7
TB1MR.Bit6          6
TB1MR.Bit5          5
TB1MR.Bit3          3
TB1MR.Bit2          2
TB1MR.Bit1          1   Operating mode select bit 1
TB1MR.Bit0          0   Operating mode select bit 0
TB2MR              0x005D   Timer B2 mode register
TB2MR.Bit7          7
TB2MR.Bit6          6
TB2MR.Bit5          5
TB2MR.Bit3          3
TB2MR.Bit2          2
TB2MR.Bit1          1   Operating mode select bit 1
TB2MR.Bit0          0   Operating mode select bit 0
PM0                0x005E   Processor mode register 0
PM0.Bit7            7   Stack bank select bit
PM0.Bit5            5   Interrupt priority detection time select bit 5
PM0.Bit4            4   Interrupt priority detection time select bit 4
PM0.Bit3            3   Software reset bit
PM0.Bit2            2   Wait bit
PM1                0x005F   Processor mode register 1
PM1.Bit1            1   Internal RAM area select bit
WDT                0x0060   Watchdog timer register (***)
WDTFS              0x0061   Watchdog timer frequency select register (***)
WDTFS.Bit0          0   Watchdog timer frequency select bit
RTOC_R             0x0062   Real-time output control register (***)
RTOC_R.Bit2         2   Pulse output mode select bit
RTOC_R.Bit1         1   Waveform output select bit 1
RTOC_R.Bit0         0   Waveform output select bit 0
RESERVED0063       0x0063   RESERVED
DRAM_CR            0x0064   DRAM control register (***)
DRAM_CR.Bit7        7   DRAM validity bit
DRAM_CR.Bit3        3   DRAM area select bit 3
DRAM_CR.Bit2        2   DRAM area select bit 2
DRAM_CR.Bit1        1   DRAM area select bit 1
DRAM_CR.Bit0        0   DRAM area select bit 0
RESERVED0065       0x0065   RESERVED
REFR_T             0x0066   Refresh timer (***)
RESERVED0067       0x0067   RESERVED
DMAC_RL            0x0068   DMAC control register L (***)
DMAC_RL.Bit7        7   DMA3 request bit
DMAC_RL.Bit6        6   DMA2 request bit
DMAC_RL.Bit5        5   DMA1 request bit
DMAC_RL.Bit4        4   DMA0 request bit
DMAC_RL.Bit3        3   TC pin validity bit
DMAC_RL.Bit0        0   Priority select bit
DMAC_RH            0x0069   DMAC control register H (***)
DMAC_RH.Bit7        7   DMA3 enable bit
DMAC_RH.Bit6        6   DMA2 enable bit
DMAC_RH.Bit5        5   DMA1 enable bit
DMAC_RH.Bit4        4   DMA0 enable bit
DMAC_RH.Bit3        3   Software DMA3 request bit
DMAC_RH.Bit2        2   Software DMA2 request bit
DMAC_RH.Bit1        1   Software DMA1 request bit
DMAC_RH.Bit0        0   Software DMA0 request bit
RESERVED006A       0x006A   RESERVED
RESERVED006B       0x006B   RESERVED
DMA0_ICR           0x006C   DMA0 interrupt control register (***)
DMA0_ICR.Bit3       3   Interrupt request bit
DMA0_ICR.Bit2       2   Interrupt priority level select bit 2
DMA0_ICR.Bit1       1   Interrupt priority level select bit 1
DMA0_ICR.Bit0       0   Interrupt priority level select bit 0
DMA1_ICR           0x006D   DMA1 interrupt control register (***)
DMA1_ICR.Bit3       3   Interrupt request bit
DMA1_ICR.Bit2       2   Interrupt priority level select bit 2
DMA1_ICR.Bit1       1   Interrupt priority level select bit 1
DMA1_ICR.Bit0       0   Interrupt priority level select bit 0
DMA2_ICR           0x006E   DMA2 interrupt control register (***)
DMA2_ICR.Bit3       3   Interrupt request bit
DMA2_ICR.Bit2       2   Interrupt priority level select bit 2
DMA2_ICR.Bit1       1   Interrupt priority level select bit 1
DMA2_ICR.Bit0       0   Interrupt priority level select bit 0
DMA3_ICR           0x006F   DMA3 interrupt control register (***)
DMA3_ICR.Bit3       3   Interrupt request bit
DMA3_ICR.Bit2       2   Interrupt priority level select bit 2
DMA3_ICR.Bit1       1   Interrupt priority level select bit 1
DMA3_ICR.Bit0       0   Interrupt priority level select bit 0
ADIC               0x0070   A-D conversion interrupt control register
ADIC.Bit3           3   Interrupt request bit
ADIC.Bit2           2   Interrupt priority level select bit 2
ADIC.Bit1           1   Interrupt priority level select bit 1
ADIC.Bit0           0   Interrupt priority level select bit 0
S0TIC              0x0071   UART0 transmit interrupt control register
S0TIC.Bit3          3   Interrupt request bit                
S0TIC.Bit2          2   Interrupt priority level select bit 2
S0TIC.Bit1          1   Interrupt priority level select bit 1
S0TIC.Bit0          0   Interrupt priority level select bit 0
S0RIC              0x0072   UART0 receive interrupt control register
S0RIC.Bit3          3   Interrupt request bit                
S0RIC.Bit2          2   Interrupt priority level select bit 2
S0RIC.Bit1          1   Interrupt priority level select bit 1
S0RIC.Bit0          0   Interrupt priority level select bit 0
S1TIC              0x0073   UART1 transmit interrupt control register
S1TIC.Bit3          3   Interrupt request bit                
S1TIC.Bit2          2   Interrupt priority level select bit 2
S1TIC.Bit1          1   Interrupt priority level select bit 1
S1TIC.Bit0          0   Interrupt priority level select bit 0
S1RIC              0x0074   UART1 receive interrupt control register
S1RIC.Bit3          3   Interrupt request bit                
S1RIC.Bit2          2   Interrupt priority level select bit 2
S1RIC.Bit1          1   Interrupt priority level select bit 1
S1RIC.Bit0          0   Interrupt priority level select bit 0
TA0IC              0x0075   Timer A0 interrupt control register
TA0IC.Bit3          3   Interrupt request bit                
TA0IC.Bit2          2   Interrupt priority level select bit 2
TA0IC.Bit1          1   Interrupt priority level select bit 1
TA0IC.Bit0          0   Interrupt priority level select bit 0
TA1IC              0x0076   Timer A1 interrupt control register
TA1IC.Bit3          3   Interrupt request bit                
TA1IC.Bit2          2   Interrupt priority level select bit 2
TA1IC.Bit1          1   Interrupt priority level select bit 1
TA1IC.Bit0          0   Interrupt priority level select bit 0
TA2IC              0x0077   Timer A2 interrupt control register
TA2IC.Bit3          3   Interrupt request bit                
TA2IC.Bit2          2   Interrupt priority level select bit 2
TA2IC.Bit1          1   Interrupt priority level select bit 1
TA2IC.Bit0          0   Interrupt priority level select bit 0
TA3IC              0x0078   Timer A3 interrupt control register
TA3IC.Bit3          3   Interrupt request bit                
TA3IC.Bit2          2   Interrupt priority level select bit 2
TA3IC.Bit1          1   Interrupt priority level select bit 1
TA3IC.Bit0          0   Interrupt priority level select bit 0
TA4IC              0x0079   Timer A4 interrupt control register
TA4IC.Bit3          3   Interrupt request bit                
TA4IC.Bit2          2   Interrupt priority level select bit 2
TA4IC.Bit1          1   Interrupt priority level select bit 1
TA4IC.Bit0          0   Interrupt priority level select bit 0
TB0IC              0x007A   Timer B0 interrupt control register
TB0IC.Bit3          3   Interrupt request bit                
TB0IC.Bit2          2   Interrupt priority level select bit 2
TB0IC.Bit1          1   Interrupt priority level select bit 1
TB0IC.Bit0          0   Interrupt priority level select bit 0
TB1IC              0x007B   Timer B1 interrupt control register
TB1IC.Bit3          3   Interrupt request bit                
TB1IC.Bit2          2   Interrupt priority level select bit 2
TB1IC.Bit1          1   Interrupt priority level select bit 1
TB1IC.Bit0          0   Interrupt priority level select bit 0
TB2IC              0x007C   Timer B2 interrupt control register
TB2IC.Bit3          3   Interrupt request bit                
TB2IC.Bit2          2   Interrupt priority level select bit 2
TB2IC.Bit1          1   Interrupt priority level select bit 1
TB2IC.Bit0          0   Interrupt priority level select bit 0
INT0IC             0x007D   INT0 interrupt control register
INT0IC.Bit5         5   Level sense/Edge sense select bit
INT0IC.Bit4         4   Polarity select bit
INT0IC.Bit3         3   Interrupt request bit
INT0IC.Bit2         2   Interrupt priority level select bit 2
INT0IC.Bit1         1   Interrupt priority level select bit 1
INT0IC.Bit0         0   Interrupt priority level select bit 0
INT1IC             0x007E   INT1 interrupt control register
INT1IC.Bit5         5   Level sense/Edge sense select bit
INT1IC.Bit4         4   Polarity select bit
INT1IC.Bit3         3   Interrupt request bit
INT1IC.Bit2         2   Interrupt priority level select bit 2
INT1IC.Bit1         1   Interrupt priority level select bit 1
INT1IC.Bit0         0   Interrupt priority level select bit 0
INT2IC             0x007F   INT2 interrupt control register
INT2IC.Bit5         5   Level sense/Edge sense select bit
INT2IC.Bit4         4   Polarity select bit
INT2IC.Bit3         3   Interrupt request bit
INT2IC.Bit2         2   Interrupt priority level select bit 2
INT2IC.Bit1         1   Interrupt priority level select bit 1
INT2IC.Bit0         0   Interrupt priority level select bit 0
SAR0L              0x1FC0   Source address register 0 L
SAR0M              0x1FC1   Source address register 0 M
SAR0H              0x1FC2   Source address register 0 H
RESERVED1FC3       0x1FC3   RESERVED
DAR0L              0x1FC4   Destination address register 0 L
DAR0M              0x1FC5   Destination address register 0 M
DAR0H              0x1FC6   Destination address register 0 H
RESERVED1FC7       0x1FC7   RESERVED
TCR0L              0x1FC8   Transfer counter register 0 L
TCR0M              0x1FC9   Transfer counter register 0 M
TCR0H              0x1FCA   Transfer counter register 0 H
RESERVED1FCB       0x1FCB   RESERVED
DMA0_MRL           0x1FCC   DMA0 mode register L (***)
DMA0_MRL.Bit7       7   Transfer destination address direction select bit 7
DMA0_MRL.Bit6       6   Transfer destination address direction select bit 6
DMA0_MRL.Bit5       5   Transfer source address direction select bit 5
DMA0_MRL.Bit4       4   Transfer source address direction select bit 4
DMA0_MRL.Bit2       2   Transfer mode select bit
DMA0_MRL.Bit1       1   Transfer method select bit
DMA0_MRL.Bit0       0   Number-of-unit-transfer-bits select bit
DMA0_MRH           0x1FCD   DMA0 mode register H (***)
DMA0_MRH.Bit7       7   Continuous transfer mode select bit 7
DMA0_MRH.Bit6       6   Continuous transfer mode select bit 6
DMA0_MRH.Bit5       5   Transfer destination wait bit
DMA0_MRH.Bit4       4   Transfer source wait bit
DMA0_MRH.Bit1       1   I/O connection select bit
DMA0_MRH.Bit0       0   Transfer direction select bit
DMA0_CR            0x1FCE   DMA0 control register (***)
DMA0_CR.Bit5        5   DMAACKi validity bit
DMA0_CR.Bit4        4   Edge sense/Level sense select bit
DMA0_CR.Bit3        3   DMA request source select bit 3
DMA0_CR.Bit2        2   DMA request source select bit 2
DMA0_CR.Bit1        1   DMA request source select bit 1
DMA0_CR.Bit0        0   DMA request source select bit 0
RESERVED1FCF       0x1FCF   RESERVED
SAR1L              0x1FD0   Source address register 1 L
SAR1M              0x1FD1   Source address register 1 M
SAR1H              0x1FD2   Source address register 1 H
RESERVED1FD3       0x1FD3   RESERVED
DAR1L              0x1FD4   Destination address register 1 L
DAR1M              0x1FD5   Destination address register 1 M
DAR1H              0x1FD6   Destination address register 1 H
RESERVED1FD7       0x1FD7   RESERVED
TCR1L              0x1FD8   Transfer counter register 1 L
TCR1M              0x1FD9   Transfer counter register 1 M
TCR1H              0x1FDA   Transfer counter register 1 H
RESERVED1FDB       0x1FDB   RESERVED
DMA1_MRL           0x1FDC   DMA1 mode register L (***)
DMA1_MRL.Bit7       7   Transfer destination address direction select bit 7
DMA1_MRL.Bit6       6   Transfer destination address direction select bit 6
DMA1_MRL.Bit5       5   Transfer source address direction select bit 5
DMA1_MRL.Bit4       4   Transfer source address direction select bit 4
DMA1_MRL.Bit2       2   Transfer mode select bit
DMA1_MRL.Bit1       1   Transfer method select bit
DMA1_MRL.Bit0       0   Number-of-unit-transfer-bits select bit
DMA1_MRH           0x1FDD   DMA1 mode register H (***)
DMA1_MRH.Bit7       7   Continuous transfer mode select bit 7
DMA1_MRH.Bit6       6   Continuous transfer mode select bit 6
DMA1_MRH.Bit5       5   Transfer destination wait bit
DMA1_MRH.Bit4       4   Transfer source wait bit
DMA1_MRH.Bit1       1   I/O connection select bit
DMA1_MRH.Bit0       0   Transfer direction select bit
DMA1_CR            0x1FDE   DMA1 control register (***)
DMA1_CR.Bit5        5   DMAACKi validity bit
DMA1_CR.Bit4        4   Edge sense/Level sense select bit
DMA1_CR.Bit3        3   DMA request source select bit 3
DMA1_CR.Bit2        2   DMA request source select bit 2
DMA1_CR.Bit1        1   DMA request source select bit 1
DMA1_CR.Bit0        0   DMA request source select bit 0
RESERVED1FDF       0x1FDF   RESERVED
SAR2L              0x1FE0   Source address register 2 L
SAR2M              0x1FE1   Source address register 2 M
SAR2H              0x1FE2   Source address register 2 H
RESERVED1FE3       0x1FE3   RESERVED
DAR2L              0x1FE4   Destination address register 2 L
DAR2M              0x1FE5   Destination address register 2 M
DAR2H              0x1FE6   Destination address register 2 H
RESERVED1FE7       0x1FE7   RESERVED
TCR2L              0x1FE8   Transfer counter register 2 L
TCR2M              0x1FE9   Transfer counter register 2 M
TCR2H              0x1FEA   Transfer counter register 2 H
RESERVED1FEB       0x1FEB   RESERVED
DMA2_MRL           0x1FEC   DMA2 mode register L (***)
DMA2_MRL.Bit7       7   Transfer destination address direction select bit 7
DMA2_MRL.Bit6       6   Transfer destination address direction select bit 6
DMA2_MRL.Bit5       5   Transfer source address direction select bit 5
DMA2_MRL.Bit4       4   Transfer source address direction select bit 4
DMA2_MRL.Bit2       2   Transfer mode select bit
DMA2_MRL.Bit1       1   Transfer method select bit
DMA2_MRL.Bit0       0   Number-of-unit-transfer-bits select bit
DMA2_MRH           0x1FED   DMA2 mode register H (***)
DMA2_MRH.Bit7       7   Continuous transfer mode select bit 7
DMA2_MRH.Bit6       6   Continuous transfer mode select bit 6
DMA2_MRH.Bit5       5   Transfer destination wait bit
DMA2_MRH.Bit4       4   Transfer source wait bit
DMA2_MRH.Bit1       1   I/O connection select bit
DMA2_MRH.Bit0       0   Transfer direction select bit
DMA2_CR            0x1FEE   DMA2 control register (***)
DMA2_CR.Bit5        5   DMAACKi validity bit
DMA2_CR.Bit4        4   Edge sense/Level sense select bit
DMA2_CR.Bit3        3   DMA request source select bit 3
DMA2_CR.Bit2        2   DMA request source select bit 2
DMA2_CR.Bit1        1   DMA request source select bit 1
DMA2_CR.Bit0        0   DMA request source select bit 0
RESERVED1FEF       0x1FEF   RESERVED
SAR3L              0x1FF0   Source address register 3 L
SAR3M              0x1FF1   Source address register 3 M
SAR3H              0x1FF2   Source address register 3 H
RESERVED1FF3       0x1FF3   RESERVED
DAR3L              0x1FF4   Destination address register 3 L
DAR3M              0x1FF5   Destination address register 3 M
DAR3H              0x1FF6   Destination address register 3 H
RESERVED1FF7       0x1FF7   RESERVED
TCR3L              0x1FF8   Transfer counter register 3 L
TCR3M              0x1FF9   Transfer counter register 3 M
TCR3H              0x1FFA   Transfer counter register 3 H
RESERVED1FFB       0x1FFB   RESERVED
DMA3_MRL           0x1FFC   DMA3 mode register L (***)
DMA3_MRL.Bit7       7   Transfer destination address direction select bit 7
DMA3_MRL.Bit6       6   Transfer destination address direction select bit 6
DMA3_MRL.Bit5       5   Transfer source address direction select bit 5
DMA3_MRL.Bit4       4   Transfer source address direction select bit 4
DMA3_MRL.Bit2       2   Transfer mode select bit
DMA3_MRL.Bit1       1   Transfer method select bit
DMA3_MRL.Bit0       0   Number-of-unit-transfer-bits select bit
DMA3_MRH           0x1FFD   DMA3 mode register H (***)
DMA3_MRH.Bit7       7   Continuous transfer mode select bit 7
DMA3_MRH.Bit6       6   Continuous transfer mode select bit 6
DMA3_MRH.Bit5       5   Transfer destination wait bit
DMA3_MRH.Bit4       4   Transfer source wait bit
DMA3_MRH.Bit1       1   I/O connection select bit
DMA3_MRH.Bit0       0   Transfer direction select bit
DMA3_CR            0x1FFE   DMA3 control register (***)
DMA3_CR.Bit5        5   DMAACKi validity bit
DMA3_CR.Bit4        4   Edge sense/Level sense select bit
DMA3_CR.Bit3        3   DMA request source select bit 3
DMA3_CR.Bit2        2   DMA request source select bit 2
DMA3_CR.Bit1        1   DMA request source select bit 1
DMA3_CR.Bit0        0   DMA request source select bit 0
RESERVED1FFF       0x1FFF   RESERVED


.M37733MHBXXXFP
; http://www.mitsubishichips.com/Global/content/product/mcu/16bit/7700f/7700s/7733g/e7733um.pdf

; *** - собственные сокращения

; Memory allocation control register (address 63)
;      ROM size    RAM size
; 000: 124 Kbytes, 3968 bytes
; 001: 120 Kbytes, 3968 bytes
; 010: 60 Kbytes,  2048 bytes
; 011: Do not select.
; 100: 32 Kbytes,  2048 bytes
; 101: 16 Kbytes,  2048 bytes
; 110: 96 Kbytes,  3968 bytes
; 111: Do not select.


; MEMORY MAP
; Memory allocation selection bits (b2, b1, b0)=(0, 0, 0)
area DATA FSR         0x0000:0x0080
area DATA RAM_        0x0080:0x1000   Internal RAM
area DATA ROM_1       0x1000:0xFFD6   Internal ROM
area DATA USER_VEC    0xFFD6:0x10000
area DATA ROM_2       0x10000:0x20000 Internal ROM

; Memory allocation selection bits (b2, b1, b0)=(0, 0, 1)
; area DATA FSR         0x0000:0x0080
; area DATA RAM_        0x0080:0x1000   Internal RAM
; area BSS  RESERVED    0x1000:0x2000
; area DATA ROM_1       0x2000:0xFFD6   Internal ROM
; area DATA USER_VEC    0xFFD6:0x10000
; area DATA ROM_2       0x10000:0x20000 Internal ROM

; Memory allocation selection bits (b2, b1, b0)=(0, 1, 0)
; area DATA FSR         0x0000:0x0080
; area DATA RAM_        0x0080:0x0880   Internal RAM
; area BSS  RESERVED    0x0880:0x1000
; area DATA ROM_1       0x1000:0xFFD6   Internal ROM
; area DATA USER_VEC    0xFFD6:0x10000

; Memory allocation selection bits (b2, b1, b0)=(1, 0, 0)
; area DATA FSR         0x0000:0x0080
; area DATA RAM_        0x0080:0x0880   Internal RAM
; area BSS  RESERVED    0x0880:0x8000
; area DATA ROM_1       0x8000:0xFFD6   Internal ROM
; area DATA USER_VEC    0xFFD6:0x10000

; Memory allocation selection bits (b2, b1, b0)=(1, 0, 1)
; area DATA FSR         0x0000:0x0080
; area DATA RAM_        0x0080:0x0880   Internal RAM
; area BSS  RESERVED    0x0880:0xC000
; area DATA ROM_1       0xC000:0xFFD6   Internal ROM
; area DATA USER_VEC    0xFFD6:0x10000

; Memory allocation selection bits (b2, b1, b0)=(1, 1, 0)
; area DATA FSR         0x0000:0x0080
; area DATA RAM_        0x0080:0x1000   Internal RAM
; area BSS  RESERVED    0x1000:0x8000
; area DATA ROM_1       0x8000:0xFFD6   Internal ROM
; area DATA USER_VEC    0xFFD6:0x10000
; area DATA ROM_2       0x10000:0x20000 Internal ROM


; Interrupt and reset vector assignments
interrupt __RESET           0xFFFE   RESET
interrupt ZERO_DIV          0xFFFC   Zero division
interrupt BRK_              0xFFFA   BRK instruction
interrupt DBC_              0xFFF8   DBC
interrupt WATCHD_TIMER      0xFFF6   Watchdog timer
interrupt INT0_             0xFFF4   External interrupt by signal input from pin INT0
interrupt INT1_             0xFFF2   External interrupt by signal input from pin INT1
interrupt INT2_Key_input    0xFFF0   External interrupt by signal input from pin INT2 or by key input
interrupt Timer_A0          0xFFEE   Internal interrupt from Timer A0
interrupt Timer_A1          0xFFEC   Internal interrupt from Timer A1
interrupt Timer_A2          0xFFEA   Internal interrupt from Timer A2
interrupt Timer_A3          0xFFE8   Internal interrupt from Timer A3
interrupt Timer_A4          0xFFE6   Internal interrupt from Timer A4
interrupt Timer_B0          0xFFE4   Internal interrupt from Timer B0
interrupt Timer_B1          0xFFE2   Internal interrupt from Timer B
interrupt Timer_B2          0xFFE0   Internal interrupt from Timer B
interrupt UART0_R           0xFFDE   UART0 reception
interrupt UART0_T           0xFFDC   UART0 transmission
interrupt UART1_R           0xFFDA   UART1 reception
interrupt UART1_T           0xFFD8   UART1 transmission
interrupt A_D_UART2         0xFFD6   Internal interrupt from A-D converter or UART2

          
; INPUT/ OUTPUT PORTS
RESERVED0000       0x0000   RESERVED
RESERVED0001       0x0001   RESERVED
P0                 0x0002   Port P0 register
P0.P0_7             7   Port P07's pin
P0.P0_6             6   Port P06's pin
P0.P0_5             5   Port P05's pin
P0.P0_4             4   Port P04's pin
P0.P0_3             3   Port P03's pin
P0.P0_2             2   Port P02's pin
P0.P0_1             1   Port P01's pin
P0.P0_0             0   Port P00's pin
P1                 0x0003   Port P1 register
P1.P1_7             7   Port P17's pin
P1.P1_6             6   Port P16's pin
P1.P1_5             5   Port P15's pin
P1.P1_4             4   Port P14's pin
P1.P1_3             3   Port P13's pin
P1.P1_2             2   Port P12's pin
P1.P1_1             1   Port P11's pin
P1.P1_0             0   Port P10's pin
PD0                0x0004   Port P0 direction register
PD0.PD0_7           7   Port P07 direction selection bit
PD0.PD0_6           6   Port P06 direction selection bit
PD0.PD0_5           5   Port P05 direction selection bit
PD0.PD0_4           4   Port P04 direction selection bit
PD0.PD0_3           3   Port P03 direction selection bit
PD0.PD0_2           2   Port P02 direction selection bit
PD0.PD0_1           1   Port P01 direction selection bit
PD0.PD0_0           0   Port P00 direction selection bit
PD1                0x0005   Port P1 direction register
PD1.PD1_7           7   Port P17 direction selection bit
PD1.PD1_6           6   Port P16 direction selection bit
PD1.PD1_5           5   Port P15 direction selection bit
PD1.PD1_4           4   Port P14 direction selection bit
PD1.PD1_3           3   Port P13 direction selection bit
PD1.PD1_2           2   Port P12 direction selection bit
PD1.PD1_1           1   Port P11 direction selection bit
PD1.PD1_0           0   Port P10 direction selection bit
P2                 0x0006   Port P2 register
P2.P2_7             7   Port P27's pin
P2.P2_6             6   Port P26's pin
P2.P2_5             5   Port P25's pin
P2.P2_4             4   Port P24's pin
P2.P2_3             3   Port P23's pin
P2.P2_2             2   Port P22's pin
P2.P2_1             1   Port P21's pin
P2.P2_0             0   Port P20's pin
P3                 0x0007   Port P3 register
P3.P3_7             7   Port P37's pin
P3.P3_6             6   Port P36's pin
P3.P3_5             5   Port P35's pin
P3.P3_4             4   Port P34's pin
P3.P3_3             3   Port P33's pin
P3.P3_2             2   Port P32's pin
P3.P3_1             1   Port P31's pin
P3.P3_0             0   Port P30's pin
PD2                0x0008   Port P2 direction register
PD2.PD2_7           7   Port P27 direction selection bit
PD2.PD2_6           6   Port P26 direction selection bit
PD2.PD2_5           5   Port P25 direction selection bit
PD2.PD2_4           4   Port P24 direction selection bit
PD2.PD2_3           3   Port P23 direction selection bit
PD2.PD2_2           2   Port P22 direction selection bit
PD2.PD2_1           1   Port P21 direction selection bit
PD2.PD2_0           0   Port P20 direction selection bit
PD3                0x0009   Port P3 direction register
PD3.PD3_7           7   Port P37 direction selection bit
PD3.PD3_6           6   Port P36 direction selection bit
PD3.PD3_5           5   Port P35 direction selection bit
PD3.PD3_4           4   Port P34 direction selection bit
PD3.PD3_3           3   Port P33 direction selection bit
PD3.PD3_2           2   Port P32 direction selection bit
PD3.PD3_1           1   Port P31 direction selection bit
PD3.PD3_0           0   Port P30 direction selection bit
P4                 0x000A   Port P4 register
P4.P4_7             7   Port P47's pin
P4.P4_6             6   Port P46's pin
P4.P4_5             5   Port P45's pin
P4.P4_4             4   Port P44's pin
P4.P4_3             3   Port P43's pin
P4.P4_2             2   Port P42's pin
P4.P4_1             1   Port P41's pin
P4.P4_0             0   Port P40's pin
P5                 0x000B   Port P5 register
P5.P5_7             7   Port P57's pin
P5.P5_6             6   Port P56's pin
P5.P5_5             5   Port P55's pin
P5.P5_4             4   Port P54's pin
P5.P5_3             3   Port P53's pin
P5.P5_2             2   Port P52's pin
P5.P5_1             1   Port P51's pin
P5.P5_0             0   Port P50's pin
PD4                0x000C   Port P4 direction register
PD4.PD4_7           7   Port P47 direction selection bit
PD4.PD4_6           6   Port P46 direction selection bit
PD4.PD4_5           5   Port P45 direction selection bit
PD4.PD4_4           4   Port P44 direction selection bit
PD4.PD4_3           3   Port P43 direction selection bit
PD4.PD4_2           2   Port P42 direction selection bit
PD4.PD4_1           1   Port P41 direction selection bit
PD4.PD4_0           0   Port P40 direction selection bit
PD5                0x000D   Port P5 direction register
PD5.PD5_7           7   Port P57 direction selection bit
PD5.PD5_6           6   Port P56 direction selection bit
PD5.PD5_5           5   Port P55 direction selection bit
PD5.PD5_4           4   Port P54 direction selection bit
PD5.PD5_3           3   Port P53 direction selection bit
PD5.PD5_2           2   Port P52 direction selection bit
PD5.PD5_1           1   Port P51 direction selection bit
PD5.PD5_0           0   Port P50 direction selection bit
P6                 0x000E   Port P6 register
P6.P6_7             7   Port P67's pin
P6.P6_6             6   Port P66's pin
P6.P6_5             5   Port P65's pin
P6.P6_4             4   Port P64's pin
P6.P6_3             3   Port P63's pin
P6.P6_2             2   Port P62's pin
P6.P6_1             1   Port P61's pin
P6.P6_0             0   Port P60's pin
P7                 0x000F   Port P7 register
P7.P7_7             7   Port P77's pin
P7.P7_6             6   Port P76's pin
P7.P7_5             5   Port P75's pin
P7.P7_4             4   Port P74's pin
P7.P7_3             3   Port P73's pin
P7.P7_2             2   Port P72's pin
P7.P7_1             1   Port P71's pin
P7.P7_0             0   Port P70's pin
PD6                0x0010   Port P6 direction register
PD6.PD6_7           7   Port P67 direction selection bit
PD6.PD6_6           6   Port P66 direction selection bit
PD6.PD6_5           5   Port P65 direction selection bit
PD6.PD6_4           4   Port P64 direction selection bit
PD6.PD6_3           3   Port P63 direction selection bit
PD6.PD6_2           2   Port P62 direction selection bit
PD6.PD6_1           1   Port P61 direction selection bit
PD6.PD6_0           0   Port P60 direction selection bit
PD7                0x0011   Port P7 direction register
PD7.PD7_7           7   Port P77 direction selection bit
PD7.PD7_6           6   Port P76 direction selection bit
PD7.PD7_5           5   Port P75 direction selection bit
PD7.PD7_4           4   Port P74 direction selection bit
PD7.PD7_3           3   Port P73 direction selection bit
PD7.PD7_2           2   Port P72 direction selection bit
PD7.PD7_1           1   Port P71 direction selection bit
PD7.PD7_0           0   Port P70 direction selection bit
P8                 0x0012   Port P8 register
P8.P8_7             7   Port P87's pin
P8.P8_6             6   Port P86's pin
P8.P8_5             5   Port P85's pin
P8.P8_4             4   Port P84's pin
P8.P8_3             3   Port P83's pin
P8.P8_2             2   Port P82's pin
P8.P8_1             1   Port P81's pin
P8.P8_0             0   Port P80's pin
RESERVED0013       0x0013   RESERVED
PD8                0x0014   Port P8 direction register
PD8.PD8_7           7   Port P87 direction selection bit
PD8.PD8_6           6   Port P86 direction selection bit
PD8.PD8_5           5   Port P85 direction selection bit
PD8.PD8_4           4   Port P84 direction selection bit
PD8.PD8_3           3   Port P83 direction selection bit
PD8.PD8_2           2   Port P82 direction selection bit
PD8.PD8_1           1   Port P81 direction selection bit
PD8.PD8_0           0   Port P80 direction selection bit
RESERVED0015       0x0015   RESERVED
RESERVED0016       0x0016   RESERVED
RESERVED0017       0x0017   RESERVED
RESERVED0018       0x0018   RESERVED
RESERVED0019       0x0019   RESERVED
RESERVED001A       0x001A   RESERVED
RESERVED001B       0x001B   RESERVED
RESERVED001C       0x001C   RESERVED
RESERVED001D       0x001D   RESERVED
ADCON0             0x001E   A-D control register 0 (***)
ADCON0.Bit7         7   A-D conversion frequency selection flag
ADCON0.Bit6         6   A-D conversion start flag
ADCON0.Bit5         5   Trigger selection bit
ADCON0.Bit4         4   A-D operation mode selection bit 4
ADCON0.Bit3         3   A-D operation mode selection bit 3
ADCON0.Bit2         2   Analog input selection bit 2
ADCON0.Bit1         1   Analog input selection bit 1
ADCON0.Bit0         0   Analog input selection bit 0
ADCON1             0x001F   A-D control register 1 (***)
ADCON1.Bit5         5   VREF connection selection bit
ADCON1.Bit3         3   8/10-bit mode selection bit
ADCON1.Bit1         1   A-D sweep pin selection bit 1
ADCON1.Bit0         0   A-D sweep pin selection bit 0
AD0                0x0020   A-D register 0
AD1                0x0022   A-D register 1
AD2                0x0024   A-D register 2
AD3                0x0026   A-D register 3
AD4                0x0028   A-D register 4
AD5                0x002A   A-D register 5
AD6                0x002C   A-D register 6
AD7                0x002E   A-D register 7
U0MR               0x0030   UART 0 transmit/receive mode register
U0MR.Bit7           7   Sleep selection bit
U0MR.Bit6           6   Parity enable bit
U0MR.Bit5           5   Odd/Even parity selection bit
U0MR.Bit4           4   Stop bit length selection bit
U0MR.Bit3           3   Internal/External clock selection bit
U0MR.Bit2           2   Serial I/O mode selection bit 2
U0MR.Bit1           1   Serial I/O mode selection bit 1
U0MR.Bit0           0   Serial I/O mode selection bit 0
BRG0               0x0031   UART 0 baud rate register (BRG0) (***)
U0TB               0x0032   UART 0 transmission buffer register
U0C0               0x0034   UART 0 transmit/receive control register 0
U0C0.Bit7           7   Transfer format selection bit
U0C0.Bit6           6   CLK polarity selection bit
U0C0.Bit5           5   Data output selection bit
U0C0.Bit4           4   CTS/RTS enable bit
U0C0.Bit3           3   Transmission register empty flag
U0C0.Bit2           2   CTS/RTS function selection bit
U0C0.Bit1           1   BRG count source selection bit 1
U0C0.Bit0           0   BRG count source selection bit 0
U0C1               0x0035   UART 0 transmit/receive control register 1
U0C1.Bit7           7   Error sum flag
U0C1.Bit6           6   Parity error flag
U0C1.Bit5           5   Framing error flag
U0C1.Bit4           4   Overrun error flag
U0C1.Bit3           3   Receive completion flag
U0C1.Bit2           2   Receive enable bit
U0C1.Bit1           1   Transmission buffer empty flag
U0C1.Bit0           0   Transmit enable bit
U0RB               0x0036   UART 0 receive buffer register
U1MR               0x0038   UART 1 transmit/receive mode register
U1MR.Bit7           7   Sleep selection bit
U1MR.Bit6           6   Parity enable bit
U1MR.Bit5           5   Odd/Even parity selection bit
U1MR.Bit4           4   Stop bit length selection bit
U1MR.Bit3           3   Internal/External clock selection bit
U1MR.Bit2           2   Serial I/O mode selection bit 2
U1MR.Bit1           1   Serial I/O mode selection bit 1
U1MR.Bit0           0   Serial I/O mode selection bit 0
BRG1               0x0039   UART 1 baud rate register (BRG1) (***)
U1TB               0x003A   UART 1 transmission buffer register
U1C0               0x003C   UART 1 transmit/receive control register 0
U1C0.Bit7           7   Transfer format selection bit
U1C0.Bit6           6   CLK polarity selection bit
U1C0.Bit5           5   Data output selection bit
U1C0.Bit4           4   CTS/RTS enable bit
U1C0.Bit3           3   Transmission register empty flag
U1C0.Bit2           2   CTS/RTS function selection bit
U1C0.Bit1           1   BRG count source selection bit 1
U1C0.Bit0           0   BRG count source selection bit 0
U1C1               0x003D   UART 1 transmit/receive control register 1
U1C1.Bit7           7   Error sum flag
U1C1.Bit6           6   Parity error flag
U1C1.Bit5           5   Framing error flag
U1C1.Bit4           4   Overrun error flag
U1C1.Bit3           3   Receive completion flag
U1C1.Bit2           2   Receive enable bit
U1C1.Bit1           1   Transmission buffer empty flag
U1C1.Bit0           0   Transmit enable bit
U1RB               0x003E   UART 1 receive buffer register
CS_F               0x0040   Count start flag (***)
CS_F.Bit7           7   Timer B2 count start flag
CS_F.Bit6           6   Timer B1 count start flag
CS_F.Bit5           5   Timer B0 count start flag
CS_F.Bit4           4   Timer A4 count start flag
CS_F.Bit3           3   Timer A3 count start flag
CS_F.Bit2           2   Timer A2 count start flag
CS_F.Bit1           1   Timer A1 count start flag
CS_F.Bit0           0   Timer A0 count start flag
RESERVED0041       0x0041   RESERVED
OSS_F              0x0042   One-shot start flag (***)
OSS_F.Bit4          4   Timer A4 one-shot start flag
OSS_F.Bit3          3   Timer A3 one-shot start flag
OSS_F.Bit2          2   Timer A2 one-shot start flag
OSS_F.Bit1          1   Timer A1 one-shot start flag
OSS_F.Bit0          0   Timer A0 one-shot start flag
RESERVED0043       0x0043   RESERVED
UD_F               0x0044   Up-down flag (***)
UD_F.Bit7           7   Timer A4 two-phase pulse signal processing selection bit
UD_F.Bit6           6   Timer A3 two-phase pulse signal processing selection bit
UD_F.Bit5           5   Timer A2 two-phase pulse signal processing selection bit
UD_F.Bit4           4   Timer A4 up-down flag
UD_F.Bit3           3   Timer A3 up-down flag
UD_F.Bit2           2   Timer A2 up-down flag
UD_F.Bit1           1   Timer A1 up-down flag
UD_F.Bit0           0   Timer A0 up-down flag
RESERVED0045       0x0045   RESERVED
TA0                0x0046   Timer A0 register
TA1                0x0048   Timer A1 register
TA2                0x004A   Timer A2 register
TA3                0x004C   Timer A3 register
TA4                0x004E   Timer A4 register
TB0                0x0050   Timer B0 register
TB0.Bit1            1   Operating mode selection bit 1
TB0.Bit0            0   Operating mode selection bit 0
TB1                0x0052   Timer B1 register
TB1.Bit1            1   Operating mode selection bit 1
TB1.Bit0            0   Operating mode selection bit 0
TB2                0x0054   Timer B2 register
TB2.Bit1            1   Operating mode selection bit 1
TB2.Bit0            0   Operating mode selection bit 0
TA0MR              0x0056   Timer A0 mode register
TA0MR.Bit4          4   Up-down switching factor selection bit
TA0MR.Bit3          3   Count polarity selection bit
TA0MR.Bit2          2   Pulse output function selection bit
TA0MR.Bit1          1   Operating mode selection bit 1
TA0MR.Bit0          0   Operating mode selection bit 0
TA1MR              0x0057   Timer A1 mode register
TA1MR.Bit4          4   Up-down switching factor selection bit
TA1MR.Bit3          3   Count polarity selection bit
TA1MR.Bit2          2   Pulse output function selection bit
TA1MR.Bit1          1   Operating mode selection bit 1
TA1MR.Bit0          0   Operating mode selection bit 0
TA2MR              0x0058   Timer A2 mode register
TA2MR.Bit7          7   Two-phase pulse signal processing type selection bit
TA2MR.Bit6          6   Count type selection bit
TA2MR.Bit4          4   Up-down switching factor selection bit
TA2MR.Bit3          3   Count polarity selection bit
TA2MR.Bit2          2   Pulse output function selection bit
TA2MR.Bit1          1   Operating mode selection bit 1
TA2MR.Bit0          0   Operating mode selection bit 0
TA3MR              0x0059   Timer A3 mode register
TA3MR.Bit7          7   Two-phase pulse signal processing type selection bit
TA3MR.Bit6          6   Count type selection bit
TA3MR.Bit4          4   Up-down switching factor selection bit
TA3MR.Bit3          3   Count polarity selection bit
TA3MR.Bit2          2   Pulse output function selection bit
TA3MR.Bit1          1   Operating mode selection bit 1
TA3MR.Bit0          0   Operating mode selection bit 0
TA4MR              0x005A   Timer A4 mode register
TA4MR.Bit7          7   Two-phase pulse signal processing type selection bit
TA4MR.Bit6          6   Count type selection bit
TA4MR.Bit4          4   Up-down switching factor selection bit
TA4MR.Bit3          3   Count polarity selection bit
TA4MR.Bit2          2   Pulse output function selection bit
TA4MR.Bit1          1   Operating mode selection bit 1
TA4MR.Bit0          0   Operating mode selection bit 0
TB0MR              0x005B   Timer B0 mode register
TB0MR.Bit7          7   Count source selection bit 7
TB0MR.Bit6          6   Count source selection bit 6
TB0MR.Bit4          4   Timer B0 mode register
TB0MR.Bit1          1   Operating mode selection bit 1
TB0MR.Bit0          0   Operating mode selection bit 0
TB1MR              0x005C   Timer B1 mode register
TB1MR.Bit7          7   Count source selection bit 7
TB1MR.Bit6          6   Count source selection bit 6
TB1MR.Bit4          4   Timer B0 mode register
TB1MR.Bit1          1   Operating mode selection bit 1
TB1MR.Bit0          0   Operating mode selection bit 0
TB2MR              0x005D   Timer B2 mode register
TB2MR.Bit7          7   Count source selection bit 7
TB2MR.Bit6          6   Count source selection bit 6
TB2MR.Bit4          4   Timer B0 mode register
TB2MR.Bit1          1   Operating mode selection bit 1
TB2MR.Bit0          0   Operating mode selection bit 0
PM0                0x005E   Processor mode register 0
PM0.Bit7            7   Clock f1 output selection bit
PM0.Bit5            5   Interrupt priority detection time selection bit 5
PM0.Bit4            4   Interrupt priority detection time selection bit 4
PM0.Bit3            3   Software reset bit
PM0.Bit2            2   Wait bit
PM0.Bit1            1   Processor mode bit 1
PM0.Bit0            0   Processor mode bit 0
PM1                0x005F   Processor mode register 1
PM1.Bit0            0   Wait selection bit
WDT                0x0060   Watchdog timer register (***)
WDTFS_F            0x0061   Watchdog timer frequency selection flag (***)
WDTFS_F.Bit0        0   Watchdog timer frequency selection flag
RESERVED0062       0x0062   RESERVED
MACR               0x0063   Memory allocation control register
MACR.Bit2           2   Memory allocation selection bit 2
MACR.Bit1           1   Memory allocation selection bit 1
MACR.Bit0           0   Memory allocation selection bit 0
U2MR               0x0064   UART2 transmit/receive mode register
U2MR.Bit6           6   Parity enable bit
U2MR.Bit5           5   Odd/Even Parity selection bit
U2MR.Bit4           4   Stop bit length selection bit
U2MR.Bit3           3   Internal/External clock selection bit
U2MR.Bit2           2   Serial I/O mode selection bit 2
U2MR.Bit1           1   Serial I/O mode selection bit 1
U2MR.Bit0           0   Serial I/O mode selection bit 0
BRG2               0x0065   UART2 baud rate register (BRG2)
U2TB               0x0066   UART2 transmission buffer register
U2C0               0x0068   UART2 transmit/receive control register 0
U2C0.Bit3           3   Transmission register empty flag
U2C0.Bit2           2   CTS enable bit
U2C0.Bit1           1   BRG count source selection bit 1
U2C0.Bit0           0   BRG count source selection bit 0
U2C1               0x0069   UART2 transmit/receive control register 1
U2C1.Bit7           7   Error sum flag
U2C1.Bit6           6   Parity error flag
U2C1.Bit5           5   Framing error flag
U2C1.Bit4           4   Overrun error flag
U2C1.Bit3           3   Receive completion flag
U2C1.Bit2           2   Receive enable bit
U2C1.Bit1           1   Transmission buffer empty flag
U2C1.Bit0           0   Transmit enable bit
U2RB               0x006A   UART2 receive buffer register
OCCR0              0x006C   Oscillation circuit control register 0 (***)
OCCR0.Bit6          6   Signal output disable selection bit
OCCR0.Bit5          5   System clock stop bit at wait state
OCCR0.Bit4          4   Port-Xc selection bit
OCCR0.Bit3          3   System clock selection bit
OCCR0.Bit2          2   Main clock stop bit
OCCR0.Bit0          0   XCOUT drivability selection bit
PFCR               0x006D   Port function control register (***)
PFCR.Bit7           7   Key input interrupt selection bit
PFCR.Bit6           6   Port P5 pull-up selection bit
PFCR.Bit5           5   Port P6 pull-up selection bit 1
PFCR.Bit3           3   Port P6 pull-up selection bit 0
PFCR.Bit2           2   Timer B1 internal connect selection bit
PFCR.Bit1           1   Sub-clock output selection bit/Timer B2 clock source selection bit
PFCR.Bit0           0   Standby state selection bit
STCR               0x006E   Serial transmit control register (***)
STCR.Bit5           5   Transmission clock output pin selection bit 5
STCR.Bit4           4   Transmission clock output pin selection bit 4
OCCR1              0x006F   Oscillation circuit control register 1 (***)
OCCR1.Bit7          7   Clock prescaler reset bit
OCCR1.Bit2          2   Sub clock external input selection bit 
OCCR1.Bit1          1   Main clock external input selection bit
OCCR1.Bit0          0   Main clock division selection bit 
ADU2_TRICR         0x0070   A-D/UART2 trans./rece. interrupt control register
ADU2_TRICR.Bit3     3   Interrupt request bit
ADU2_TRICR.Bit2     2   Interrupt priority level selection bit 2
ADU2_TRICR.Bit1     1   Interrupt priority level selection bit 1
ADU2_TRICR.Bit0     0   Interrupt priority level selection bit 0
S0TIC              0x0071   UART 0 transmission interrupt control register
S0TIC.Bit3          3   Interrupt request bit
S0TIC.Bit2          2   Interrupt priority level selection bit 2
S0TIC.Bit1          1   Interrupt priority level selection bit 1
S0TIC.Bit0          0   Interrupt priority level selection bit 0
S0RIC              0x0072   UART 0 receive interrupt control register
S0RIC.Bit3          3   Interrupt request bit                   
S0RIC.Bit2          2   Interrupt priority level selection bit 2
S0RIC.Bit1          1   Interrupt priority level selection bit 1
S0RIC.Bit0          0   Interrupt priority level selection bit 0
S1TIC              0x0073   UART 1 transmission interrupt control register
S1TIC.Bit3          3   Interrupt request bit                   
S1TIC.Bit2          2   Interrupt priority level selection bit 2
S1TIC.Bit1          1   Interrupt priority level selection bit 1
S1TIC.Bit0          0   Interrupt priority level selection bit 0
S1RIC              0x0074   UART 1 receive interrupt control register
S1RIC.Bit3          3   Interrupt request bit                   
S1RIC.Bit2          2   Interrupt priority level selection bit 2
S1RIC.Bit1          1   Interrupt priority level selection bit 1
S1RIC.Bit0          0   Interrupt priority level selection bit 0
TA0IC              0x0075   Timer A0 interrupt control register
TA0IC.Bit3          3   Interrupt request bit                   
TA0IC.Bit2          2   Interrupt priority level selection bit 2
TA0IC.Bit1          1   Interrupt priority level selection bit 1
TA0IC.Bit0          0   Interrupt priority level selection bit 0
TA1IC              0x0076   Timer A1 interrupt control register
TA1IC.Bit3          3   Interrupt request bit                   
TA1IC.Bit2          2   Interrupt priority level selection bit 2
TA1IC.Bit1          1   Interrupt priority level selection bit 1
TA1IC.Bit0          0   Interrupt priority level selection bit 0
TA2IC              0x0077   Timer A2 interrupt control register
TA2IC.Bit3          3   Interrupt request bit                   
TA2IC.Bit2          2   Interrupt priority level selection bit 2
TA2IC.Bit1          1   Interrupt priority level selection bit 1
TA2IC.Bit0          0   Interrupt priority level selection bit 0
TA3IC              0x0078   Timer A3 interrupt control register
TA3IC.Bit3          3   Interrupt request bit                   
TA3IC.Bit2          2   Interrupt priority level selection bit 2
TA3IC.Bit1          1   Interrupt priority level selection bit 1
TA3IC.Bit0          0   Interrupt priority level selection bit 0
TA4IC              0x0079   Timer A4 interrupt control register
TA4IC.Bit3          3   Interrupt request bit                   
TA4IC.Bit2          2   Interrupt priority level selection bit 2
TA4IC.Bit1          1   Interrupt priority level selection bit 1
TA4IC.Bit0          0   Interrupt priority level selection bit 0
TB0IC              0x007A   Timer B0 interrupt control register
TB0IC.Bit3          3   Interrupt request bit                   
TB0IC.Bit2          2   Interrupt priority level selection bit 2
TB0IC.Bit1          1   Interrupt priority level selection bit 1
TB0IC.Bit0          0   Interrupt priority level selection bit 0
TB1IC              0x007B   Timer B1 interrupt control register
TB1IC.Bit3          3   Interrupt request bit                   
TB1IC.Bit2          2   Interrupt priority level selection bit 2
TB1IC.Bit1          1   Interrupt priority level selection bit 1
TB1IC.Bit0          0   Interrupt priority level selection bit 0
TB2IC              0x007C   Timer B2 interrupt control register
TB2IC.Bit3          3   Interrupt request bit                   
TB2IC.Bit2          2   Interrupt priority level selection bit 2
TB2IC.Bit1          1   Interrupt priority level selection bit 1
TB2IC.Bit0          0   Interrupt priority level selection bit 0
INT0IC             0x007D   INT0 interrupt control register
INT0IC.Bit5         5   Level sense/Edge sense selection bit
INT0IC.Bit4         4   Polarity selection bit
INT0IC.Bit3         3   Interrupt request bit
INT0IC.Bit2         2   Interrupt priority level selection bit 2
INT0IC.Bit1         1   Interrupt priority level selection bit 1
INT0IC.Bit0         0   Interrupt priority level selection bit 0
INT1IC             0x007E   INT1 interrupt control register
INT1IC.Bit5         5   Level sense/Edge sense selection bit    
INT1IC.Bit4         4   Polarity selection bit                  
INT1IC.Bit3         3   Interrupt request bit                   
INT1IC.Bit2         2   Interrupt priority level selection bit 2
INT1IC.Bit1         1   Interrupt priority level selection bit 1
INT1IC.Bit0         0   Interrupt priority level selection bit 0
INT2KI_IC          0x007F   INT2/Key input interrupt control register (***)
INT2KI_IC.Bit5      5   Level sense/Edge sense selection bit
INT2KI_IC.Bit4      4   Polarity selection bit
INT2KI_IC.Bit3      3   Interrupt request bit
INT2KI_IC.Bit2      2   Interrupt priority level selection bit 2
INT2KI_IC.Bit1      1   Interrupt priority level selection bit 1
INT2KI_IC.Bit0      0   Interrupt priority level selection bit 0


.M37751M6C_XXXFP
; http://www.infomicom.mesc.co.jp/micom/english/edocs/7700/um/e7751um.pdf

; *** - собственные сокращения


; MEMORY MAP
area DATA FSR_1       0x0000:0x0080
area DATA RAM_        0x0080:0x0880   Internal RAM
area BSS  RESERVED    0x0880:0x4000
area DATA ROM_        0x4000:0xFFD6   Internal ROM area
area DATA USER_VEC    0xFFD6:0x10000


; Interrupt and reset vector assignments
interrupt __RESET           0xFFFE   RESET
interrupt Zero_Div          0xFFFC   Zero division
interrupt BRK_              0xFFFA   BRK instruction
interrupt DBC_              0xFFF8   DBC
interrupt WATCDOG           0xFFF6   Watchdog timer
interrupt INT0_             0xFFF4   INT0
interrupt INT1_             0xFFF2   INT1
interrupt INT2_             0xFFF0   INT2
interrupt Timer_A0          0xFFEE   Timer A0      
interrupt Timer_A1          0xFFEC   Timer A1      
interrupt Timer_A2          0xFFEA   Timer A2      
interrupt Timer_A3          0xFFE8   Timer A3      
interrupt Timer_A4          0xFFE6   Timer A4      
interrupt Timer_B0          0xFFE4   Timer B0      
interrupt Timer_B1          0xFFE2   Timer B1      
interrupt Timer_B2          0xFFE0   Timer B2      
interrupt UART0_receive     0xFFDE   UART0 receive 
interrupt UART0_transmit    0xFFDC   UART0 transmit
interrupt UART1_receive     0xFFDA   UART1 receive 
interrupt UART1_transmit    0xFFD8   UART1 transmit
interrupt A_D_conversion    0xFFD6   A/D conversion


; INPUT/ OUTPUT PORTS
RESERVED0000       0x0000   RESERVED
RESERVED0001       0x0001   RESERVED
P0                 0x0002   Port P0 register
P0.P0_7             7   Port P07 bit
P0.P0_6             6   Port P06 bit
P0.P0_5             5   Port P05 bit
P0.P0_4             4   Port P04 bit
P0.P0_3             3   Port P03 bit
P0.P0_2             2   Port P02 bit
P0.P0_1             1   Port P01 bit
P0.P0_0             0   Port P00 bit
P1                 0x0003   Port P1 register
P1.P1_7             7   Port P17 bit
P1.P1_6             6   Port P16 bit
P1.P1_5             5   Port P15 bit
P1.P1_4             4   Port P14 bit
P1.P1_3             3   Port P13 bit
P1.P1_2             2   Port P12 bit
P1.P1_1             1   Port P11 bit
P1.P1_0             0   Port P10 bit
PD0                0x0004   Port P0 direction register
PD0.PD0_7           7   Port P07 direction bit
PD0.PD0_6           6   Port P06 direction bit
PD0.PD0_5           5   Port P05 direction bit
PD0.PD0_4           4   Port P04 direction bit
PD0.PD0_3           3   Port P03 direction bit
PD0.PD0_2           2   Port P02 direction bit
PD0.PD0_1           1   Port P01 direction bit
PD0.PD0_0           0   Port P00 direction bit
PD1                0x0005   Port P1 direction register
PD1.PD1_7           7   Port P17 direction bit
PD1.PD1_6           6   Port P16 direction bit
PD1.PD1_5           5   Port P15 direction bit
PD1.PD1_4           4   Port P14 direction bit
PD1.PD1_3           3   Port P13 direction bit
PD1.PD1_2           2   Port P12 direction bit
PD1.PD1_1           1   Port P11 direction bit
PD1.PD1_0           0   Port P10 direction bit
P2                 0x0006   Port P2 register
P2.P2_7             7   Port P27 bit
P2.P2_6             6   Port P26 bit
P2.P2_5             5   Port P25 bit
P2.P2_4             4   Port P24 bit
P2.P2_3             3   Port P23 bit
P2.P2_2             2   Port P22 bit
P2.P2_1             1   Port P21 bit
P2.P2_0             0   Port P20 bit
P3                 0x0007   Port P3 register
P3.P3_7             7   Port P37 bit
P3.P3_6             6   Port P36 bit
P3.P3_5             5   Port P35 bit
P3.P3_4             4   Port P34 bit
P3.P3_3             3   Port P33 bit
P3.P3_2             2   Port P32 bit
P3.P3_1             1   Port P31 bit
P3.P3_0             0   Port P30 bit
PD2                0x0008   Port P2 direction register
PD2.PD2_7           7   Port P27 direction bit
PD2.PD2_6           6   Port P26 direction bit
PD2.PD2_5           5   Port P25 direction bit
PD2.PD2_4           4   Port P24 direction bit
PD2.PD2_3           3   Port P23 direction bit
PD2.PD2_2           2   Port P22 direction bit
PD2.PD2_1           1   Port P21 direction bit
PD2.PD2_0           0   Port P20 direction bit
PD3                0x0009   Port P3 direction register
PD3.PD3_7           7   Port P37 direction bit
PD3.PD3_6           6   Port P36 direction bit
PD3.PD3_5           5   Port P35 direction bit
PD3.PD3_4           4   Port P34 direction bit
PD3.PD3_3           3   Port P33 direction bit
PD3.PD3_2           2   Port P32 direction bit
PD3.PD3_1           1   Port P31 direction bit
PD3.PD3_0           0   Port P30 direction bit
P4                 0x000A   Port P4 register
P4.P4_7             7   Port P47 bit
P4.P4_6             6   Port P46 bit
P4.P4_5             5   Port P45 bit
P4.P4_4             4   Port P44 bit
P4.P4_3             3   Port P43 bit
P4.P4_2             2   Port P42 bit
P4.P4_1             1   Port P41 bit
P4.P4_0             0   Port P40 bit
P5                 0x000B   Port P5 register
P5.P5_7             7   Port P57 bit
P5.P5_6             6   Port P56 bit
P5.P5_5             5   Port P55 bit
P5.P5_4             4   Port P54 bit
P5.P5_3             3   Port P53 bit
P5.P5_2             2   Port P52 bit
P5.P5_1             1   Port P51 bit
P5.P5_0             0   Port P50 bit
PD4                0x000C   Port P4 direction register
PD4.PD4_7           7   Port P47 direction bit
PD4.PD4_6           6   Port P46 direction bit
PD4.PD4_5           5   Port P45 direction bit
PD4.PD4_4           4   Port P44 direction bit
PD4.PD4_3           3   Port P43 direction bit
PD4.PD4_2           2   Port P42 direction bit
PD4.PD4_1           1   Port P41 direction bit
PD4.PD4_0           0   Port P40 direction bit
PD5                0x000D   Port P5 direction register
PD5.PD5_7           7   Port P57 direction bit
PD5.PD5_6           6   Port P56 direction bit
PD5.PD5_5           5   Port P55 direction bit
PD5.PD5_4           4   Port P54 direction bit
PD5.PD5_3           3   Port P53 direction bit
PD5.PD5_2           2   Port P52 direction bit
PD5.PD5_1           1   Port P51 direction bit
PD5.PD5_0           0   Port P50 direction bit
P6                 0x000E   Port P6 register
P6.P6_7             7   Port P67 bit
P6.P6_6             6   Port P66 bit
P6.P6_5             5   Port P65 bit
P6.P6_4             4   Port P64 bit
P6.P6_3             3   Port P63 bit
P6.P6_2             2   Port P62 bit
P6.P6_1             1   Port P61 bit
P6.P6_0             0   Port P60 bit
P7                 0x000F   Port P7 register
P7.P7_7             7   Port P77 bit
P7.P7_6             6   Port P76 bit
P7.P7_5             5   Port P75 bit
P7.P7_4             4   Port P74 bit
P7.P7_3             3   Port P73 bit
P7.P7_2             2   Port P72 bit
P7.P7_1             1   Port P71 bit
P7.P7_0             0   Port P70 bit
PD6                0x0010   Port P6 direction register
PD6.PD6_7           7   Port P67 direction bit
PD6.PD6_6           6   Port P66 direction bit
PD6.PD6_5           5   Port P65 direction bit
PD6.PD6_4           4   Port P64 direction bit
PD6.PD6_3           3   Port P63 direction bit
PD6.PD6_2           2   Port P62 direction bit
PD6.PD6_1           1   Port P61 direction bit
PD6.PD6_0           0   Port P60 direction bit
PD7                0x0011   Port P7 direction register
PD7.PD7_7           7   Port P77 direction bit
PD7.PD7_6           6   Port P76 direction bit
PD7.PD7_5           5   Port P75 direction bit
PD7.PD7_4           4   Port P74 direction bit
PD7.PD7_3           3   Port P73 direction bit
PD7.PD7_2           2   Port P72 direction bit
PD7.PD7_1           1   Port P71 direction bit
PD7.PD7_0           0   Port P80 direction bit
P8                 0x0012   Port P8 register
P8.P8_7             7   Port P87 bit
P8.P8_6             6   Port P86 bit
P8.P8_5             5   Port P85 bit
P8.P8_4             4   Port P84 bit
P8.P8_3             3   Port P83 bit
P8.P8_2             2   Port P82 bit
P8.P8_1             1   Port P81 bit
P8.P8_0             0   Port P80 bit
RESERVED0013       0x0013   RESERVED
PD8                0x0014   Port P8 direction register
PD8.PD8_7           7   Port P87 direction bit
PD8.PD8_6           6   Port P86 direction bit
PD8.PD8_5           5   Port P85 direction bit
PD8.PD8_4           4   Port P84 direction bit
PD8.PD8_3           3   Port P83 direction bit
PD8.PD8_2           2   Port P82 direction bit
PD8.PD8_1           1   Port P81 direction bit
PD8.PD8_0           0   Port P80 direction bit
RESERVED0015       0x0015   RESERVED
RESERVED0016       0x0016   RESERVED
RESERVED0017       0x0017   RESERVED
RESERVED0018       0x0018   RESERVED
RESERVED0019       0x0019   RESERVED
RESERVED001A       0x001A   RESERVED
RESERVED001B       0x001B   RESERVED
RESERVED001C       0x001C   RESERVED
RESERVED001D       0x001D   RESERVED
ADCON0             0x001E   A-D control register 0 (***)
ADCON0.Bit7         7   A-D conversion frequency
ADCON0.Bit6         6   A-D conversion start bit
ADCON0.Bit5         5   Trigger select bit
ADCON0.Bit4         4   A-D operation mode select bits 0
ADCON0.Bit3         3   A-D operation mode select bits 0
ADCON0.Bit2         2   Analog input select bit 2
ADCON0.Bit1         1   Analog input select bit 1
ADCON0.Bit0         0   Analog input select bit 0
ADCON1             0x001F   A-D control register 1 (***)
ADCON1.Bit4         4   A-D conversion frequency
ADCON1.Bit3         3   8/10-bit mode select bit
ADCON1.Bit2         2   A-D operation mode select bit 1
ADCON1.Bit1         1   A-D sweep pin select bit 1
ADCON1.Bit0         0   A-D sweep pin select bit 0
AD0                0x0020   A-D register 0
AD1                0x0022   A-D register 1
AD2                0x0024   A-D register 2
AD3                0x0026   A-D register 3
AD4                0x0028   A-D register 4
AD5                0x002A   A-D register 5
AD6                0x002C   A-D register 6
AD7                0x002E   A-D register 7
U0MR               0x0030   UART0 transmit/receive mode register
U0MR.Bit7           7   Sleep select bit
U0MR.Bit6           6   Parity enable bit
U0MR.Bit5           5   Odd/Even parity select bit
U0MR.Bit4           4   Stop bit length select bit
U0MR.Bit3           3   Internal/External clock select bit
U0MR.Bit2           2   Serial I/O mode select bit 2
U0MR.Bit1           1   Serial I/O mode select bit 1
U0MR.Bit0           0   Serial I/O mode select bit 0
BRG0               0x0031   UART0 baud rate register (BRG0) (***)
U0TB               0x0032   UART0 transmit buffer register
U0C0               0x0034   UART0 transmit/receive control register 0
U0C0.Bit7           7   Transfer format select bit
U0C0.Bit3           3   Transmit register empty flag
U0C0.Bit2           2   CTS/RTS select bit
U0C0.Bit1           1   BRG count source select bit 1
U0C0.Bit0           0   BRG count source select bit 0
U0C1               0x0035   UART0 transmit/receive control register 1
U0C1.Bit7           7   Error sum flag
U0C1.Bit6           6   Parity error flag
U0C1.Bit5           5   Framing error flag
U0C1.Bit4           4   Overrun error flag
U0C1.Bit3           3   Receive complete flag
U0C1.Bit2           2   Receive enable bit
U0C1.Bit1           1   Transmit buffer empty flag
U0C1.Bit0           0   Transmit enable bit
U0RB               0x0036   UART0 receive buffer register
U1MR               0x0038   UART1 transmit/receive mode register
U1MR.Bit7           7   Sleep select bit
U1MR.Bit6           6   Parity enable bit
U1MR.Bit5           5   Odd/Even parity select bit
U1MR.Bit4           4   Stop bit length select bit
U1MR.Bit3           3   Internal/External clock select bit
U1MR.Bit2           2   Serial I/O mode select bit 2
U1MR.Bit1           1   Serial I/O mode select bit 1
U1MR.Bit0           0   Serial I/O mode select bit 0
BRG1               0x0039   UART1 baud rate register (BRG1)
U1TB               0x003A   UART1 transmit buffer register
U1C0               0x003C   UART1 transmit/receive control register 0
U1C0.Bit7           7   Transfer format select bit
U1C0.Bit3           3   Transmit register empty flag
U1C0.Bit2           2   CTS/RTS select bit
U1C0.Bit1           1   BRG count source select bit 1
U1C0.Bit0           0   BRG count source select bit 0
U1C1               0x003D   UART1 transmit/receive control register 1
U1C1.Bit7           7   Error sum flag
U1C1.Bit6           6   Parity error flag
U1C1.Bit5           5   Framing error flag
U1C1.Bit4           4   Overrun error flag
U1C1.Bit3           3   Receive complete flag
U1C1.Bit2           2   Receive enable bit
U1C1.Bit1           1   Transmit buffer empty flag
U1C1.Bit0           0   Transmit enable bit
U1RB               0x003E   UART1 receive buffer register
CSREG              0x0040   Count start register (***)
CSREG.Bit7          7   Timer B2 count start bit
CSREG.Bit6          6   Timer B1 count start bit
CSREG.Bit5          5   Timer B0 count start bit
CSREG.Bit4          4   Timer A4 count start bit
CSREG.Bit3          3   Timer A3 count start bit
CSREG.Bit2          2   Timer A2 count start bit
CSREG.Bit1          1   Timer A1 count start bit
CSREG.Bit0          0   Timer A0 count start bit
RESERVED0041       0x0041   RESERVED
ONE_SSREG          0x0042   One-shot start register (***)
ONE_SSREG.Bit4      4   Timer A4 one-shot start bit
ONE_SSREG.Bit3      3   Timer A3 one-shot start bit
ONE_SSREG.Bit2      2   Timer A2 one-shot start bit
ONE_SSREG.Bit1      1   Timer A1 one-shot start bit
ONE_SSREG.Bit0      0   Timer A0 one-shot start bit
RESERVED0043       0x0043   RESERVED
UP_D_REG           0x0044   Up-down register (***)
UP_D_REG.Bit7       7   Timer A4 two-phase pulse signal processing select bit
UP_D_REG.Bit6       6   Timer A3 two-phase pulse signal processing select bit
UP_D_REG.Bit5       5   Timer A2 two-phase pulse signal processing select bit
UP_D_REG.Bit4       4   Timer A4 up-down bit
UP_D_REG.Bit3       3   Timer A3 up-down bit
UP_D_REG.Bit2       2   Timer A2 up-down bit
UP_D_REG.Bit1       1   Timer A1 up-down bit
UP_D_REG.Bit0       0   Timer A0 up-down bit
RESERVED0045       0x0045   RESERVED
TA0                0x0046   Timer A0 register
TA1                0x0048   Timer A1 register
TA2                0x004A   Timer A2 register
TA3                0x004C   Timer A3 register
TA4                0x004E   Timer A4 register
TB0                0x0050   Timer B0 register
TB1                0x0052   Timer B1 register
TB2                0x0054   Timer B2 register
TA0MR              0x0056   Timer A0 mode register
TA0MR.Bit7          7   
TA0MR.Bit6          6   
TA0MR.Bit5          5   
TA0MR.Bit4          4   
TA0MR.Bit3          3   
TA0MR.Bit2          2   
TA0MR.Bit1          1   Operating mode select bit 1
TA0MR.Bit0          0   Operating mode select bit 0
TA1MR              0x0057   Timer A1 mode register
TA1MR.Bit7          7   
TA1MR.Bit6          6   
TA1MR.Bit5          5   
TA1MR.Bit4          4   
TA1MR.Bit3          3   
TA1MR.Bit2          2   
TA1MR.Bit1          1   Operating mode select bit 1
TA1MR.Bit0          0   Operating mode select bit 0
TA2MR              0x0058   Timer A2 mode register
TA2MR.Bit7          7   
TA2MR.Bit6          6   
TA2MR.Bit5          5   
TA2MR.Bit4          4   
TA2MR.Bit3          3   
TA2MR.Bit2          2   
TA2MR.Bit1          1   Operating mode select bit 1
TA2MR.Bit0          0   Operating mode select bit 0
TA3MR              0x0059   Timer A3 mode register
TA3MR.Bit7          7   
TA3MR.Bit6          6   
TA3MR.Bit5          5   
TA3MR.Bit4          4   
TA3MR.Bit3          3   
TA3MR.Bit2          2   
TA3MR.Bit1          1   Operating mode select bit 1
TA3MR.Bit0          0   Operating mode select bit 0
TA4MR              0x005A   Timer A4 mode register
TA4MR.Bit7          7   
TA4MR.Bit6          6   
TA4MR.Bit5          5   
TA4MR.Bit4          4   
TA4MR.Bit3          3   
TA4MR.Bit2          2   
TA4MR.Bit1          1   Operating mode select bit 1
TA4MR.Bit0          0   Operating mode select bit 0
TB0MR              0x005B   Timer B0 mode register
TB0MR.Bit7          7
TB0MR.Bit6          6
TB0MR.Bit5          5
TB0MR.Bit3          3
TB0MR.Bit2          2
TB0MR.Bit1          1   Operating mode select bit 1
TB0MR.Bit0          0   Operating mode select bit 0
TB1MR              0x005C   Timer B1 mode register
TB1MR.Bit7          7
TB1MR.Bit6          6
TB1MR.Bit5          5
TB1MR.Bit3          3
TB1MR.Bit2          2
TB1MR.Bit1          1   Operating mode select bit 1
TB1MR.Bit0          0   Operating mode select bit 0
TB2MR              0x005D   Timer B2 mode register
TB2MR.Bit7          7
TB2MR.Bit6          6
TB2MR.Bit5          5
TB2MR.Bit3          3
TB2MR.Bit2          2
TB2MR.Bit1          1   Operating mode select bit 1
TB2MR.Bit0          0   Operating mode select bit 0
PM0                0x005E   Processor mode register 0
PM0.Bit7            7   Clock f1 output select bit
PM0.Bit5            5   Interrupt priority detection time select bit 5
PM0.Bit4            4   Interrupt priority detection time select bit 4
PM0.Bit3            3   Software reset bit
PM0.Bit1            1   Processor mode bit 1
PM0.Bit0            0   Processor mode bit 0
PM1                0x005F   Processor mode register 1
PM1.Bit5            5   Bus cycle select bit 5
PM1.Bit4            4   Bus cycle select bit 4
PM1.Bit3            3   CPU running speed select bit
PM1.Bit2            2   Clock source for peripheral devices select bit
WDT                0x0060   Watchdog timer register (***)
WDTFS              0x0061   Watchdog timer frequency select register (***)
WDTFS.Bit0          0   Watchdog timer frequency select bit
RESERVED0062       0x0062   RESERVED
RESERVED0063       0x0063   RESERVED
RESERVED0064       0x0064   RESERVED
RESERVED0065       0x0065   RESERVED
RESERVED0066       0x0066   RESERVED
RESERVED0067       0x0067   RESERVED
RESERVED0068       0x0068   RESERVED
RESERVED0069       0x0069   RESERVED
RESERVED006A       0x006A   RESERVED
RESERVED006B       0x006B   RESERVED
RESERVED006C       0x006C   RESERVED
RESERVED006D       0x006D   RESERVED
RESERVED006E       0x006E   RESERVED
RESERVED006F       0x006F   RESERVED
ADIC               0x0070   A-D conversion interrupt control register
ADIC.Bit3           3   Interrupt request bit
ADIC.Bit2           2   Interrupt priority level select bit 2
ADIC.Bit1           1   Interrupt priority level select bit 1
ADIC.Bit0           0   Interrupt priority level select bit 0
S0TIC              0x0071   UART0 transmit interrupt control register
S0TIC.Bit3          3   Interrupt request bit              
S0TIC.Bit2          2   Interrupt priority level select bit 2
S0TIC.Bit1          1   Interrupt priority level select bit 1
S0TIC.Bit0          0   Interrupt priority level select bit 0
S0RIC              0x0072   UART0 receive interrupt control register
S0RIC.Bit3          3   Interrupt request bit              
S0RIC.Bit2          2   Interrupt priority level select bit 2
S0RIC.Bit1          1   Interrupt priority level select bit 1
S0RIC.Bit0          0   Interrupt priority level select bit 0
S1TIC              0x0073   UART1 transmit interrupt control register
S1TIC.Bit3          3   Interrupt request bit              
S1TIC.Bit2          2   Interrupt priority level select bit 2
S1TIC.Bit1          1   Interrupt priority level select bit 1
S1TIC.Bit0          0   Interrupt priority level select bit 0
S1RIC              0x0074   UART1 receive interrupt control register
S1RIC.Bit3          3   Interrupt request bit              
S1RIC.Bit2          2   Interrupt priority level select bit 2
S1RIC.Bit1          1   Interrupt priority level select bit 1
S1RIC.Bit0          0   Interrupt priority level select bit 0
TA0IC              0x0075   Timer A0 interrupt control register
TA0IC.Bit3          3   Interrupt request bit              
TA0IC.Bit2          2   Interrupt priority level select bit 2
TA0IC.Bit1          1   Interrupt priority level select bit 1
TA0IC.Bit0          0   Interrupt priority level select bit 0
TA1IC              0x0076   Timer A1 interrupt control register
TA1IC.Bit3          3   Interrupt request bit              
TA1IC.Bit2          2   Interrupt priority level select bit 2
TA1IC.Bit1          1   Interrupt priority level select bit 1
TA1IC.Bit0          0   Interrupt priority level select bit 0
TA2IC              0x0077   Timer A2 interrupt control register
TA2IC.Bit3          3   Interrupt request bit              
TA2IC.Bit2          2   Interrupt priority level select bit 2
TA2IC.Bit1          1   Interrupt priority level select bit 1
TA2IC.Bit0          0   Interrupt priority level select bit 0
TA3IC              0x0078   Timer A3 interrupt control register
TA3IC.Bit3          3   Interrupt request bit              
TA3IC.Bit2          2   Interrupt priority level select bit 2
TA3IC.Bit1          1   Interrupt priority level select bit 1
TA3IC.Bit0          0   Interrupt priority level select bit 0
TA4IC              0x0079   Timer A4 interrupt control register
TA4IC.Bit3          3   Interrupt request bit              
TA4IC.Bit2          2   Interrupt priority level select bit 2
TA4IC.Bit1          1   Interrupt priority level select bit 1
TA4IC.Bit0          0   Interrupt priority level select bit 0
TB0IC              0x007A   Timer B0 interrupt control register
TB0IC.Bit3          3   Interrupt request bit              
TB0IC.Bit2          2   Interrupt priority level select bit 2
TB0IC.Bit1          1   Interrupt priority level select bit 1
TB0IC.Bit0          0   Interrupt priority level select bit 0
TB1IC              0x007B   Timer B1 interrupt control register
TB1IC.Bit3          3   Interrupt request bit              
TB1IC.Bit2          2   Interrupt priority level select bit 2
TB1IC.Bit1          1   Interrupt priority level select bit 1
TB1IC.Bit0          0   Interrupt priority level select bit 0
TB2IC              0x007C   Timer B2 interrupt control register
TB2IC.Bit3          3   Interrupt request bit              
TB2IC.Bit2          2   Interrupt priority level select bit 2
TB2IC.Bit1          1   Interrupt priority level select bit 1
TB2IC.Bit0          0   Interrupt priority level select bit 0
INT0IC             0x007D   INT0 interrupt control register
INT0IC.Bit5         5   Level sense/Edge sense select bit
INT0IC.Bit4         4   Polarity select bit
INT0IC.Bit3         3   Interrupt request bit
INT0IC.Bit2         2   Interrupt priority level select bit 2
INT0IC.Bit1         1   Interrupt priority level select bit 1
INT0IC.Bit0         0   Interrupt priority level select bit 0
INT1IC             0x007E   INT1 interrupt control register
INT1IC.Bit5         5   Level sense/Edge sense select bit
INT1IC.Bit4         4   Polarity select bit
INT1IC.Bit3         3   Interrupt request bit
INT1IC.Bit2         2   Interrupt priority level select bit 2
INT1IC.Bit1         1   Interrupt priority level select bit 1
INT1IC.Bit0         0   Interrupt priority level select bit 0
INT2IC             0x007F   INT2 interrupt control register
INT2IC.Bit5         5   Level sense/Edge sense select bit
INT2IC.Bit4         4   Polarity select bit
INT2IC.Bit3         3   Interrupt request bit
INT2IC.Bit2         2   Interrupt priority level select bit 2
INT2IC.Bit1         1   Interrupt priority level select bit 1
INT2IC.Bit0         0   Interrupt priority level select bit 0


.M37753M6C
; http://www.infomicom.mesc.co.jp/micom/english/edocs/7700/ds/e7753m6c.pdf

; *** - собственные сокращения


; MEMORY MAP
area DATA FSR_1       0x0000:0x0080
area DATA RAM_        0x0080:0x0880   Internal RAM
area BSS  RESERVED    0x0880:0x4000
area DATA ROM_        0x4000:0xFFD2   Internal ROM area
area DATA USER_VEC    0xFFD2:0x10000


; Interrupt and reset vector assignments
interrupt __RESET           0xFFFE   RESET
interrupt Zero_Div          0xFFFC   Zero division
interrupt BRK_              0xFFFA   BRK instruction
interrupt DBC_              0xFFF8   DBC
interrupt WATCDOG           0xFFF6   Watchdog timer
interrupt INT0_             0xFFF4   INT0
interrupt INT1_             0xFFF2   INT1
interrupt INT2_             0xFFF0   INT2
interrupt Timer_A0          0xFFEE   Timer A0      
interrupt Timer_A1          0xFFEC   Timer A1      
interrupt Timer_A2          0xFFEA   Timer A2      
interrupt Timer_A3          0xFFE8   Timer A3      
interrupt Timer_A4          0xFFE6   Timer A4      
interrupt Timer_B0          0xFFE4   Timer B0      
interrupt Timer_B1          0xFFE2   Timer B1      
interrupt Timer_B2          0xFFE0   Timer B2      
interrupt UART0_receive     0xFFDE   UART0 receive 
interrupt UART0_transmit    0xFFDC   UART0 transmit
interrupt UART1_receive     0xFFDA   UART1 receive 
interrupt UART1_transmit    0xFFD8   UART1 transmit
interrupt A_D_conversion    0xFFD6   A/D conversion
interrupt INT3_             0xFFD4   INT3
interrupt INT4_             0xFFD2   INT4


; INPUT/ OUTPUT PORTS
RESERVED0000       0x0000   RESERVED
RESERVED0001       0x0001   RESERVED
P0                 0x0002   Port P0 register
P1                 0x0003   Port P1 register
PD0                0x0004   Port P0 direction register
PD1                0x0005   Port P1 direction register
P2                 0x0006   Port P2 register
P3                 0x0007   Port P3 register
PD2                0x0008   Port P2 direction register
PD3                0x0009   Port P3 direction register
P4                 0x000A   Port P4 register
P5                 0x000B   Port P5 register
PD4                0x000C   Port P4 direction register
PD5                0x000D   Port P5 direction register
P6                 0x000E   Port P6 register
P7                 0x000F   Port P7 register
PD6                0x0010   Port P6 direction register
PD7                0x0011   Port P7 direction register
P8                 0x0012   Port P8 register
RESERVED0013       0x0013   RESERVED
PD8                0x0014   Port P8 direction register
RESERVED0015       0x0015   RESERVED
RESERVED0016       0x0016   RESERVED
RESERVED0017       0x0017   RESERVED
RESERVED0018       0x0018   RESERVED
RESERVED0019       0x0019   RESERVED
WOMR               0x001A   Waveform output mode register (***)
DTT                0x001B   Dead-time timer (***)
PODR1              0x001C   Pulse output data register 1 (***)
PODR0              0x001D   Pulse output data register 0 (***)
ADCON0             0x001E   A-D control register 0 (***)
ADCON1             0x001F   A-D control register 1 (***)
AD0                0x0020   A-D register 0
AD1                0x0022   A-D register 1
AD2                0x0024   A-D register 2
AD3                0x0026   A-D register 3
AD4                0x0028   A-D register 4
AD5                0x002A   A-D register 5
AD6                0x002C   A-D register 6
AD7                0x002E   A-D register 7
U0MR               0x0030   UART0 transmit/receive mode register
BRG0               0x0031   UART0 baud rate register (BRG0) (***)
U0TB               0x0032   UART0 transmit buffer register
U0C0               0x0034   UART0 transmit/receive control register 0
U0C1               0x0035   UART0 transmit/receive control register 1
U0RB               0x0036   UART0 receive buffer register
U1MR               0x0038   UART1 transmit/receive mode register
BRG1               0x0039   UART1 baud rate register (BRG1) (***)
U1TB               0x003A   UART1 transmit buffer register
U1C0               0x003C   UART1 transmit/receive control register 0
U1C1               0x003D   UART1 transmit/receive control register 1
U1RB               0x003E   UART1 receive buffer register
CSREG              0x0040   Count start register (***)
RESERVED0041       0x0041   RESERVED
ONE_SSREG          0x0042   One-shot start register (***)
RESERVED0043       0x0043   RESERVED
UP_D_REG           0x0044   Up-down register (***)
TAWR               0x0045   Timer A write register (***)
TA0                0x0046   Timer A0 register
TA1                0x0048   Timer A1 register
TA2                0x004A   Timer A2 register
TA3                0x004C   Timer A3 register
TA4                0x004E   Timer A4 register
TB0                0x0050   Timer B0 register
TB1                0x0052   Timer B1 register
TB2                0x0054   Timer B2 register
TA0MR              0x0056   Timer A0 mode register
TA1MR              0x0057   Timer A1 mode register
TA2MR              0x0058   Timer A2 mode register
TA3MR              0x0059   Timer A3 mode register
TA4MR              0x005A   Timer A4 mode register
TB0MR              0x005B   Timer B0 mode register
TB1MR              0x005C   Timer B1 mode register
TB2MR              0x005D   Timer B2 mode register
PM0                0x005E   Processor mode register 0
PM1                0x005F   Processor mode register 1
WDT                0x0060   Watchdog timer register (***)
WDTFS              0x0061   Watchdog timer frequency select register (***)
RESERVED0062       0x0062   RESERVED
RESERVED0063       0x0063   RESERVED
CFSR               0x0064   Comparator function select register (***)
RESERVED0065       0x0065   RESERVED
CRR                0x0066   Comparator result register (***)
RESERVED0067       0x0067   RESERVED
D_AR0              0x0068   D-A register 0 (***)
RESERVED0069       0x0069   RESERVED
D_AR1              0x006A   D-A register 1 (***)
RESERVED006B       0x006B   RESERVED
PFSR0              0x006C   Particular function select register 0 (***)
PFSR1              0x006D   Particular function select register 1 (***)
INT4IC             0x006E   INT4 interrupt control register
INT3IC             0x006F   INT3 interrupt control register
ADIC               0x0070   A-D interrupt control register (***)
S0TIC              0x0071   UART0 transmit interrupt control register
S0RIC              0x0072   UART0 receive interrupt control register
S1TIC              0x0073   UART1 transmit interrupt control register
S1RIC              0x0074   UART1 receive interrupt control register
TA0IC              0x0075   Timer A0 interrupt control register
TA1IC              0x0076   Timer A1 interrupt control register
TA2IC              0x0077   Timer A2 interrupt control register
TA3IC              0x0078   Timer A3 interrupt control register
TA4IC              0x0079   Timer A4 interrupt control register
TB0IC              0x007A   Timer B0 interrupt control register
TB1IC              0x007B   Timer B1 interrupt control register
TB2IC              0x007C   Timer B2 interrupt control register
INT0IC             0x007D   INT0 interrupt control register
INT1IC             0x007E   INT1 interrupt control register
INT2IC             0x007F   INT2 interrupt control register


.M37753M8C
; http://www.infomicom.mesc.co.jp/micom/english/edocs/7700/ds/e7753m8c.pdf

; *** - собственные сокращения


; MEMORY MAP
area DATA FSR_1       0x0000:0x0080
area DATA RAM_        0x0080:0x0880   Internal RAM
area BSS  RESERVED    0x0880:0x1000
area DATA ROM_        0x1000:0xFFD2   Internal ROM area
area DATA USER_VEC    0xFFD2:0x10000


; Interrupt and reset vector assignments
interrupt __RESET           0xFFFE   RESET
interrupt Zero_Div          0xFFFC   Zero division
interrupt BRK_              0xFFFA   BRK instruction
interrupt DBC_              0xFFF8   DBC
interrupt WATCDOG           0xFFF6   Watchdog timer
interrupt INT0_             0xFFF4   INT0
interrupt INT1_             0xFFF2   INT1
interrupt INT2_             0xFFF0   INT2
interrupt Timer_A0          0xFFEE   Timer A0      
interrupt Timer_A1          0xFFEC   Timer A1      
interrupt Timer_A2          0xFFEA   Timer A2      
interrupt Timer_A3          0xFFE8   Timer A3      
interrupt Timer_A4          0xFFE6   Timer A4      
interrupt Timer_B0          0xFFE4   Timer B0      
interrupt Timer_B1          0xFFE2   Timer B1      
interrupt Timer_B2          0xFFE0   Timer B2      
interrupt UART0_receive     0xFFDE   UART0 receive 
interrupt UART0_transmit    0xFFDC   UART0 transmit
interrupt UART1_receive     0xFFDA   UART1 receive 
interrupt UART1_transmit    0xFFD8   UART1 transmit
interrupt A_D_conversion    0xFFD6   A/D conversion
interrupt INT3_             0xFFD4   INT3
interrupt INT4_             0xFFD2   INT4


; INPUT/ OUTPUT PORTS
RESERVED0000       0x0000   RESERVED
RESERVED0001       0x0001   RESERVED
P0                 0x0002   Port P0 register
P1                 0x0003   Port P1 register
PD0                0x0004   Port P0 direction register
PD1                0x0005   Port P1 direction register
P2                 0x0006   Port P2 register
P3                 0x0007   Port P3 register
PD2                0x0008   Port P2 direction register
PD3                0x0009   Port P3 direction register
P4                 0x000A   Port P4 register
P5                 0x000B   Port P5 register
PD4                0x000C   Port P4 direction register
PD5                0x000D   Port P5 direction register
P6                 0x000E   Port P6 register
P7                 0x000F   Port P7 register
PD6                0x0010   Port P6 direction register
PD7                0x0011   Port P7 direction register
P8                 0x0012   Port P8 register
RESERVED0013       0x0013   RESERVED
PD8                0x0014   Port P8 direction register
RESERVED0015       0x0015   RESERVED
RESERVED0016       0x0016   RESERVED
RESERVED0017       0x0017   RESERVED
RESERVED0018       0x0018   RESERVED
RESERVED0019       0x0019   RESERVED
WOMR               0x001A   Waveform output mode register (***)
DTT                0x001B   Dead-time timer (***)
PODR1              0x001C   Pulse output data register 1 (***)
PODR0              0x001D   Pulse output data register 0 (***)
ADCON0             0x001E   A-D control register 0 (***)
ADCON1             0x001F   A-D control register 1 (***)
AD0                0x0020   A-D register 0
AD1                0x0022   A-D register 1
AD2                0x0024   A-D register 2
AD3                0x0026   A-D register 3
AD4                0x0028   A-D register 4
AD5                0x002A   A-D register 5
AD6                0x002C   A-D register 6
AD7                0x002E   A-D register 7
U0MR               0x0030   UART0 transmit/receive mode register
BRG0               0x0031   UART0 baud rate register (BRG0) (***)
U0TB               0x0032   UART0 transmit buffer register
U0C0               0x0034   UART0 transmit/receive control register 0
U0C1               0x0035   UART0 transmit/receive control register 1
U0RB               0x0036   UART0 receive buffer register
U1MR               0x0038   UART1 transmit/receive mode register
BRG1               0x0039   UART1 baud rate register (BRG1) (***)
U1TB               0x003A   UART1 transmit buffer register
U1C0               0x003C   UART1 transmit/receive control register 0
U1C1               0x003D   UART1 transmit/receive control register 1
U1RB               0x003E   UART1 receive buffer register
CSREG              0x0040   Count start register (***)
RESERVED0041       0x0041   RESERVED
ONE_SSREG          0x0042   One-shot start register (***)
RESERVED0043       0x0043   RESERVED
UP_D_REG           0x0044   Up-down register (***)
TAWR               0x0045   Timer A write register (***)
TA0                0x0046   Timer A0 register
TA1                0x0048   Timer A1 register
TA2                0x004A   Timer A2 register
TA3                0x004C   Timer A3 register
TA4                0x004E   Timer A4 register
TB0                0x0050   Timer B0 register
TB1                0x0052   Timer B1 register
TB2                0x0054   Timer B2 register
TA0MR              0x0056   Timer A0 mode register
TA1MR              0x0057   Timer A1 mode register
TA2MR              0x0058   Timer A2 mode register
TA3MR              0x0059   Timer A3 mode register
TA4MR              0x005A   Timer A4 mode register
TB0MR              0x005B   Timer B0 mode register
TB1MR              0x005C   Timer B1 mode register
TB2MR              0x005D   Timer B2 mode register
PM0                0x005E   Processor mode register 0
PM1                0x005F   Processor mode register 1
WDT                0x0060   Watchdog timer register (***)
WDTFS              0x0061   Watchdog timer frequency select register (***)
RESERVED0062       0x0062   RESERVED
RESERVED0063       0x0063   RESERVED
CFSR               0x0064   Comparator function select register (***)
RESERVED0065       0x0065   RESERVED
CRR                0x0066   Comparator result register (***)
RESERVED0067       0x0067   RESERVED
D_AR0              0x0068   D-A register 0 (***)
RESERVED0069       0x0069   RESERVED
D_AR1              0x006A   D-A register 1 (***)
RESERVED006B       0x006B   RESERVED
PFSR0              0x006C   Particular function select register 0 (***)
PFSR1              0x006D   Particular function select register 1 (***)
INT4IC             0x006E   INT4 interrupt control register
INT3IC             0x006F   INT3 interrupt control register
ADIC               0x0070   A-D interrupt control register (***)
S0TIC              0x0071   UART0 transmit interrupt control register
S0RIC              0x0072   UART0 receive interrupt control register
S1TIC              0x0073   UART1 transmit interrupt control register
S1RIC              0x0074   UART1 receive interrupt control register
TA0IC              0x0075   Timer A0 interrupt control register
TA1IC              0x0076   Timer A1 interrupt control register
TA2IC              0x0077   Timer A2 interrupt control register
TA3IC              0x0078   Timer A3 interrupt control register
TA4IC              0x0079   Timer A4 interrupt control register
TB0IC              0x007A   Timer B0 interrupt control register
TB1IC              0x007B   Timer B1 interrupt control register
TB2IC              0x007C   Timer B2 interrupt control register
INT0IC             0x007D   INT0 interrupt control register
INT1IC             0x007E   INT1 interrupt control register
INT2IC             0x007F   INT2 interrupt control register



.M37791
; http://www.alcyone.org.uk/ssm/ecuinfo.html

; MEMORY MAP
area DATA FSR         0x0000:0x0100
area BSS  RESERVED1   0x0100:0x1000
area DATA RAM         0x1000:0x8000   Internal RAM
area DATA ROMDATA     0x8000:0x9000   Internal ROM area
area CODE ROMCODE     0x9000:0xFFD0   Internal ROM area
area DATA USER_VEC    0xFFD0:0x10000  Interrupt vectors


; Interrupt and reset vector assignments
interrupt __RESET           0xFFFE   RESET
