HT46R068B/HT46R069B
Enhanced A/D Type 8-bit OTP MCU
D
t
a
a
B
u
s
S
M
I
D
S
I
D
P
n
i
T
/
x
x
R
S
i
h
t
f
e
R
s
g
e
t
i
r
S
O
D
P
n
i
C
o
l
k
c
E
n
a
e
b
D
/
s
l
a
i
e
b
l
C
E
K
N
b
b
i
t
E
d
g
P
e
l
o
r
/
a
t
i
y
C
P
K
L
O
B
i
t
C
o
n
r
l
o
t
B
s
u
y
C
o
n
i
g
f
u
a
i
r
t
n
o
W
C
L
O
F
a
l
S
a
t
u
t
s
O
t
p
o
i
n
S
K
C
P
n
i
T
F
R
F
a
l
g
f
S
S
Y
C
o
l
k
c
f
L
T
X
S
o
u
c
r
e
S
e
e
l
t
c
T
m
i
r
e
E
/
e
v
n
C
o
t
u
e
n
r
0
o
t
u
p
t
u
/
2
t
P
(
D
F
)
0
S
S
C
P
n
i
C
o
n
i
g
f
u
a
i
r
t
n
o
C
E
S
_
N
A
b
i
t
O
t
p
o
i
n
E
n
a
e
b
D
/
s
l
a
i
e
b
l
SPI Block Diagram
The SPI function in this device offers the following features:
Full duplex synchronous data transferBoth Master and Slave modes
LSB first or MSB first data transmission modes
Transmission complete flag
●
●
●
●
●
Rising or falling active clock edge
WCOL and CSEN bit enabled or disable select
The status of the SPI interface pins is determined by a number of factors such as whether the
device is in the master or slave mode and upon the condition of certain control bits such as CSEN
and SIMEN.
There are several configuration options associated with the SPI interface. One of these is to
enable the SIM function which selects the SIM pins rather than normal I/O pins. Note that if the
configuration option does not select the SIM function then the SIMEN bit in the SIMC0 register
will have no effect. Another two SPI configuration options determine if the CSEN and WCOL bits
are to be used.
Rev. 1.00
81
�anꢀaꢁꢂ ꢃꢄꢅ ꢃ011