- •Features
- •Pin Configuration
- •Description
- •Block Diagram
- •Pin Descriptions
- •AVCC
- •Port A (PA7..PA0)
- •Port B (PB7..PB0)
- •XTAL1
- •XTAL2
- •Resources
- •AVR CPU Core
- •Architectural Overview
- •I/O Direct
- •Data Direct
- •Data Indirect with Displacement
- •Data Indirect
- •Memories
- •SRAM Data Memory
- •EEPROM Data Memory
- •EEPROM Read/Write Access
- •I/O Memory
- •Clock Systems and their Distribution
- •Clock Sources
- •Default Clock Source
- •Crystal Oscillator
- •External RC Oscillator
- •External Clock
- •Power-on Reset
- •External Reset
- •Brown-out Detection
- •Watchdog Reset
- •Idle Mode
- •Power-down Mode
- •Standby Mode
- •Analog to Digital Converter
- •Analog Comparator
- •Brown-out Detector
- •Internal Voltage Reference
- •Watchdog Timer
- •Port Pins
- •I/O Ports
- •Introduction
- •Configuring the Pin
- •Reading the Pin Value
- •Unconnected Pins
- •Alternate Port Functions
- •Alternate Functions of Port A
- •Alternate Functions Of Port B
- •Register Description for I/O Ports
- •Interrupts
- •Interrupt Vectors
- •Interrupt Handling
- •Interrupt Response Time
- •External Interrupt
- •Pin Change Interrupt
- •Timer/Counters
- •Timer/Counter0 Prescaler
- •Timer/Counter1 Prescaler
- •8-bit Timer/Counter0
- •8-bit Timer/Counter1
- •Timer/Counter1 in PWM Mode
- •Watchdog Timer
- •Overview
- •Register Descriptions
- •Functional Descriptions
- •Three-wire Mode
- •SPI Slave Operation Example
- •Two-wire Mode
- •Start Condition Detector
- •Alternative USI Usage
- •4-bit Counter
- •12-bit Timer/Counter
- •Software Interrupt
- •Analog Comparator
- •Analog to Digital Converter
- •Features
- •Operation
- •Changing Channel or Reference Selection
- •ADC Conversion Result
- •ADLAR = 0
- •ADLAR = 1
- •Fuse Bits
- •Latching of Fuses
- •Signature Bytes
- •Calibration Byte
- •Page Size
- •Signal Names
- •Parallel Programming
- •Enter Programming Mode
- •Chip Erase
- •Programming the Flash
- •Programming the EEPROM
- •Reading the Flash
- •Reading the EEPROM
- •Programming the Lock Bits
- •Reading the Signature Bytes
- •Reading the Calibration Byte
- •Serial Downloading
- •Data Polling Flash
- •Data Polling EEPROM
- •Electrical Characteristics
- •Absolute Maximum Ratings*
- •DC Characteristics
- •External Clock Drive Waveforms
- •External Clock Drive
- •ADC Characteristics
- •Active Supply Current
- •Idle Supply Current
- •Power-down Supply Current
- •Standby Supply Current
- •Pin Pull-up
- •Internal Oscillator Speed
- •Register Summary
- •Instruction Set Summary
- •Ordering Information
- •Packaging Information
- •Errata
- •ATtiny26 Rev. B/C/D
- •Table of Contents
Start Condition Detector |
|
|
|
|
|
|
|
|
|
|
|
The start condition detector is shown in Figure 49. The SDA line is delayed (in the range |
|||||
|
of 50 to 300 ns) to ensure valid sampling of the SCL line. The start condition detector is |
||||
|
only enabled in Two-wire mode. |
||||
|
When Two-wire mode is selected, the USISIF flag is set (to one) when a start condition |
||||
|
is detected. When output disable mode or Three-wire mode is selected and (USICSx = |
||||
|
0b11 & USICLK = 0) or (USICS = 0b10 & USICLK = 0), any edge on the SCK pin sets |
||||
|
the flag. |
||||
|
The start condition detector is working asynchronously and can therefore wake up the |
||||
|
processor from the Power-down sleep mode. However, the protocol used might have |
||||
|
restrictions on the SCL hold time. Therefore, when using this feature in this case the |
||||
|
oscillator start-up time set by the CKSEL Fuses (see “Clock Systems and their Distribu- |
||||
|
tion” on page 24) must also be taken into the consideration. Refer to the description of |
||||
|
“Bit 7 – USISIF: Start Condition Interrupt Flag” on page 83 for further details. |
||||
Alternative USI Usage |
When the USI unit is not used for serial communication, it can be set up to do alternative |
||||
|
tasks due to its flexible design. |
||||
Half-duplex Asynchronous |
By utilizing the Shift Register in Three-wire mode, it is possible to implement a more |
||||
Data Transfer |
compact and higher performance UART than by software only. |
||||
4-bit Counter |
The 4-bit counter can be used as a stand-alone counter with overflow interrupt. Note |
||||
|
that if the counter is clocked externally, both clock edges will generate an increment. |
||||
12-bit Timer/Counter |
Combining the USI 4-bit counter and Timer/Counter0 allows them to be used as a 12-bit |
||||
|
counter. |
||||
Edge Triggered External |
By setting the counter to maximum value (F) it can function as an additional external |
||||
Interrupt |
interrupt. The overflow flag and interrupt enable bit are then used for the external inter- |
||||
|
rupt. This feature is selected by the USICS1 bit. |
||||
Software Interrupt |
The counter overflow interrupt can be used as a software interrupt triggered by a clock |
||||
|
strobe. |
92 ATtiny26(L)
1477J–AVR–06/07