Renesas Hitachi H8S/2194 Series Hardware Manual page 647

16-bit single-chip microcomputer
Table of Contents

Advertisement

Bit 1: H.Amp SW Pin Switching Bit (H.Amp.SW)
Selects whether the H.Amp SW/PS1 pin is used as the H.Amp SW output pin or PS1 (general-
purpose I/O pin).
Bit 1
H.Amp.SW
Description
0
H.Amp SW/PS1 pin functions as H.Amp SW output pin
1
H.Amp SW/PS1 pin functions as PS1 I/O pin
Bit 0: C.Rotary Pin Switching Bit (C.Rot)
Selects whether the C.Rotary/PS0 pin is used as the C.Rotary output pin or PS0 (general-purpose
I/O pin).
Bit 0
C.Rot
Description
0
C.Rotary/PS0 pin functions as C.Rotary output pin
1
C.Rotary/PS0 pin functions as PS0 I/O pin
(2) Servo Control Register (SPCR)
7
Bit :
Initial value :
1
R/W :
Controls input and output of each pin (PS4 to PS0) for each bit when the servo port/general-
purpose port dual-purpose pin is used as the general-purpose port. If SPCR is set to 1, the
corresponding PS4 to PS0 pins function as output pins; if cleared to 0, they function as input
pins. Settings of SPCR and SPDR are valid if the corresponding pins are set to general-purpose
I/O by SPMR.
SPCR is an 8-bit write-only register. If read is attempted, an undetermined value is read out.
Bits 7 to 5 are reserved bits. Writes are disabled.
SPCR is initialized to H'E0 by a reset or stand-by.
Bit n
SPCRn
Description
0
PSn pin functions as input
1
PSn pin functions as output
Rev. 2.0, 11/00, page 620 of 1037
6
5
4
SPCR4
1
1
0
W
3
2
SPCR3
SPCR2
SPCR1
0
0
W
W
(Initial value)
(Initial value)
1
0
SPCR0
0
0
W
W
(Initial value)

Advertisement

Table of Contents
loading

Table of Contents