
- •Features
- •Disclaimer
- •Overview
- •Block Diagram
- •Pin Descriptions
- •Port B (PB7..PB0)
- •Port C (PC7..PC0)
- •Port D (PD7..PD0)
- •D-/SDATA
- •UGND
- •UVCC
- •UCAP
- •RESET/PC1/dW
- •XTAL1
- •XTAL2/PC0
- •AVR CPU Core
- •Introduction
- •Status Register
- •Stack Pointer
- •TABLE 1.
- •TABLE 2.
- •AVR AT90USB82/162 Memories
- •I/O Memory
- •Clock Systems and their Distribution
- •Clock Switch
- •Exemple of use
- •Swith from external clock to RC clock
- •Switch from RC clock to external clock
- •Clock Sources
- •Default Clock Source
- •External Clock
- •Internal PLL for USB interface
- •Idle Mode
- •Power-down Mode
- •Power-save Mode
- •Standby Mode
- •Analog Comparator
- •Brown-out Detector
- •Watchdog Timer
- •Port Pins
- •Resetting the AVR
- •Reset Sources
- •Power-on Reset
- •External Reset
- •Watchdog Reset
- •USB Reset
- •Watchdog Timer
- •TABLE 2.
- •TABLE 2.
- •Interrupts
- •TABLE 2.
- •Introduction
- •Configuring the Pin
- •Toggling the Pin
- •Reading the Pin Value
- •TABLE 3.
- •Unconnected Pins
- •Alternate Port Functions
- •Register Description for I/O-Ports
- •Timer/Counter0 and Timer/Counter1 Prescalers
- •Internal Clock Source
- •Prescaler Reset
- •External Clock Source
- •8-bit Timer/Counter0 with PWM
- •Overview
- •Registers
- •Definitions
- •Counter Unit
- •Normal Mode
- •Fast PWM Mode
- •8-bit Timer/Counter Register Description
- •Overview
- •Registers
- •Definitions
- •Counter Unit
- •Input Capture Unit
- •Noise Canceler
- •Force Output Compare
- •Normal Mode
- •Fast PWM Mode
- •16-bit Timer/Counter Register Description
- •TABLE 2.
- •TABLE 2.
- •Slave Mode
- •Master Mode
- •Data Modes
- •USART
- •Overview
- •Clock Generation
- •External Clock
- •Frame Formats
- •Parity Bit Calculation
- •TABLE 2.
- •TABLE 3.
- •TABLE 4.
- •Parity Generator
- •TABLE 3.
- •TABLE 2.
- •Receiver Error Flags
- •Parity Checker
- •Disabling the Receiver
- •TABLE 2.
- •Using MPCMn
- •Receiver Flow Control
- •Overview
- •Clock Generation
- •Frame Formats
- •TABLE 2.
- •Data Transfer
- •TABLE 3.
- •USB controller
- •Features
- •Block Diagram
- •Typical Application Implementation
- •Device mode
- •Bus Powered device
- •Introduction
- •Interrupts
- •Power modes
- •Idle mode
- •Power down
- •Freeze clock
- •Memory access capability
- •Memory management
- •PAD suspend
- •D+/D- Read/write
- •Registers description
- •USB general registers
- •USB Software Operating modes
- •USB Device Operating modes
- •Introduction
- •Power-on and reset
- •Endpoint reset
- •USB reset
- •Endpoint selection
- •Endpoint activation
- •Address Setup
- •Detach
- •Remote Wake-up
- •STALL request
- •Special consideration for Control Endpoints
- •STALL handshake and Retry mechanism
- •CONTROL endpoint management
- •Control Write
- •Control Read
- •Overview
- •“Manual” mode
- •Detailed description
- •IN endpoint management
- •“Manual” mode
- •Detailed description
- •Abort
- •Isochronous mode
- •Underflow
- •CRC Error
- •Overflow
- •Interrupts
- •Registers
- •USB device general registers
- •USB device endpoint registers
- •Characteristics
- •Analog Comparator
- •Application Section
- •Boot Reset Fuse
- •Simple Assembly Code Example for a Boot Loader
- •debugWIRE On-chip Debug System
- •Features
- •Overview
- •Physical Interface
- •Software Break Points
- •Limitations of debugWIRE
- •debugWIRE Related Register in I/O Memory
- •Fuse Bits
- •Latching of Fuses
- •Signature Bytes
- •Calibration Byte
- •Signal Names
- •Chip Erase
- •Reading the Flash
- •Reading the EEPROM
- •Electrical Characteristics
- •Absolute Maximum Ratings*
- •DC Characteristics
- •External Clock Drive Waveforms
- •External Clock Drive
- •Maximum speed vs. VCC
- •Supply Current of IO modules
- •Example 1
- •Example 2
- •Example 3
- •Instruction Set Summary
- •Packaging Information
- •TQFP32

|
|
|
|
AT90USB82/162 |
|
|
|
|
|
|
Pin Descriptions |
|
||
|
|
|
||
|
|
|
||
|
VCC |
Digital supply voltage. |
||
|
GND |
Ground. |
||
|
Port B (PB7..PB0) |
Port B is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The |
||
|
|
|
Port B output buffers have symmetrical drive characteristics with both high sink and source |
|
|
|
|
capability. As inputs, Port B pins that are externally pulled low will source current if the pull-up |
|
|
|
|
resistors are activated. The Port B pins are tri-stated when a reset condition becomes active, |
|
|
|
|
even if the clock is not running. |
|
|
|
|
Port B also serves the functions of various special features of the AT90USB82/162 as listed on |
|
|
|
|
page 71. |
|
|
Port C (PC7..PC0) |
Port C is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The |
||
|
|
|
Port C output buffers have symmetrical drive characteristics with both high sink and source |
|
|
|
|
capability. As inputs, Port C pins that are externally pulled low will source current if the pull-up |
|
|
|
|
resistors are activated. The Port C pins are tri-stated when a reset condition becomes active, |
|
|
|
|
even if the clock is not running. |
|
|
|
|
Port C also serves the functions of various special features of the AT90USB82/162 as listed on |
|
|
|
|
page 73. |
|
|
Port D (PD7..PD0) |
Port D serves as analog inputs to the analog comparator. |
||
|
|
|
Port D also serves as an 8-bit bi-directional I/O port, if the analog comparator is not used (con- |
|
|
|
|
cerns PD2/PD1 pins). Port pins can provide internal pull-up resistors (selected for each bit). The |
|
|
|
|
Port D output buffers have symmetrical drive characteristics with both high sink and source |
|
|
|
|
capability. As inputs, Port D pins that are externally pulled low will source current if the pull-up |
|
|
|
|
resistors are activated. The Port D pins are tri-stated when a reset condition becomes active, |
|
|
|
|
even if the clock is not running. |
|
|
D-/SDATA |
USB Full Speed Negative Data Upstream Port / Data port for PS/2 |
||
|
D+/SCK |
USB Full Speed Positive Data Upstream Port / Clock port for PS/2 |
||
|
UGND |
USB Ground. |
||
|
UVCC |
USB Pads Internal Regulator Input supply voltage. |
||
|
UCAP |
USB Pads Internal Regulator Output supply voltage. Should be connected to an external capac- |
||
|
|
|
itor (1µF). |
|
|
|
|
|
|
|
RESET/PC1/dW |
Reset input. A low level on this pin for longer than the minimum pulse length will generate a |
||
|
|
|
reset, even if the clock is not running. The minimum pulse length is given in Table 15 on page |
|
|
|
|
47. Shorter pulses are not guaranteed to generate a reset. This pin alternatively serves as |
|
|
|
|
debugWire channel or as generic I/O. |
|
|
XTAL1 |
Input to the inverting Oscillator amplifier and input to the internal clock operating circuit. |
||
|
XTAL2/PC0 |
Output from the inverting Oscillator amplifier if enabled by Fuse. Also serves as a generic I/O. |
5
7707A–AVR–03/07

About Code
Examples
This documentation contains simple code examples that briefly show how to use various parts of the device. Be aware that not all C compiler vendors include bit definitions in the header files and interrupt handling in C is compiler dependent. Please confirm with the C compiler documentation for more details.
These code examples assume that the part specific header file is included before compilation. For I/O registers located in extended I/O map, "IN", "OUT", "SBIS", "SBIC", "CBI", and "SBI" instructions must be replaced with instructions that allow access to extended I/O. Typically "LDS" and "STS" combined with "SBRS", "SBRC", "SBR", and "CBR".
6 AT90USB82/162
7707A–AVR–03/07