Electronic Components Datasheet Search
  English  ▼

X  

ATtiny48 Datasheet(PDF) 131 Page - ATMEL Corporation

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

ATtiny48 Datasheet(HTML) 131 Page - ATMEL Corporation

Back Button ATtiny48 Datasheet HTML 127Page - ATMEL Corporation ATtiny48 Datasheet HTML 128Page - ATMEL Corporation ATtiny48 Datasheet HTML 129Page - ATMEL Corporation ATtiny48 Datasheet HTML 130Page - ATMEL Corporation ATtiny48 Datasheet HTML 131Page - ATMEL Corporation ATtiny48 Datasheet HTML 132Page - ATMEL Corporation ATtiny48 Datasheet HTML 133Page - ATMEL Corporation ATtiny48 Datasheet HTML 134Page - ATMEL Corporation ATtiny48 Datasheet HTML 135Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 131 / 266 page
background image
131
8008C–AVR–03/09
ATtiny48/88
The TWI can be set to operate in high-speed mode, as described in “TWHSR – TWI High Speed
Register” on page 154. In high-speed mode the TWI uses the system clock, whereas in normal
mode it relies on a prescaled version of the same. Depending on the clock signal used, the SCL
frequency is generated according to one of the following equations.
In normal mode:
In high-speed mode:
...where:
•clk
I/O = prescaled system clock, see Figure 6-1 on page 25
•clk
TWIHS = system clock, see Figure 6-1 on page 25
• TWBR = value of TWI Bit Rate Register, see “TWBR – TWI Bit Rate Register” on page 151
• TWPS = value of TWI prescaler, see Table 15-7 on page 153
Note:
In TWI Master mode TWBR must be 10, or higher .
15.5.3
Bus Interface Unit
This unit contains the Data and Address Shift Register (TWDR), a START/STOP Controller and
Arbitration detection hardware. The TWDR contains the address or data bytes to be transmitted,
or the address or data bytes received. In addition to the 8-bit TWDR, the Bus Interface Unit also
contains a register containing the (N)ACK bit to be transmitted or received. This (N)ACK Regis-
ter is not directly accessible by the application software. However, when receiving, it can be set
or cleared by manipulating the TWI Control Register (TWCR). When in Transmitter mode, the
value of the received (N)ACK bit can be determined by the value in the TWSR.
The START/STOP Controller is responsible for generation and detection of START, REPEATED
START, and STOP conditions. The START/STOP controller is able to detect START and STOP
conditions even when the AVR MCU is in one of the sleep modes, enabling the MCU to wake up
if addressed by a Master.
If the TWI has initiated a transmission as Master, the Arbitration Detection hardware continu-
ously monitors the transmission trying to determine if arbitration is in process. If the TWI has lost
an arbitration, the Control Unit is informed. Correct action can then be taken and appropriate
status codes generated.
15.5.4
Address Match Unit
The Address Match unit checks if received address bytes match the seven-bit address in the
TWI Address Register (TWAR). If the TWI General Call Recognition Enable (TWGCE) bit in the
TWAR is written to one, all incoming address bits will also be compared against the General Call
address. Upon an address match, the Control Unit is informed, allowing correct action to be
taken. The TWI may or may not acknowledge its address, depending on settings in the TWCR.
The Address Match unit is able to compare addresses even when the AVR MCU is in sleep
f
SCL
clk
I/O
16
2
TWBR
×
TWPS
×
()
+
--------------------------------------------------------------------
=
f
SCL
clk
TWIHS
16
2
TWBR
×
TWPS
×
()
+
--------------------------------------------------------------------
=



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