Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

P87LPC778FDH Datasheet(PDF) 28 Page - NXP Semiconductors

Part # P87LPC778FDH
Description  CMOS single-chip 8-bit 80C51 microcontroller 128-byte data RAM, 8 kB OTP
PDF  79 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  PHILIPS [NXP Semiconductors]
Direct Link  http://www.nxp.com
Logo PHILIPS - NXP Semiconductors

P87LPC778FDH Datasheet(HTML) 28 Page - NXP Semiconductors

Back Button P87LPC778FDH Datasheet HTML 24Page - NXP Semiconductors P87LPC778FDH Datasheet HTML 25Page - NXP Semiconductors P87LPC778FDH Datasheet HTML 26Page - NXP Semiconductors P87LPC778FDH Datasheet HTML 27Page - NXP Semiconductors P87LPC778FDH Datasheet HTML 28Page - NXP Semiconductors P87LPC778FDH Datasheet HTML 29Page - NXP Semiconductors P87LPC778FDH Datasheet HTML 30Page - NXP Semiconductors P87LPC778FDH Datasheet HTML 31Page - NXP Semiconductors P87LPC778FDH Datasheet HTML 32Page - NXP Semiconductors Next Button
Zoom Inzoom in Zoom Outzoom out
 28 / 79 page
background image
Philips Semiconductors
P87LPC778
CMOS single-chip 8-bit microcontroller
Product data
Rev. 01 — 31 March 2004
28 of 79
9397 750 12378
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
8.7.2
Reading I2CON
RDAT — The data from SDA is captured into ‘Receive DATa’ whenever a rising edge
occurs on SCL. RDAT is also available (with seven low-order zeros) in the I2DAT
register. The difference between reading it here and there is that reading I2DAT
clears DRDY, allowing the I2C-bus to proceed on to another bit. Typically, the first
seven bits of a received byte are read from I2DAT, while the 8th is read here. Then
I2DAT can be written to send the Acknowledge bit and clear DRDY.
ATN — ‘ATteNtion’ is ‘1’ when one or more of DRDY, ARL, STR, or STP is ‘1’. Thus,
ATN comprises a single bit that can be tested to release the I2C-bus service routine
from a ‘wait loop.’
DRDY — ‘Data ReaDY’ (and thus ATN) is set when a rising edge occurs on SCL,
except at idle slave. DRDY is cleared by writing CDR = 1, or by writing or reading the
I2DAT register. The following low period on SCL is stretched until the program
responds by clearing DRDY.
8.7.3
Checking ATN and DRDY
When a program detects ATN = 1, it should next check DRDY. If DRDY = 1, then if it
receives the last bit, it should capture the data from RDAT (in I2DAT or I2CON). Next,
if the next bit is to be sent, it should be written to I2DAT. One way or another, it should
clear DRDY and then return to monitoring ATN. Note that if any of ARL, STR, or STP
is set, clearing DRDY will not release SCL to HIGH, so that the I2C-bus will not go on
to the next bit. If a program detects ATN = 1, and DRDY = 0, it should go on to
examine ARL, STR, and STP.
Table 24:
I2CON - I2C-bus control register (address D8H) bit description
Bit Symbol
Access Description
7
RDAT
R
The most recently received data bit
CXA
W
Clears the transmit active flag
6
ATN
R
ATN = 1 if any of the flags DRDY, ARL, STP, or STP = 1
IDLE
W
In the I2C-bus slave mode, writing a ‘1’ to this bit causes the I2C-bus
hardware to ignore the bus until it is needed again
5
DRDY
R
Data Ready flag, set when there is a rising edge on SCL
CDR
W
Writing a ‘1’ to this bit clears the DRDY flag
4
ARL
R
Arbitration Loss flag, set when arbitration is lost while in the transmit
mode
CARL
W
Writing a ‘1’ to this bit clears the CARL flag
3
STR
R
Start flag, set when a start condition is detected at a master or
non-idle slave
CSTR
W
Writing a ‘1’ to this bit clears the STR flag
2
STP
R
Stop flag, set when a stop condition is detected at a master or
non-idle slave
CSTP
W
Writing a ‘1’ to this bit clears the STP flag
1
MASTER R
Indicates whether this device is currently as bus master
XSTR
W
Writing a ‘1’ to this bit causes a repeated start condition to be
generated
0
-
R
Undefined
XSTP
W
Writing a ‘1’ to this bit causes a stop condition to be generated



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


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