Holtek HT45F23A Manual page 97

Tinypower flash mcu with opa & comparators
Table of Contents

Advertisement

HT45F23A/HT45F24A
TinyPower
Flash MCU with OPA & Comparators
TM
Register
Name
7
SIMC0
SIM2
SIMC1
HCF
SIMD
D7
SIMA
IICA6
SIMC0 Register
Bit
7
Name
SIM2
R/W
R/W
POR
1
Bit 7~5
SIM2, SIM1, SIM0: Operating Mode Control
000: SPI master mode; SPI clock is f
001: SPI master mode; SPI clock is f
010: SPI master mode; SPI clock is f
011: SPI master mode; SPI clock is f
100: SPI master mode; SPI clock is Timer 0 output/2 (PFD0)
101: SPI slave mode
110: I
111: Unused mode
These bits setup the overall operating mode of the SIM function. As well as selecting
if the I
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 0. If the SPI Slave Mode is selected
then the clock will be supplied by an external Master device.
PCKEN: PCK Output Pin Control
Bit 4
0: Disable
1: Enable
Bit 3~2
PCKP1, PCKP0: Select PCK output pin frequency
00: f
01: f
10: f
11: Timer 0 output/2 (PFD0)
Bit 1
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 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 I
SIM2~SIM0 bits and the SIMEN bit changes from low to high, the contents of the I
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 I
such as HCF, HAAS, HBB, SRW and RXAK will be set to their default states.
Bit 0
unimplemented, read as "0"
Rev. 1.40
6
5
4
SIM1
SIM0
PCKEN
HAAS
HBB
HTX
D6
D5
D4
IICA5
IICA4
IICA3
I
C Registers List
2
6
5
4
SIM1
SIM0
PCKEN
R/W
R/W
R/W
1
1
0
C slave mode
2
C or SPI function, they are used to control the SPI Master/Slave selection and
2
SYS
/4
SYS
/8
SYS
97
Bit
3
2
1
PCKP1
PCKP0
SIMEN
TXAK
SRW
IAMWU
D3
D2
D1
IICA2
IICA1
IICA0
3
2
1
PCKP1
PCKP0
SIMEN
R/W
R/W
R/W
0
0
0
/4
SYS
/16
SYS
/64
SYS
SUB
C interface via the
2
0
RXAK
D0
0
C
2
C flags
2
March 29, 2019

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HT45F23A and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Ht45f24a

Table of Contents