HT56R66 Holtek Semiconductor Inc., HT56R66 Datasheet - Page 61

no-image

HT56R66

Manufacturer Part Number
HT56R66
Description
Tinypower Tm A/d Type With Lcd 8-bit Otp Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet
Rev. 1.10
SIMIDLE
The SIMIDLE bit is used to select if the I
continues running when the device is in the IDLE
mode. Setting the bit high allows the I
maintain operation when the device is in the Idle
mode. Clearing the bit to zero disables any I
erations when in the Idle mode.
This SPI/I
CLKMOD register bit4.
SIMEN
The SIMEN bit is the overall on/off control for the I
interface. When the SIMEN bit is cleared to zero to
disable the I
be in a floating condition and the I
rent will be reduced to a minimum value. In this con-
dition the pins can be used as SEG functions. When
the bit is high the I
configuration option must have first enabled the SIM
interface for this bit to be effective. Note that when
the SIMENbit changes from low to high the contents
of the I
condition and should therefore be first initialised by
the application program
SIM0~SIM2
These bits setup the overall operating mode of the
SIM function. To select the I
SIM0 should be set to the value 110.
RXAK
The RXAK flag is the receive acknowledge flag.
When the RXAK bit has been reset to zero it means
that a correct acknowledge signal has been re-
ceived at the 9th clock, after 8 bits of data have
been transmitted. When in the transmit mode, the
transmitter checks the RXAK bit to determine if the
receiver wishes to receive the next byte. The trans-
mitter will therefore continue sending out data until
the RXAK bit is set high. When this occurs, the
transmitter will release the SDA line to allow the
master to send a STOP signal to release the bus.
2
C control registers will be in an unknown
2
C idle mode control bit is located at
2
C interface, the SDA and SCL lines will
2
C interface is enabled. The SIM
2
C function, bits SIM2~
2
C operating cur-
2
C interface to
2
C interface
I
2
2
C op-
C Block Diagram
2
C
61
SRW
The SRW bit is the Slave Read/Write bit. This bit de-
termines whether the master device wishes to
transmit or receive data from the I
transmitted address and slave address match, that
is when the HAAS bit is set high, the device will
check the SRW bit to determine whether it should
be in transmit mode or receive mode. If the SRW bit
is high, the master is requesting to read data from
the bus, so the device should be in transmit mode.
When the SRW bit is zero, the master will write data
to the bus, therefore the device should be in receive
mode to read this data.
TXAK
The TXAK flag is the transmit acknowledge flag. Af-
ter the receipt of 8-bits of data, this bit will be trans-
mitted to the bus on the 9th clock. To continue
receiving more data, this bit has to be reset to zero
before further data is received.
HTX
The HTX flag is the transmit/receive mode bit. This
flag should be set high to set the transmit mode and
low for the receive mode.
HBB
The HBB flag is the I
high when the I
a START signal is detected. The flag will be reset to
zero when the bus is free which will occur when a
STOP signal is detected.
HASS
The HASS flag is the address match flag. This flag
is used to determine if the slave device address is
the same as the master transmit address. If the ad-
dresses match then this bit will be high, if there is no
match then the flag will be low.
HCF
The HCF flag is the data transfer flag. This flag will
be zero when data is being transferred. Upon com-
pletion of an 8-bit data transfer the flag will go high
and an interrupt will be generated.
2
C bus is busy which will occur when
HT56R66/HT56R666
2
C busy flag. This flag will be
September 8, 2009
2
C bus. When the

Related parts for HT56R66