Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

HT46R23 Datasheet(PDF) 20 Page - Holtek Semiconductor Inc

Part # HT46R23
Description  8-Bit OTP Microcontroller
PDF  42 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT46R23 Datasheet(HTML) 20 Page - Holtek Semiconductor Inc

Back Button HT46R23 Datasheet HTML 16Page - Holtek Semiconductor Inc HT46R23 Datasheet HTML 17Page - Holtek Semiconductor Inc HT46R23 Datasheet HTML 18Page - Holtek Semiconductor Inc HT46R23 Datasheet HTML 19Page - Holtek Semiconductor Inc HT46R23 Datasheet HTML 20Page - Holtek Semiconductor Inc HT46R23 Datasheet HTML 21Page - Holtek Semiconductor Inc HT46R23 Datasheet HTML 22Page - Holtek Semiconductor Inc HT46R23 Datasheet HTML 23Page - Holtek Semiconductor Inc HT46R23 Datasheet HTML 24Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 20 / 42 page
background image
HT46R23
Rev. 1.30
20
August 17, 2001
I2C BUS Serial Interface
I2C BUS is implemented in the device. The I2C BUS is a
bidirectional two-wire lines. The data line and clock line
are implement in SDA pin and SCL pin. The SDA and
SCL are NMOS open drain output pin. They must con-
nect a pull-high resistor respectively.
Using the I2C BUS, the device has two ways to transfer
data. One is in slave transmit mode, the other is in slave
receive mode. There are four registers related to I2C
BUS; HADR([20H]), HCR([21H]), HSR([22H]),
HDR([23H]). The HADR register is the slave address
setting of the device, if the master sends the calling ad-
dress which match, it means that this device is selected.
The HCR is I2C BUS control register which defines the
device enable or disable the I2C BUS as a transmitter or
as a receiver. The HSR is I2C BUS status register, it re-
sponds with the I2C BUS status. The HDR is input/out-
put data register, data to transmit or receive must be via
the HDR register.
The I2C BUS control register contains three bits. The
HEN bit define the enable or disable the I2C BUS. If the
data wants transfer via I2C BUS, this bit must be set.
The HTX bit defines whether the I2C BUS is in transmit
or receive mode. If the device is as a transmitter, this bit
must be set to ²1². The TXAK defines the transmit ac-
knowledge signal, when the device received 8-bit data,
the device sends this bit to I2C BUS at the 9th clock. If
the receiver wants to continue to receive the next data,
this bit must be reset to ²0² before receiving data.
The I2C BUS status register contains 5 bits. The HCF bit
is reset to ²0² when one data byte is being transferred. If
one data transfer is completed, this bit is set to ²1². The
HASS bit is set ²1² when the address is match, and the
I2C BUS interrupt request flag is set to ²1². If the inter-
rupt is enabled and the stack is not full, a subroutine call
to location 10H will occur. Writing data to the I2C BUS
control register clears HAAS bit. If the address is not
match, this bit is reset to ²0². The HBB bit is set to re-
spond the I2C BUS is busy. It mean that a START signal
is detected. This bit is reset to ²0² when the I2C BUS is
not busy. It means that a STOP signal is detected and
the I2C BUS is free. The SRW bit defines the read/write
command bit, if the calling address is match. When
HAAS is set to ²1², the device check SRW bit to deter-
mine whether the device is working in transmit or re-
ceive mode. When SRW bit is set ²1², it means that the
master wants to read data from I2C BUS, the slave de-
vice must write data to I2C BUS, so the slave device is
working in transmit mode. When SRW is reset to ²0²,it
means that the master wants to write data to I2C BUS,
the slave device must read data from the bus, so the
slave device is working in receive mode. The RXAK bit
is reset ²0² indicates an acknowledges signal has been
received. In the transmit mode, the transmitter checks
RXAK bit to know the receiver which wants to receive
the next data byte, so the transmitter continue to write
data to the I2C BUS until the RXAK bit is set to ²1² and
the transmitter releases the SDA line, so that the master
can send the STOP signal to release the bus.
The HADR bit7-bit1 define the device slave address. At
the beginning of transfer, the master must select a de-
vice by sending the address of the slave device. The bit
0 is unused and is not defined. If the I2C BUS receives a
start signal, all slave device notice the continuity of the
8-bit data. The front of 7 bits is slave address and the
first bit is MSB. If the address is match, the HAAS status
bit is set and generate an I2C BUS interrupt. In the ISR,
the slave device must check the HAAS bit to know the
I2C BUS interrupt comes from the slave address that
has match or completed one 8-bit data transfer. The last
bit of the 8-bit data is read/write command bit, it re-
sponds in SRW bit. The slave will check the SRW bit to
know if the master wants to transmit or receive data. The
device check SRW bit to know it is as a transmitter or re-
ceiver.
Bit7~Bit1
Bit0
Slave Address
¾
HADR register
Note: ²¾² means undefined
The HDR register is the I2C BUS input/output data regis-
ter. Before transmitting data, the HDR must write the
data which we want to transmit. Before receiving data,
the device must dummy read data from HDR. Transmit
or Receive data from I2C BUS must be via the HDR reg-
ister. At the beginning of the transfer of the I2C BUS, the
device must initial the bus, the following are the notes for
initialing the I2C BUS:
1: Write the I2C BUS address register (HADR) to define
its own slave address.
2: Set HEN bit of I2C BUS control register (HCR) bit 0 to
enable the I2C BUS.
Label
(HCR) Bits
Function
HEN
7 To enable/disable I
2C BUS function
(0= disable; 1= enable)
¾
6 Unused bit, read as ²0²
¾
5 Unused bit, read as ²0²
HTX
4 To define the transmit/receive mode
(0= receive mode; 1= transmit)
TXAK 3
To enable/disable transmit acknowledge
(0= acknowledge; 1= don¢t acknowledge)
¾
0~2 Unused bit, read as ²0²
HCR register



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com