參數(shù)資料
型號: HT46R221
廠商: Holtek Semiconductor Inc.
英文描述: 8-Bit A/D Type MCU
中文描述: 8位A / D型微控制器
文件頁數(shù): 21/46頁
文件大小: 390K
代理商: HT46R221
HT46R22/HT46C22
Rev. 1.10
21
October 2, 2002
3: Set EHI bit of the interrupt control register 1 (INTC1)
bit 0 to enable the I
2
C BUS interrupt.
Label
(HSR)
Bits
Function
HCF
7
HCFisclearto 0 whenonedatabyteis
being transferred, HCF is set to 1 indi-
cating 8-bit data communication has
been finished.
HAAS
6
HAAS is set to 1 when the calling ad-
dressed is matched, and I
2
C BUS inter-
rupt will occur and HIF is set.
HBB
5
HBB is set to 1 when I
2
C BUS is busy
and HBB is cleared to 0 means that
the I
2
C BUS is not busy.
4
Unused bit, read as 0
3
Unused bit, read as 0
SRW
2
SRW is set to
wants to read data from the I
2
C BUS, so
the slave must transmit data to the mas-
ter. SRW is cleared to
master wants to write data to the I
2
C
BUS, so the slave must receive data
from the master.
1
when the master
0
when the
1
Unused bit, read as 0
RXAK
0
RXAK is cleared to 0 when the master
receives an 8-bit data and acknowledg-
ment at the 9th clock, RXAK is set to 1
means not acknowledged.
HSR register
Start signal
The START signal is generated only by the master de-
vice. The other device in the bus must detect the START
signal to set the I
2
C BUS busy bit (HBB). The START
signal is SDA line from high to low, when SCL is high.
Slave address
The master must select a device for transferring the
data by sending the slave device address after the
START signal. All device in the I
2
C BUS will receive the
I
2
C BUS slave address (7 bits) to compare with its own
slave address (7 bits). If the slave address is matched,
the slave device will generate an interrupt and save the
following bit (8th bit) to SRW bit and sends an acknowl-
edge bit (low level) to the 9th bit. The slave device also
sets the status flag (HAAS), when the slave address is
matched.
In interrupt subroutine, check HAAS bit to know whether
theI
2
CBUSinterruptcomesfromaslaveaddressthatis
matched or a data byte transfer is completed. When the
slave address is matched, the device must be in trans-
mit mode or receive mode and write data to HDR or
dummy read from HDR to release the SCL line.
!
"
#
$
%
& ' #
$
(
(
Slave address
相關PDF資料
PDF描述
HT46C23 A/D Type 8-Bit MCU
HT46C24 A/D Type 8-Bit MCU
HT46R24 A/D Type 8-Bit MCU
HT46C46 Cost-Effective A/D Type 8-Bit MCU
HT46C47 Cost-Effective A/D Type 8-Bit MCU
相關代理商/技術參數(shù)
參數(shù)描述
HT46R23 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:8-Bit OTP Microcontroller
HT46R232 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:A/D Type 8-Bit MCU
HT46R24 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:A/D Type 8-Bit MCU
HT46R24_06 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:A/D Type 8-Bit MCU
HT46R32 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:A/D Type 8-Bit OTP MCU with OPA