Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

HT68F20 Datasheet(PDF) 135 Page - Holtek Semiconductor Inc

Part # HT68F20
Description  Enhanced I/O Flash Type MCU 8-Bit MCU with EEPROM
PDF  210 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT68F20 Datasheet(HTML) 135 Page - Holtek Semiconductor Inc

Back Button HT68F20 Datasheet HTML 131Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 132Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 133Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 134Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 135Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 136Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 137Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 138Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 139Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 135 / 210 page
background image
HT68F20/HT68F30/HT68F40/HT68F50/HT68F60
Rev. 1.00
135
November 3, 2009
I
2C Interface
The I
2C interface is used to communicate with external
peripheral devices such as sensors, EEPROM memory
etc. Originally developed by Philips, it is a two line low
speed serial interface for synchronous serial data trans-
fer. The advantage of only two lines for communication,
relatively simple communication protocol and the ability
to accommodate multiple devices on the same bus has
made it an extremely popular interface type for many
applications.
· I2C Interface Operation
The I
2C serial interface is a two line interface, a serial
data line, SDA, and serial clock line, SCL. As many
devices may be connected together on the same bus,
their outputs are both open drain types. For this rea-
son it is necessary that external pull-high resistors are
connected to these outputs. Note that no chip select
line exists, as each device on the I
2C bus is identified
by a unique address which will be transmitted and re-
ceived on the I
2C bus.
When two devices communicate with each other on
the bidirectional I
2C bus, one is known as the master
device and one as the slave device. Both master and
slave can transmit and receive data, however, it is the
master device that has overall control of the bus. For
these devices, which only operates in slave mode,
there are two methods of transferring data on the I
2C
bus, the slave transmit mode and the slave receive
mode.
There are several configuration options associated
with the I
2C interface. One of these is to enable the
function which selects the SIM pins rather than normal
I/O pins. Note that if the configuration option does not
select the SIM function then the SIMEN bit in the
SIMC0 register will have no effect. A configuration op-
tion exists to allow a clock other than the system clock
to drive the I
2C interface. Another configuration option
determines the debounce time of the I
2C interface.
This uses the internal clock to in effect add a
debounce time to the external clock to reduce the pos-
sibility of glitches on the clock line causing erroneous
operation. The debounce time, if selected, can be
chosen to be either 1 or 2 system clocks.
· I
2C Registers
There are three control registers associated with the
I
2C bus, SIMC0, SIMC1 and SIMA and one data regis-
ter, SIMD. The SIMD register, which is shown in the
above SPI section, is used to store the data being
transmitted and received on the I
2C bus. Before the
microcontroller writes data to the I
2C bus, the actual
data to be transmitted must be placed in the SIMD
register. After the data is received from the I
2C bus,
the microcontroller can read it from the SIMD register.
Any transmission or reception of data from the I
2C bus
must be made via the SIMD register.
Note that the SIMA register also has the name SIMC2
which is used by the SPI function. Bit SIMEN and bits
SIM2~SIM0 in register SIMC0 are used by the I
2Cin-
terface.
S T A R T s i g n a l
f r o m M a s t e r
S e n d s l a v e a d d r e s s
a n d R / W b i t f r o m M a s t e r
A c k n o w l e d g e
f r o m s l a v e
S e n d d a t a b y t e
f r o m M a s t e r
A c k n o w l e d g e
f r o m s l a v e
S T O P s i g n a l
f r o m M a s t e r
D e v i c e
S l a v e
D e v i c e
M a s t e r
D e v i c e
S l a v e
V D D
S D A
S C L
I
2C Master Slave Bus Connection
Register
Name
Bit
76543210
SIMC0
SIM2
SIM1
SIM0
PCKEN
PCKP1
PCKP0
SIMEN
¾
SIMC1
HCF
HANS
HBB
HTX
TXAK
SRW
IAMWU
RXAK
SIMD
D7
D6
D5
D4
D3
D2
D1
D0
SIMA
IICA6
IICA5
IICA4
IICA3
IICA2
IICA1
IICA0
D0
I
2C Registers List



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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


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