m37516e6hp Renesas Electronics Corporation., m37516e6hp Datasheet - Page 28

no-image

m37516e6hp

Manufacturer Part Number
m37516e6hp
Description
Single-chip 8-bit Cmos Microcomputer
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M37516E6HP
Manufacturer:
MITSUBIS
Quantity:
720
Part Number:
M37516E6HP
Manufacturer:
MITSUBISHI
Quantity:
323
Part Number:
M37516E6HP
Manufacturer:
MOTOROLA/摩托罗拉
Quantity:
20 000
7516 Group
The serial I/O2 can be operated only as the clock synchronous type.
As a synchronous clock for serial transfer, either internal clock or
external clock can be selected by the serial I/O2 synchronous clock
selection bit (b6) of serial I/O2 control register 1.
The internal clock incorporates a dedicated divider and permits se-
lecting 6 types of clock by the internal synchronous clock selection
bits (b2, b1, b0) of serial I/O2 control register 1.
Regarding S
format or N-channel open-drain output format can be selected by the
P0
serial I/O2 control register 1.
When the internal clock has been selected, a transfer starts by a
write signal to the serial I/O2 register (address 0017
tion of data transfer, the level of the S
ance automatically but bit 7 of the serial I/O2 control register 2 is not
set to “1” automatically.
When the external clock has been selected, the contents of the serial
I/O2 register is continuously sifted while transfer clocks are input.
Accordingly, control the clock externally. Note that the S
not go to high impedance after completion of data transfer.
To cause the S
the external clock is selected, set bit 7 of the serial I/O2 control reg-
ister 2 to “1” when S
the next data transfer is started (the transfer clock falls), bit 7 of the
serial I/O2 control register 2 is set to “0” and the S
the active state.
Regardless of the internal clock to external clock, the interrupt re-
quest bit is set after the number of bits (1 to 8 bits) selected by the
optional transfer bit is transferred. In case of a fractional number of
bits less than 8 bits as the last data, the received data to be stored in
the serial I/O2 register becomes a fractional number of bits close to
MSB if the transfer direction selection bit of serial I/O2 control regis-
ter 1 is LSB first, or a fractional number of bits close to LSB if the
transfer direction selection bit is MSB first. For the remaining bits, the
previously received data is shifted.
At transmit operation using the clock synchronous serial I/O, the S
signal can be output by comparing the state of the transmit pin S
with the state of the receive pin S
the transfer clock. If the output level of the S
input level to the S
is output. At this time, an INT
ated. Select a valid edge by bit 2 of the interrupt edge selection reg-
ister (address 003A
[Serial I/O2 Control Registers 1, 2 (SIO2CON1 /
SIO2CON2)] 0015
The serial I/O2 control registers 1 and 2 are containing various se-
lection bits for serial I/O2 control as shown in Figure 23.
Rev.1.01
SERIAL I/O2
1
/S
OUT2
, P0
OUT2
Jul 01, 2003
OUT2
2
/S
and S
IN2
16
CLK2
CLK2
pin to go to high impedance in the case where
pin, “L” is output from the S
).
CLK2
is “H” after completion of data transfer. After
16,
P-channel output disable bit (b7) of
being output pins, either CMOS output
2
0016
page 26 of 89
interrupt request can also be gener-
IN2
in synchronization with a rise of
16
OUT2
pin goes to high imped-
OUT2
CMP2
OUT2
pin is equal to the
16
). After comple-
pin. If not, “H”
OUT2
pin is put into
pin does
CMP2
OUT2
Fig. 23 Structure of Serial I/O2 control registers 1, 2
b7
b7
b 0
b0
S e r i a l I / O 2 c o n t r o l r e g i s t e r 1
( S I O 2 C O N 1 : a d d r e s s 0 0 1 5
S e r i a l I / O 2 c o n t r o l r e g i s t e r 2
( S I O 2 C O N 2 : a d d r e s s 0 0 1 6
I n t e r n a l s y n c h r o n o u s c l o c k s e l e c t i o n b i t s
b 2 b 1 b 0
0 0 0 : f ( X
0 0 1 : f ( X
0 1 0 : f ( X
0 1 1 : f ( X
1 1 0 : f ( X
1 1 1 : f ( X
S e r i a l I / O 2 p o r t s e l e c t i o n b i t
0 : I / O p o r t
1 : S
S
0 : P 0
1 : P 0
T r a n s f e r d i r e c t i o n s e l e c t i o n b i t
0 : L S B f i r s t
1 : M S B f i r s t
S e r i a l I / O 2 s y n c h r o n o u s c l o c k s e l e c t i o n b i t
0 : E x t e r n a l c l o c k
1 : I n t e r n a l c l o c k
P 0
0 : C M O S o u t p u t ( i n o u t p u t m o d e )
1 : N - c h a n n e l o p e n - d r a i n o u t p u t ( i n o u t p u t m o d e )
O p t i o n a l t r a n s f e r b i t s
b 2 b 1 b 0
0 0 0 : 1 b i t
0 0 1 : 2 b i t
0 1 0 : 3 b i t
0 1 1 : 4 b i t
1 0 0 : 5 b i t
1 0 1 : 6 b i t
1 1 0 : 7 b i t
1 1 1 : 8 b i t
N o t u s e d ( r e t u r n s " 0 " w h e n r e a d )
S e r i a l I / O 2 I / O c o m p a r i s o n s i g n a l c o n t r o l b i t
0 : P 4
1 : S
S
0 : O u t p u t a c t i v e
1 : O u t p u t h i g h - i m p e d a n c e
R D Y 2
O U T 2
1
/ S
O U T 2
C M P 2
3
3
O U T 2 ,
3
o u t p u t e n a b l e b i t
p i n i s n o r m al I / O p i n
p i n i s S
p i n c o n t r o l b i t ( P 0
I / O
, S
o u t p u t
C L K 2
P 0
I N
I N
I N
I N
I N
I N
) / 8 ( f ( X
) / 1 6 ( f ( X
) / 3 2 ( f ( X
) / 6 4 ( f ( X
) / 1 2 8 f ( X
) / 2 5 6 ( f ( X
2
R D Y 2
/ S
o u t p u t p i n
C L K 2
o u t p u t p i n
C I N
C I N
C I N
C I N
P - c h a n n e l o u t p u t d i s a b l e b i t
C I N
C I N
) / 8 i n l o w - s p e e d m o d e )
) / 1 6 i n l o w - s p e e d m o d e )
) / 3 2 i n l o w - s p e e d m o d e )
) / 6 4 i n l o w - s p e e d m o d e )
) / 1 2 8 i n l o w - s p e e d m o d e )
1
1 6
) / 2 5 6 i n l o w - s p e e d m o d e )
)
1 6
)
)

Related parts for m37516e6hp