You are on page 1of 5

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
– 4K Bytes Flash of In-System Programmable Program Memory
• Endurance: 10,000 Write/Erase Cycles
• Lock Bits Protection
8-bit

• In-System Programming
256Bytes Internal SRAM
Microcontroller
• On Chip Debug Support (debugWIRE)
• Peripheral Features with 4K Bytes
– Two 12-bit High Speed PSC (Power Stage Controllers) with 4-bit Resolution
enhancement (only on one PSC) In-System
• Non Overlapping Inverted PWM Output Pins With Flexible Dead-Time
• Variable PWM Duty Cycle and Frequency Programmable
• Synchronous Update of all PWM Registers
• Auto Stop Function for Event Driven PFC Implementation
• Input Capture, Output Matrix On One PSC
Flash
• 25Hz Step width at 150kHz Output Frequency
• PSC2 with Three Output Pins and Output Matrix
– One 8-bit General purpose Timer/Counter with Separate Prescaler and Compare
Mode
AT90PWM1
– Master/Slave SPI Serial Interface
– 10-bit ADC
• up to 8 Single-ended Channels and 1 Fully Differential ADC Channel Pair
• Programmable Gain (5x, 10x, 20x, 40x on differential channel) Advanced
• Internal Reference Voltage
– Two Analog Comparator with Resistor-Array to Adjust Comparison Voltage Information
– 3 External Interrupts
– Programmable Watchdog Timer with Separate On-Chip Oscillator
• Special Microcontroller Features
– Low Power Idle, Noise Reduction, and Power Down Modes Summary
– 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 Low Power Calibrated RC Oscillator ( 8-MHz)
– On chip PLL for fast PWM ( 32-, 64-MHz) and CPU (16 MHz)
• Operating Voltage: 2.7V - 5.5V
• Operating Temperature:
– Extended -40°C to +105°C (full analog from -40 to 90°C)

4378AS–AVR–09/04
Adc Diff Analog Ballast
Product Package 16 bit Timer1 12 bit PWM ADC input Input Compar Application
AT90PWM1 SO24 No 2 8 1 2 HID,
Fluorescent,
Motor control

Pin Configurations
Figure 1. SOIC 24-pin Package

AT90PWM1

(PSCOUT00/SS_A) PD0 1 24 PB7(ADC4/PSCOUT01/SCK)


(RESET/OCD) PE0 2 23 PB6 (ADC7/PSCOUT22)
(PSCIN0/CLKO) PD1 3 22 PB5 (ADC6/INT2)
(MISO_A/PSCIN2) PD2 4 21 PB4 (AMP0+)
(MOSI_A/SS/OC0A) PD3 5 20 PB3 (AMP0-)
VCC 6 19 AREF
GND 7 18 AGND
(MISO/PSCOUT20) PB0 8 17 AVCC
(MOSI/PSCOUT21) PB1 9 16 PB2 (ADC5/INT1)
(OC0B/XTAL1) PE1 10 15 PD7 (ACMP0)
(ADC0/XTAL2) PE2 11 14 PD6 (ADC3/ACMPM/INT0)
(SCK_A/ADC1) PD4 12 13 PD5 (ADC2/ACMP2)

Note: PSCOUT22 is not present on AT90PWM2


Note: SPI is connected on MISO, MOSI, SCK & SS pins or MISO_A, MOSI_A, SCK_A &
SS._A pins. For SPI operation and full control of PSC2 with 2 outputs, it is also possible,
on the AT90PWM1 to operate SPI with MISO, MOSI_A, SCK_A & SS_A pins.

2 AT90PWM1
4378AS–AVR–09/04
AT90PWM1

:
Table 1. Pin out description
SOIC 24-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:

Analog Power Supply: This is the power supply voltage for analog part
17 AVCC Power
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
19 AREF Power
output, can be used by external analog

MISO (SPI Master In Slave Out)


8 PBO I/O
PSCOUT20 (PSC2 output 0 )

MOSI (SPI Master Out Slave In)


9 PB1 I/O
PSCOUT21 (PSC2 output 1 )

ADC5 (Analog Input Channel5 )


16 PB2 I/O
INT1

20 PB3 I/O AMP0- (Analog Differential Amplifier 0 Input Channel )

21 PB4 I/O AMP0+ (Analog Differential Amplifier 0 Input Channel )

ADC6 (Analog Input Channel 6)


22 PB5 I/O
INT 2

ADC7 (Analog Input Channel 7)


23 PB6 I/O
PSCOUT22 (PSC2 output 2 )

PSCOUT01 (PSC0 output 1)


24 PB7 I/O ADC4 (Analog Input Channel 4)
SCK (SPI Clock)

PSCOUT00 (PSC0 output 0)


1 PD0 I/O XCK (UART Transfer Clock)
SS_A (Alternate SPI Slave Select)

PSCIN0 (PSC 0 Input )


3 PD1 I/O
CLKO (System Clock Output)

PSCIN2 (PSC Input)


4 PD2 I/O
MISO_A (Programming &Alternate SPI Master In Slave Out)

OC0A (Timer 0 Output Compare A)


5 PD3 I/O SS (SPI Slave Select)
MOSI_A (Programming &Alternate SPI Master Out Slave In)

ADC1 (Analog Input Channel 1)


12 PD4 I/O
SCK_A (Programming &Alternate SPI Clock)

ADC2 (Analog Input Channel 2)


13 PD5 I/O
ACMP2 (Analog Comparator 2 Positive Input )

ADC3 (Analog Input Channel 3 )


14 PD6 I/O ACMPM reference for analog comparators
INT0

3
4378AS–AVR–09/04
Table 1. Pin out description (Continued)
SOIC 24-pin
Number Mnemonic Type Name, Function & Alternate Function

15 PD7 I/O ACMP0 (Analog Comparator 0 Positive Input )

RESET# (Reset Input)


2 PE0 I/O or I
OCD (On Chip Debug I/O)

XTAL1: XTAL Input


10 PE1 I/O
OC0B (Timer 0 Output Compare B)

XTAL2: XTAL OuTput


11 PE2 I/O
ADC0 (Analog Input Channel 0)

4 AT90PWM1
4378AS–AVR–09/04
Atmel Corporation Atmel Operations
2325 Orchard Parkway Memory RF/Automotive
San Jose, CA 95131, USA 2325 Orchard Parkway Theresienstrasse 2
Tel: 1(408) 441-0311 San Jose, CA 95131, USA Postfach 3535
Fax: 1(408) 487-2600 Tel: 1(408) 441-0311 74025 Heilbronn, Germany
Fax: 1(408) 436-4314 Tel: (49) 71-31-67-0
Fax: (49) 71-31-67-2340
Regional Headquarters Microcontrollers
Europe 2325 Orchard Parkway 1150 East Cheyenne Mtn. Blvd.
Atmel Sarl San Jose, CA 95131, USA Colorado Springs, CO 80906, USA
Route des Arsenaux 41 Tel: 1(408) 441-0311 Tel: 1(719) 576-3300
Case Postale 80 Fax: 1(408) 436-4314 Fax: 1(719) 540-1759
CH-1705 Fribourg
Switzerland La Chantrerie Biometrics/Imaging/Hi-Rel MPU/
Tel: (41) 26-426-5555 BP 70602 High Speed Converters/RF Datacom
Fax: (41) 26-426-5500 44306 Nantes Cedex 3, France Avenue de Rochepleine
Tel: (33) 2-40-18-18-18 BP 123
Asia Fax: (33) 2-40-18-19-60 38521 Saint-Egreve Cedex, France
Room 1219 Tel: (33) 4-76-58-30-00
Chinachem Golden Plaza ASIC/ASSP/Smart Cards Fax: (33) 4-76-58-34-80
77 Mody Road Tsimshatsui Zone Industrielle
East Kowloon 13106 Rousset Cedex, France
Hong Kong Tel: (33) 4-42-53-60-00
Tel: (852) 2721-9778 Fax: (33) 4-42-53-60-01
Fax: (852) 2722-1369
1150 East Cheyenne Mtn. Blvd.
Japan Colorado Springs, CO 80906, USA
9F, Tonetsu Shinkawa Bldg. Tel: 1(719) 576-3300
1-24-8 Shinkawa Fax: 1(719) 540-1759
Chuo-ku, Tokyo 104-0033
Japan Scottish Enterprise Technology Park
Tel: (81) 3-3523-3551 Maxwell Building
Fax: (81) 3-3523-7581 East Kilbride G75 0QR, Scotland
Tel: (44) 1355-803-000
Fax: (44) 1355-242-743

Literature Requests
www.atmel.com/literature

Disclaimer: Atmel Corporation makes no warranty for the use of its products, other than those expressly contained in the Company’s standard
warranty which is detailed in Atmel’s Terms and Conditions located on the Company’s web site. The Company assumes no responsibility for any
errors which may appear in this document, reserves the right to change devices or specifications detailed herein at any time without notice, and
does not make any commitment to update the information contained herein. No licenses to patents or other intellectual property of Atmel are
granted by the Company in connection with the sale of Atmel products, expressly or by implication. Atmel’s products are not authorized for use
as critical components in life support devices or systems.

© Atmel Corporation 2004. All rights reserved. Atmel® logo and combinations thereof and AVR ® are registered trademarks, and Everywhere
You Aresm are the trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be the trademarks of others.

Printed on recycled paper.

4378AS–AVR–09/04

You might also like