![](/html/73/73ad/73add02014fd732303b219c96516bb4daabdc5ee1709170adb9cdeef6e8d5162/bg1.png)
BDTIC www.bdtic.com/ATMEL
Features
• High Performance, Low Power AVR ® 8-bit Microcontroller
• Advanced RISC Architecture
– 131 Powerful Instructions - Most Single Clock Cycle Execution
– 32 x 8 General Purpose Working Registers
– Fully Static Operation
– Up to 1 MIPS throughput per MHz
– On-chip 2-cycle Multiplier
• Data and Non-Volatile Program Memory
– 8K Bytes Flash of In-System Programmable Program Memory
• Endurance: 10,000 Write/Erase Cycles
– Optional Boot Code Section with Independent Lock Bits
• In-System Programming by On-chip Boot Program
• True Read-While-Write Operation
– 512 Bytes of In-System Programmable EEPROM
• Endurance: 100,000 Write/Erase Cycles
– 512 Bytes Internal SRAM
– Programming Lock for Flash Program and EEPROM Data Security
• On Chip Debug Interface (debugWIRE)
• Peripheral Features
– Two 12-bit High Speed PSC (Power Stage Controllers) with 4-bit Resolution
Enhancement
• Non Overlapping Inverted PWM Output Pins With Flexible Dead-Time
• Variable PWM duty Cycle and Frequency
• Synchronous Update of all PWM Registers
• Auto Stop Function for Event Driven PFC Implementation
• Less than 25 Hz Step Width at 150 kHz Output Frequency
• PSC2 with four Output Pins and Output Matrix
– One 8-bit General purpose Timer/Counter with Separate Prescaler and Capture
Mode
– One 16-bit General purpose Timer/Counter with Separate Prescaler, Compare
Mode and Capture Mode
– Master/Slave SPI Serial Interface
– 10-bit ADC
• 8 Single Ended Channels and 1 Fully Differential ADC Channel Pair
• Programmable Gain (5x, 10x, 20x, 40x on Differential Channel)
• Internal Reference Voltage
– Two Analog Comparator with Resistor-Array to Adjust Comparison Voltage
– 4 External Interrupts
– Programmable Watchdog Timer with Separate On-Chip Oscillator
• Special Microcontroller Features
– Low Power Idle, Noise Reduction, and Power Down Modes
– Power On Reset and Programmable Brown Out Detection
– Flag Array in Bit-programmable I/O Space (4 bytes)
– In-System Programmable via SPI Port
– Internal Calibrated RC Oscillator ( 8 MHz)
– On-chip PLL for fast PWM ( 32 MHz, 64 MHz) and CPU (16 MHz)
8-bit
Microcontroller
with 8K Bytes
In-System
Programmable
Flash
AT90PWM1
Summary
4378BS–AVR–05/08
![](/html/73/73ad/73add02014fd732303b219c96516bb4daabdc5ee1709170adb9cdeef6e8d5162/bg2.png)
•
Operating Voltage: 2.7V - 5.5V
•
Extended Operating Temperature:
– -40°C to +105°
1. History
Product Revision
AT90PWM1 First revision of parts
2. Disclaimer
Typical values contained in this datasheet are based on simulations and characterization of
other AVR microcontrollers manufactured on the same process technology. Min and Max values will be available after the device is characterized.
3. Pin Configurations
Figure 3-1. SOIC 24-pin Package
2
AT90PWM1
4378BS–AVR–05/08
![](/html/73/73ad/73add02014fd732303b219c96516bb4daabdc5ee1709170adb9cdeef6e8d5162/bg3.png)
Figure 3-2. QFN 32 -pin Package
1
2
3
4
5
6
7
8
24
23
22
21
20
19
18
17
(PSCIN2/OC1A/MISO_A) PD2
(OC0A/SS/MOSI_A) PD3
NC
VCC
GND
NC
NC
(MISO/PSCOUT20) PB0
PB4 (AMP0+)
PB3 (AMP0-)
NC
AREF
AGND
AVCC
NC
NC
32313029282726
25
9
10111213141516
(MOSI/PSCOUT21) PB1
(OC0B/XTAL1) PE1
(ADC0/XTAL2) PE2
(ADC2/ACMP2 ) PD5
(ADC3/ACMPM/INT0) PD6
(ACMP0) PD7
(ADC5/INT1) PB2
PD1
(PSCIN0/CLKO)
PE0
(RESET/OCD)
NC
PD0
(PSCOUT00/SS_A)
PB7 (ADC4/PSCOUT01/SCK)
PB6 (ADC7/ICP1B)
PB5 (ADC6/INT2)
NC
AT90PWM1 QFN 32
AT90PWM1
4378BS–AVR–05/08
3
![](/html/73/73ad/73add02014fd732303b219c96516bb4daabdc5ee1709170adb9cdeef6e8d5162/bg4.png)
3.1 Pin Descriptions
:
Table 3-1. Pin out description
S024 Pin Number Mnemonic Type Name, Function & Alternate Function
7 GND Power Ground: 0V reference
18 AGND Power Analog Ground: 0V reference for analog part
6 VCC power Power Supply:
17 AVCC Power
19 AREF Power
8 PBO I/O
9 PB1 I/O
16 PB2 I/O
20 PB3 I/O AMP0- (Analog Differential Amplifier 0 Input Channel )
21 PB4 I/O AMP0+ (Analog Differential Amplifier 0 Input Channel )
22 PB5 I/O
23 PB6 I/O
24 PB7 I/O
Analog Power Supply: This is the power supply voltage for analog part
For a normal use this pin must be connected.
Analog Reference : reference for analog converter . This is the reference voltage of the
A/D converter. As output, can be used by external analog
MISO (SPI Master In Slave Out)
PSCOUT20 output
MOSI (SPI Master Out Slave In)
PSCOUT21 output
ADC5 (Analog Input Channel5 )
INT1
ADC6 (Analog Input Channel 6)
INT 2
ADC7 (Analog Input Channel 7)
ICP1B (Timer 1 input capture alternate input)
PSCOUT11 output (see note 1)
PSCOUT01 output
ADC4 (Analog Input Channel 4)
SCK (SPI Clock)
PSCOUT00 output
1 PD0 I/O
3 PD1 I/O
4 PD2 I/O
5 PD3 I/O
4
AT90PWM1
XCK (UART Transfer Clock)
SS_A (Alternate SPI Slave Select)
PSCIN0 (PSC 0 Digital Input )
CLKO (System Clock Output)
PSCIN2 (PSC 2 Digital Input)
OC1A (Timer 1 Output Compare A)
MISO_A (Programming & alternate SPI Master In Slave Out)
TXD (Dali/UART Tx data)
OC0A (Timer 0 Output Compare A)
SS (SPI Slave Select)
MOSI_A (Programming & alternate Master Out SPI Slave In)
4378BS–AVR–05/08
![](/html/73/73ad/73add02014fd732303b219c96516bb4daabdc5ee1709170adb9cdeef6e8d5162/bg5.png)
Table 3-1. Pin out description (Continued)
S024 Pin Number Mnemonic Type Name, Function & Alternate Function
ADC1 (Analog Input Channel 1)
12 PD4 I/O
RXD (Dali/UART Rx data)
ICP1A (Timer 1 input capture)
SCK_A (Programming & alternate SPI Clock)
AT90PWM1
13 PD5 I/O
14 PD6 I/O
15 PD7 I/O ACMP0 (Analog Comparator 0 Positive Input )
2 PE0 I/O or I
10 PE1 I/O
11 PE2 I/O
4. Overview
ADC2 (Analog Input Channel 2)
ACMP2 (Analog Comparator 2 Positive Input )
ADC3 (Analog Input Channel 3 )
ACMPM reference for analog comparators
INT0
RESET (Reset Input)
OCD (On Chip Debug I/O)
XTAL1: XTAL Input
OC0B (Timer 0 Output Compare B)
XTAL2: XTAL OuTput
ADC0 (Analog Input Channel 0)
The AT90PWM1 is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC
architecture. By executing powerful instructions in a single clock cycle, the AT90PWM1 achieves
throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed.
4378BS–AVR–05/08
5
![](/html/73/73ad/73add02014fd732303b219c96516bb4daabdc5ee1709170adb9cdeef6e8d5162/bg6.png)
4.1 Block Diagram
Figure 4-1. Block Diagram
The AVR core combines a rich instruction set with 32 general purpose working registers. All the
32 registers are directly connected to the Arithmetic Logic Unit (ALU), allowing two independent
registers to be accessed in one single instruction executed in one clock cycle. The resulting
architecture is more code efficient while achieving throughputs up to ten times faster than conventional CISC microcontrollers.
The AT90PWM1 provides the following features: 8K bytes of In-System Programmable Flash
with Read-While-Write capabilities, 512 bytes EEPROM, 512 bytes SRAM, 53 general purpose
I/O lines, 32 general purpose working registers, 2 Power Stage Controllers, two flexible
Timer/Counters with compare modes and PWM, an 8-channel 10-bit ADC with two differential
6
AT90PWM1
4378BS–AVR–05/08