I2C-Interface Philips Semiconductors / NXP Semiconductors, I2C-Interface Datasheet - Page 12

no-image

I2C-Interface

Manufacturer Part Number
I2C-Interface
Description
Programming the 12C Interface
Manufacturer
Philips Semiconductors / NXP Semiconductors
Datasheet
~cooll
plies. with only
tance, to:
Philips Semiconductors
If
TransEit = (bit)( transnnt[
BR_ptr-Findex
The
WV
CLR
ADDC
MOV
CLR
Mavc
ADD
MOV
CLR
Move
JZ
MOV
ADD
12C Specific information
MIV
WC
KIV
h!OV
KIV
ANL
INC
WV
CLR
ADD
INC
(
BR_ptr++
BRdtr-)bm
previous transmitting
BR_ptr+OlH,A
BRatr.A
XDOII
A.aD3H
A.BR_ptr+OlH
A
A.BR_ptr
A.nOFFH
TransB1t.C
DPTR
A
A,@A+DPTR
DPL.BR_ptr+OlH
0PH,Bfl_!~tr
A
A.@A+DPlR
A,ntransmit
RO A
A.&%0
R7.A
DPTR
A
A,@A*DPTR
A.R7
] 8
ReprInted wnh permissIon from EMBEDDED SYSTEMS PROGRAMMING,
a Me
BR_ptr-Unask
)
manual assls-
code corn-
)
jborn the University of Illinois.
For more mformanon. contact:
Philips Semiconductors
81
P.O. Box 3409
Sunnyvale. CA 94088-3409
(408) 991-352
Acton,
bedded svstems for over 15 years. He
has an h4S in eiectronx
Mark Gardner 1s a consultant
hardware and writingfirmwarefor
GlT4ANGlNG WGGKS
no
more traditional
worked. the
development
solution that works fast enough
case
RAM bytes for operation.
this presentation
for you.
The
that the mechamsm
This method is in use in one of my cli-
ents’ prducts
[he
T
I
0 1993
E.
hardware
function.
and takes up only two internal
assembly
Arques Avenue
CA.
an
his bit-banging solution serves
to provide
MILLER FREEMAN
embedded
need for speed encouraged
He has been designing
of a code-pomter-based
specifically
and has proved effective.
Though
language
will prove to be useful
solutions would have
serial transmission
is pretty efficient.
system that has
alternate
dedicated
code reveals
engineering
I
80
hope that
based in
INC.
m this
em-
and
m
to
September 1993
Bit-Banging Serial Ports

Related parts for I2C-Interface