16
Ver 1.4
MITSUBISHI MICROCOMPUTERS
7640 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
1.13 SPECIAL FUNCTION REGISTERS
The special function registers (SFR) are used for
controlling the functional blocks, such as I/O ports,
Timers, UART, and so forth (see Table 1.4). The re-
served addresses should not be read or written to.
Table 1.4. SFR Addresses
Addr
Description
Acronym and
Value at Reset
Addr
Description
Acronym and
Value at Reset
0000
16
0001
16
0002
16
0003
16
0004
16
0005
16
0006
16
0007
16
0008
16
0009
16
000A
16
000B
16
000C
16
000D
16
000E
16
000F
16
0010
16
0011
16
0012
16
0013
16
0014
16
0015
16
0016
16
0017
16
0018
16
0019
16
001A
16
001B
16
001C
16
001D
16
001E
16
001F
16
0020
16
0021
16
0022
16
0023
16
0024
16
0025
16
0026
16
0027
16
0028
16
0029
16
002A
16
002B
16
002C
16
002D
16
002E
16
002F
16
0030
16
0031
16
0032
16
0033
16
0034
16
0035
16
0036
16
0037
16
CPU Mode Register A
CPU Mode Register B
Interrupt Request Register A
Interrupt Request Register B
Interrupt Request Register C
Interrupt Control Register A
Interrupt Control Register B
Interrupt Control Register C
Port P0
Port P0 Direction Register
Port P1
Port P1 Direction Register
Port P2
Port P2 Direction Register
Port P3
Port P3 Direction Register
Port Control Register
Interrupt Polarity Selection Register
Port P2 pull-up Control Register
USB Control Register
Port P6
Port P6 Direction Register
Port P5
Port P5 Direction Register
Port P4
Port P4 Direction Register
Port P7
Port P7 Direction Register
Port P8
Port P8 Direction Register
Reserved
Clock Control Register
Timer XL
Timer XH
Timer YL
Timer YH
Timer 1
Timer 2
Timer 3
Timer X Mode Register
Timer Y Mode Register
Timer 123 Mode Register
SIO Shift Register
SIO Control Register 1
SIO Control Register 2
Special Count Source Generator1
Special Count Source Generator2
Special Count Source Mode Register
UART1 Mode Register
UART1 Baud Rate Generator
UART1 Status Register
UART1 Control Register
UART1 Transmit/Receiver Buffer 1
UART1 Transmit/Receiver Buffer 2
UART1 RTS Control Register
Reserved
CPMA=0C
CPMB=83
IREQA=00
IREQB=00
IREQC=00
ICONA=00
ICONB=00
ICONC=00
P0=00
P0D=00
P1=00
P1D=00
P2=00
P2D=00
P3=00
P3D=00
PTC=00
IPOL=00
PUP2=00
USBC=00
P6=00
P6D=00
P5=00
P5D=00
P4=00
P4D=00
P7=00
P7D=00
P8=00
P8D=00
0038
16
0039
16
003A
16
003B
16
003C
16
003D
16
003E
16
003F
16
0040
16
0041
16
0042
16
0043
16
0044
16
0045
16
0046
16
0047
16
0048
16
0049
16
004A
16
004B
16
004C
16
004D
16
004E
16
004F
16
0050
16
0051
16
0052
16
0053
16
0054
16
0055
16
0056
16
0057
16
0058
16
0059
16
005A
16
005B
16
005C
16
005D
16
005E
16
005F
16
0060
16
0061
16
0062
16
0063
16
0064
16
0065
16
0066
16
0067
16
0068
16
0069
16
006A
16
006B
16
006C
16
006D
16
006E
16
006F
16
UART2 Mode Register
UART2 Baud Rate Generator
UART2 Status Register
UART2 Control Register
UART2 Transmit/Receiver Buffer 1
UART2 Transmit/Receiver Buffer 2
UART2 RTS Control Register
DMAC Index and Status Register
DMAC Channel x Mode Register 1
DMAC Channel x Mode Register 2
DMAC Channel x Source Register Low
DMAC Channel x Source Register High
DMAC Channel x Destination Register Low
DMAC Channel x Destination Register High
DMAC Channel x Count Register Low
DMAC Channel x Count Register High
Data Bus Buffer register 0
Data Bus Buffer status register 0
Data Bus Buffer Control Register 0
Reserved
Data Bus Buffer register 1
Data Bus Buffer Status Register 1
Data Bus Buffer Control Register 1
Reserved
USB Address Register
USB Power Management Register
USB Interrupt Status Register 1
USB Interrupt Status Register 2
USB Interrupt Enable Register 1
USB Interrupt Enable Register 2
USB Frame Number Register Low
USB Frame Number Register High
USB Endpoint Index
USB Endpoint x IN CSR
USB Endpoint x OUT CSR
USB Endpoint x IN MAXP
USB Endpoint x OUT MAXP
USB Endpoint x OUT WRT_CNT Low
USB Endpoint x OUT WRT_CNT High
Reserved
USB Endpoint 0 FIFO
USB Endpoint 1 FIFO
USB Endpoint 2 FIFO
USB Endpoint 3 FIFO
USB Endpoint 4 FIFO
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Freq Synthesizer Control
Freq Synthesizer Multiply Register 1
Freq Synthesizer Multiply Register 2
Freq Synthesizer Divide Register
U2MOD=00
U2BRG=XX
U2STS=03
U2CON=00
U2TRB1=XX
U2TRB2=XX
U2RTSC=80
DMAIS=00
DMAxM1=00
DMAxM2=00
DMAxSL=00
DMAxSH=00
DMAxDL=00
DMAxDH=00
DMAxCL=00
DMAxCH=00
DBB0=00
DBBS0=00
DBBC0=00
DBB1=00
DBBS1=00
DBBC1=00
USBA=00
USBPM=00
USBIS1=00
USBIS2=00
USBIE1=FF
USBIE2=33
USBSOFL=00
USBSOFH=00
USBINDEX=00
IN_CSR=00
OUT_CSR=00
IN_MAXP (endpoint dependent)
OUT_MAXP (endpoint dependent)
WRT_CNTL=00
WRT_CNTH=00
CCR=00
TXL=FF
TXH=FF
TYL=FF
TYH=FF
T1=FF
T2=01
T3=FF
TXM=00
TYM=00
T123M=00
SIOSHT=XX
SIOCON1=40
SIOCON2=18
SCSG1=FF
SCSG2=FF
SCSM=00
U1MOD=00
U1BRG=XX
U1STS=03
U1CON=00
U1TRB1=XX
U1TRB2=XX
U1RTSC=80
USBFIFO0=N/A
USBFIFO1=N/A
USBFIFO2=N/A
USBFIFO3=N/A
USBFIFO4=N/A
FSC=60
FSM1=FF
FSM2=FF
FSD=FF