HT46R068B/HT46R069B
Enhanced A/D Type 8-bit OTP MCU
● SIMC0 Register
Bit
7
6
5
4
3
2
1
0
Name
R/W
POR
SIMꢃ
R/W
1
SIM1
R/W
1
SIM0
R/W
1
PCKEN
R/W
0
PCKP1
R/W
0
PCKP0
R/W
0
SIMEN
R/W
0
—
—
—
Bit 7~5
SIM2, SIM1, SIM0: SIM Operating Mode Control
000: SPI master mode; SPI clock is fSYS/4
001: SPI master mode; SPI clock is fSYS/16
010: SPI master mode; SPI clock is fSYS/64
011: SPI master mode; SPI clock is fLXT
100: SPI master mode; SPI clock is Timer/Event Counter 0 output/2 (PFD0)
101: SPI slave mode
110: I2C slave mode
111: Unused mode
These bits setup the overall operating mode of the SIM function. As well as
selecting if the I2C or SPI function, they are used to control the SPI Master/Slave
selection and the SPI Master clock frequency. The SPI clock is a function of the
system clock but can also be chosen to be sourced from the Timer/Event Counter
0. If the SPI Slave Mode is selected then the clock will be supplied by an external
Master device.
Bit 4
PCKEN: Peripheral Clock Pin Control
Described elsewhere.
Bit 3~2
Bit 1
PCKP1, PCKP0: Select PCK output pin frequency
Described elsewhere.
SIMEN: SIM Control
0: Disable
1: Enable
The bit is the overall on/off control for the SIM interface. When the SIMEN bit
is cleared to zero to disable the SIM interface, the SDI, SDO, SCK and SCS, or
SDA and SCL lines will be in a floating condition and the SIM operating current
will be reduced to a minimum value. When the bit is high the SIM interface is
enabled. The SIM configuration option must have first enabled the SIM interface
for this bit to be effective. If the SIM is configured to operate as an SPI interface
via the SIM2~SIM0 bits, the contents of the SPI control registers will remain at
the previous settings when the SIMEN bit changes from low to high and should
therefore be first initialised by the application program. If the SIM is configured
to operate as an I2C interface via the SIM2~SIM0 bits and the SIMEN bit changes
from low to high, the contents of the I2C control bits such as HTX and TXAK
will remain at the previous settings and should therefore be first initialised by the
application program while the relevant I2C flags such as HCF, HAAS, HBB, SRW
and RXAK will be set to their default states.
Bit 0
unimplemented, read as "0"
Rev. 1.00
83
�anꢀaꢁꢂ ꢃꢄꢅ ꢃ011