Electronic Components Datasheet Search
  English  ▼

X  

AT89LP6440 Datasheet(PDF) 118 Page - ATMEL Corporation

Part # AT89LP6440
Description  8-bit Microcontroller with 64K Bytes In-System Programmable Flash
PDF  194 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AT89LP6440 Datasheet(HTML) 118 Page - ATMEL Corporation

Back Button AT89LP6440 Datasheet HTML 114Page - ATMEL Corporation AT89LP6440 Datasheet HTML 115Page - ATMEL Corporation AT89LP6440 Datasheet HTML 116Page - ATMEL Corporation AT89LP6440 Datasheet HTML 117Page - ATMEL Corporation AT89LP6440 Datasheet HTML 118Page - ATMEL Corporation AT89LP6440 Datasheet HTML 119Page - ATMEL Corporation AT89LP6440 Datasheet HTML 120Page - ATMEL Corporation AT89LP6440 Datasheet HTML 121Page - ATMEL Corporation AT89LP6440 Datasheet HTML 122Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 118 / 194 page
background image
118
3706A–MICRO–9/09
AT89LP6440 - Preliminary
TWEN must be written to one to enable the Two-wire Serial Interface, STA must be written to
one to transmit a START condition and TWIF must be cleared. The TWI will then test the Two-
wire Serial Bus and generate a START condition as soon as the bus becomes free. After a
START condition has been transmitted, the TWIF flag is set by hardware, and the status code in
TWSR will be 08h (see Table 18-7). In order to enter MR mode, SLA+R must be transmitted.
This is done by writing SLA+R to TWDR. Thereafter the TWIF bit should be cleared to continue
the transfer.
When SLA+R has been transmitted and an acknowledgment bit has been received, TWIF is set
again and a number of status codes in TWSR are possible. Possible status codes in Master
mode are 38h, 40h or 48h. The appropriate action to be taken for each of these status codes is
detailed in Table 18-7. Received data can be read from the TWDR Register when the TWIF flag
is set high by hardware. This scheme is repeated until the last byte has been received. After the
last byte has been received, the MR should inform the ST by sending a NACK after the last
received data byte. The transfer is ended by generating a STOP condition or a repeated START
condition.
Table 18-7.
Status Codes for Master Receiver Mode
Status
Code
(TWSR)
Status of the Two-wire
Serial Bus and Two-wire
Serial Interface Hardware
Application Software Response
Next Action Taken by TWI Hardware
To/from TWDR
To TWCR
STA
STO
TWIF
AA
08h
A START condition has
been transmitted
Load SLA+R
0
0
1
X
SLA+R will be transmitted; ACK or NOT ACK
will be received
10h
A repeated START
condition has been
transmitted
Load SLA+R
0
0
1
X
SLA+R will be transmitted; ACK or NOT ACK
will be received
Load SLA+W
0
0
1
X
SLA+W will be transmitted; Logic will switch to
Master Transmitter mode
38h
Arbitration lost in SLA+R or
NOT ACK bit
No action
0
0
1
X
Two-wire Serial Bus will be released and not
addressed Slave mode will be entered
No action
1
0
1
X
A START condition will be transmitted when the
bus becomes free
40h
SLA+R has been
transmitted; ACK has been
received
No action
0
0
1
0
Data byte will be received and NOT ACK will be
returned
No action
0
0
1
1
Data byte will be received and ACK will be
returned
48h
SLA+R has been
transmitted; NOT ACK has
been received
No action
1
0
1
X
Repeated START will be transmitted
No action
0
1
1
X
STOP condition will be transmitted and STO
flag will be reset
No action
1
1
1
X
STOP condition followed by a START condition
will be transmitted and STO flag will be reset
50h
Data byte has been
received; ACK has been
returned
Read data byte
0
0
1
0
Data byte will be received and NOT ACK will be
returned
Read data byte
0
0
1
1
Data byte will be received and ACK will be
returned
58h
Data byte has been
received; NOT ACK has
been returned
Read data byte
1
0
1
X
Repeated START will be transmitted
Read data byte
0
1
1
X
STOP condition will be transmitted and STO
flag will be reset
Read data byte
1
1
1
X
STOP condition followed by a START condition
will be transmitted and STO flag will be reset



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