MB90420/5 (A) SERIES F
2
MC-16LX FAMILY 16-BIT MICROCONTROLLERS HARDWARE MANUAL
12-16
12.4.4 Input Data Register (SIDR0/1) and Output Data Register (SODR0/1)
The input data register (SIDR0/1) is the receive register for serial data; the output data register (SODR0/1) is
the transmit register for serial data. The SIDR0/1 and the SODR0/1 registers are placed at the same
address.
n
Input data register (SIDR0/1)
Figure 12.7
shows the bit configuration of input data register.
Fig. 12.7 Input Data Register (SIDR0/1)
The input data register stores the received data. The serial-data signal transmitted to the SIN0 pin is
converted via the shift register and then stored in this register. When the data length is 7 bits, the upper 1 bit
(D7) is invalid data. When receive data is stored in this register, the receive data full flag bit (SSR: RDRF) is
set to 1. When the receive interrupt request is already enabled at this point, a receive interrupt is generated.
Read SIDR0/1 when the RDRF of the status register (SSR0/1) is 1. The RDRF is automatically cleared to 0
when SIDR0/1 is read. At a receive error (SSR: PE, ORE, or FRE), the SIDR0/1 data is invalidated.
n
Output data register (SODR0, SODR1)
Figure 12.8
shows the bit configuration of output data register.
Fig. 12.8 Output Data Register (SODR0/1)
When transmit data is written to this register when transmission is enabled, transmit data is transferred to the
transmission shift register, converted to serial data, and output from the serial-data output pin (SOT0 pin).
When the data length is 7 bits, the upper 1 bit (D7) is invalid data.
When transmit data is written to this register, the transmit data empty flag (SSR: TDRE) is cleared to 0; and
when transfer to the transmit shift register is completed, that flag is set to 1. When the TDRE bit is 1, the
next send data can be written. When output of the transmit interrupt request is already enabled at this point,
a transmit interrupt is generated. Write the next transmit data when a transmit interrupt is generated or the
TDRE bit is 1.
Note:
SODR0/1 is a write-only register and SIDR0/1 is a read-only register. However, since they are
placed at the same address, the write and read values are different. Consequently, do not use
instructions that perform read-modify-write (RMW) operation such as
INC
and
DEC
instructions.
Address
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
CH0: 000036
H
D7
D6
D5
D4
D3
D2
D1
D0
Initial value
CH1: 00003A
H
W
W
W
W
W
W
W
W
XXXXXXXX
B
W: Write-only
X: Undefined
Address
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
CH0: 000036
H
D7
D6
D5
D4
D3
D2
D1
D0
Initial value
CH1: 00003A
H
R
R
R
R
R
R
R
R
XXXXXXXX
B
R: Read-only
X: Undefined
Содержание MB90420/5 (A) Series
Страница 2: ...ii ...
Страница 24: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 1 2 ...
Страница 42: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 2 2 ...
Страница 76: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 2 36 ...
Страница 78: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 3 2 ...
Страница 90: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 4 2 ...
Страница 102: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 4 14 ...
Страница 104: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 5 2 ...
Страница 126: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 5 24 ...
Страница 128: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 6 2 ...
Страница 165: ...7 1 Mode Setting 7 3 7 2 Mode Pins MD2 to MD0 7 4 7 3 Mode Data 7 5 7 MODE SETTING ...
Страница 166: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 7 2 ...
Страница 172: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 8 2 ...
Страница 224: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 9 2 ...
Страница 244: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 10 2 ...
Страница 270: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 11 2 ...
Страница 286: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 12 2 ...
Страница 326: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 13 2 ...
Страница 338: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 14 2 ...
Страница 353: ...LCD CONTROLLER DRIVER 14 17 ...
Страница 365: ...LCD CONTROLLER DRIVER 14 29 ...
Страница 367: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 15 2 ...
Страница 377: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 16 2 ...
Страница 397: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 17 2 ...
Страница 400: ...18 1 Overview of Timepiece Timer 18 3 18 2 Timepiece Timer Registers 18 4 18 TIMEPIECE TIMER ...
Страница 401: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 18 2 ...
Страница 409: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 19 2 ...
Страница 436: ...20 1 Overview of Sound Generator 20 3 20 2 Sound Generator Registers 20 4 20 SOUND GENERATOR ...
Страница 437: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 20 2 ...
Страница 445: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 20 10 ...
Страница 446: ...21 1 Overview of ROM Correction 21 3 21 2 Application Example of ROM Correction 21 6 21 ROM CORRECTION ...
Страница 447: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 21 2 ...
Страница 455: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 21 10 ...
Страница 457: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 22 2 ...
Страница 461: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 23 2 ...
Страница 503: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 23 44 ...
Страница 505: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 24 2 ...
Страница 513: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 24 10 ...
Страница 515: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 25 2 ...
Страница 541: ...MB90420 5 A SERIES F2 MC 16LX FAMILY 16 BIT MICROCONTROLLERS HARDWARE MANUAL 26 2 ...