Electronic Components Datasheet Search
  English  ▼

X  

AT90USB646 Datasheet(PDF) 222 Page - ATMEL Corporation

Part # AT90USB646
Description  8-bit Atmel Microcontroller with 64/128Kbytes of ISP Flash and USB Controller
PDF  456 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AT90USB646 Datasheet(HTML) 222 Page - ATMEL Corporation

Back Button AT90USB646 Datasheet HTML 218Page - ATMEL Corporation AT90USB646 Datasheet HTML 219Page - ATMEL Corporation AT90USB646 Datasheet HTML 220Page - ATMEL Corporation AT90USB646 Datasheet HTML 221Page - ATMEL Corporation AT90USB646 Datasheet HTML 222Page - ATMEL Corporation AT90USB646 Datasheet HTML 223Page - ATMEL Corporation AT90USB646 Datasheet HTML 224Page - ATMEL Corporation AT90USB646 Datasheet HTML 225Page - ATMEL Corporation AT90USB646 Datasheet HTML 226Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 222 / 456 page
background image
222
7593L–AVR–09/12
AT90USB64/128
• Bit 0 – TWGCE: TWI General Call Recognition Enable Bit
If set, this bit enables the recognition of a General Call given over the 2-wire Serial Bus.
21.6.6
TWAMR – TWI (Slave) Address Mask Register
• Bits 7..1 – TWAM: TWI Address Mask
The TWAMR can be loaded with a 7-bit Slave Address mask. Each of the bits in TWAMR can
mask (disable) the corresponding address bit in the TWI Address Register (TWAR). If the mask
bit is set to one then the address match logic ignores the compare between the incoming
address bit and the corresponding bit in TWAR. Figure 21-10 shows the address match logic in
detail.
Figure 21-10. TWI address match logic, block diagram.
• Bit 0 – Res: Reserved Bit
This bit is reserved and will always read as zero.
21.7
Using the TWI
The AVR TWI is byte-oriented and interrupt based. Interrupts are issued after all bus events, like
reception of a byte or transmission of a START condition. Because the TWI is interrupt-based,
the application software is free to carry on other operations during a TWI byte transfer. Note that
the TWI Interrupt Enable (TWIE) bit in TWCR together with the Global Interrupt Enable bit in
SREG allow the application to decide whether or not assertion of the TWINT Flag should gener-
ate an interrupt request. If the TWIE bit is cleared, the application must poll the TWINT Flag in
order to detect actions on the TWI bus.
When the TWINT Flag is asserted, the TWI has finished an operation and awaits application
response. In this case, the TWI Status Register (TWSR) contains a value indicating the current
state of the TWI bus. The application software can then decide how the TWI should behave in
the next TWI bus cycle by manipulating the TWCR and TWDR Registers.
Figure 21-11 on page 223 is a simple example of how the application can interface to the TWI
hardware. In this example, a Master wishes to transmit a single data byte to a Slave. This
description is quite abstract, a more detailed explanation follows later in this section. A simple
code example implementing the desired behavior is also presented.
Bit
765
43
210
TWAM[6:0]
–
TWAMR
Read/write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R
Initial value
0
0
0
0
0
0
0
0
Address
match
Address bit comparator 0
Address bit comparator 6..1
TWAR0
TWAMR0
Address
bit 0



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