APPENDIX A LIST OF I/O REGISTERS
AP-A-26
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
USI
UART Mode
Configuration
Register
(USI_UCFG)
0x300440
(8 bits)
D7–4 –
reserved
–
–
–
0 when being read.
D3
UCHLN
Character length select
1 8 bits
0 7 bits
0
R/W
D2
USTPB
Stop bit select
1 2 bits
0 1 bit
0
R/W
D1
UPMD
Parity mode select
1 Even
0 Odd
0
R/W
D0
UPREN
Parity enable
1 With parity
0 No parity
0
R/W
USI UART Mode
Interrupt En-
able Register
(USI_UIE)
0x300441
(8 bits)
D7–3 –
reserved
–
–
–
0 when being read.
D2
UEIE
Receive error interrupt enable
1 Enable
0 Disable
0
R/W
D1
URDIE
Receive buffer full interrupt enable 1 Enable
0 Disable
0
R/W
D0
UTDIE
Transmit buffer empty int. enable
1 Enable
0 Disable
0
R/W
USI UART Mode
Interrupt Flag
Register
(USI_UIF)
0x300442
(8 bits)
D7
–
reserved
–
–
–
0 when being read.
D6
URBSY
Receive busy flag
1 Busy
0 Idle
0
R
D5
UTBSY
Transmit busy flag
1 Busy
0 Idle
0
R
D4
UPEIF
Parity error flag
1 Error
0 Normal
0
R/W Reset by writing 1.
D3
USEIF
Framing error flag
1 Error
0 Normal
0
R/W
D2
UOEIF
Overrun error flag
1 Error
0 Normal
0
R/W
D1
URDIF
Receive buffer full flag
1 Full
0 Not full
0
R/W
D0
UTDIF
Transmit buffer empty flag
1 Empty
0 Not empty
0
R/W
USI SPI Master/
Slave Mode
Configuration
Register
(USI_SCFG)
0x300450
(8 bits)
D7–6 –
reserved
–
–
–
0 when being read.
D5
SCMD
Command bit (for 9-bit data)
1 High
0 Low
0
R/W
D4
SCHLN
Character length select
1 9 bits
0 8 bits
0
R/W
D3
SCPHA
Clock phase select
1 Phase 1
0 Phase 0
0
R/W
D2
SCPOL
Clock polarity select
1 Active L
0 Active H
0
R/W
D1
–
reserved
–
–
–
Do not set to 1.
D0
SFSTMOD Fast mode select
1 Fast
0 Normal
0
R/W
USI SPI Master/
Slave Mode In-
terrupt Enable
Register
(USI_SIE)
0x300451
(8 bits)
D7–3 –
reserved
–
–
–
0 when being read.
D2
SEIE
Receive error interrupt enable
1 Enable
0 Disable
0
R/W
D1
SRDIE
Receive buffer full interrupt enable 1 Enable
0 Disable
0
R/W
D0
STDIE
Transmit buffer empty int. enable
1 Enable
0 Disable
0
R/W
USI SPI Master/
Slave Mode
Interrupt Flag
Register
(USI_SIF)
0x300452
(8 bits)
D7–4 –
reserved
–
–
–
0 when being read.
D3
SSIF
Transfer busy flag (master)
1 Busy
0 Idle
0
R
ss signal low flag (slave)
1 ss = H
0 ss = L
D2
SEIF
Overrun error flag
1 Error
0 Normal
0
R/W Reset by writing 1.
D1
SRDIF
Receive buffer full flag
1 Full
0 Not full
0
R/W
D0
STDIF
Transmit buffer empty flag
1 Empty
0 Not empty
0
R/W
USI I
2
C Master
Mode Trigger
Register
(USI_IMTG)
0x300460
(8 bits)
D7–5 –
reserved
–
–
–
0 when being read.
D4
IMTG
I
2
C master operation trigger
1 Trigger
0 Ignored
0
W
1 Waiting
0 Finished
R
D3
–
reserved
–
–
–
0 when being read.
D2–0 IMTGMOD
[2:0]
I
2
C master trigger mode select
IMTGMOD[2:0] Trigger mode
0x0 R/W
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
reserved
Receive ACK/NAK
Transmit NAK
Transmit ACK
Receive data
Transmit data
Stop condition
Start condition
USI I
2
C Master
Mode Interrupt
Enable Register
(USI_IMIE)
0x300461
(8 bits)
D7–2 –
reserved
–
–
–
0 when being read.
D1
IMEIE
Receive error interrupt enable
1 Enable
0 Disable
0
R/W
D0
IMIE
Operation completion int. enable
1 Enable
0 Disable
0
R/W
USI I
2
C Master
Mode Interrupt
Flag Register
(USI_IMIF)
0x300462
(8 bits)
D7–6 –
reserved
–
–
–
0 when being read.
D5
IMBSY
I
2
C master busy flag
1 Busy
0 Standby
0
R
D4–2 IMSTA[2:0] I
2
C master status
IMSTA[2:0]
Status
0x0
R
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
reserved
NAK received
ACK received
ACK/NAK sent
End of Rx data
End of Tx data
Stop generated
Start generated
D1
IMEIF
Overrun error flag
1 Error
0 Normal
0
R/W Reset by writing 1.
D0
IMIF
Operation completion flag
1 Completed 0 Not completed
0
R/W