Datasheet AT90PWM216, AT90PWM316 - Complete (Atmel) - 9

FabricanteAtmel
DescripciónAtmel 8-bit Microcontroller with16K Bytes In-System Programmable Flash
Páginas / Página344 / 9 — 3.2.6. Port E (PE2..0) RESET/ XTAL1/ XTAL2. 3.2.7. AVCC. 3.2.8. AREF. …
Formato / tamaño de archivoPDF / 4.9 Mb
Idioma del documentoInglés

3.2.6. Port E (PE2..0) RESET/ XTAL1/ XTAL2. 3.2.7. AVCC. 3.2.8. AREF. 3.3. About Code Examples

3.2.6 Port E (PE2..0) RESET/ XTAL1/ XTAL2 3.2.7 AVCC 3.2.8 AREF 3.3 About Code Examples

Línea de modelo para esta hoja de datos

Versión de texto del documento

link to page 71 link to page 25 link to page 25 link to page 41
3.2.6 Port E (PE2..0) RESET/ XTAL1/ XTAL2
Port E is an 3-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port E output buf- fers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port E pins that are externally pulled low will source current if the pull-up resistors are activated. The Port E pins are tri-stated when a reset condition becomes active, even if the clock is not running. If the RSTDISBL Fuse is programmed, PE0 is used as an I/O pin. Note that the electrical characteristics of PE0 dif- fer from those of the other pins of Port C. If the RSTDISBL Fuse is unprogrammed, PE0 is used as a 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 8-1 on page 41. Shorter pulses are not guaranteed to generate a Reset. Depending on the clock selection fuse settings, PE1 can be used as input to the inverting Oscillator amplifier and input to the internal clock operating circuit. Depending on the clock selection fuse settings, PE2 can be used as output from the inverting Oscillator amplifier. The various special features of Port E are elaborated in “Alternate Functions of Port E” on page 71 and “Clock Sys- tems and their Distribution” on page 25.
3.2.7 AVCC
AVCC is the supply voltage pin for the A/D Converter. It should be externally connected to V , even if the ADC is CC not used. If the ADC is used, it should be connected to V through a low-pass filter. CC
3.2.8 AREF
This is the analog reference pin for the A/D Converter.
3.3 About Code Examples
This documentation contains simple code examples that briefly show how to use various parts of the device. These code examples assume that the part specific header file is included before compilation. 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. AT90PWM216/316 [DATASHEET] 9 7710H–AVR–07/2013 Document Outline Features 1. Disclaimer 2. Pin Configurations 2.1 Pin Descriptions 3. Overview 3.1 Block Diagram 3.2 Pin Descriptions 3.3 About Code Examples 4. AVR CPU Core 4.1 Introduction 4.2 Architectural Overview 4.3 ALU – Arithmetic Logic Unit 4.4 Status Register 4.5 General Purpose Register File 4.6 Stack Pointer 4.7 Instruction Execution Timing 4.8 Reset and Interrupt Handling 5. Memories 5.1 In-System Reprogrammable Flash Program Memory 5.2 SRAM Data Memory 5.3 EEPROM Data Memory 5.4 I/O Memory 5.5 General Purpose I/O Registers 6. System Clock 6.1 Clock Systems and their Distribution 6.2 Clock Sources 6.3 Default Clock Source 6.4 Low Power Crystal Oscillator 6.5 Calibrated Internal RC Oscillator 6.6 PLL 6.7 128 kHz Internal Oscillator 6.8 External Clock 6.9 Clock Output Buffer 6.10 System Clock Prescaler 7. Power Management and Sleep Modes 7.1 Idle Mode 7.2 ADC Noise Reduction Mode 7.3 Power-down Mode 7.4 Standby Mode 7.5 Power Reduction Register 7.6 Minimizing Power Consumption 8. System Control and Reset 8.1 Resetting the AVR 8.2 Reset Sources 8.3 Power-on Reset 8.4 External Reset 8.5 Brown-out Detection 8.6 Watchdog Reset 8.7 MCU Status Register – MCUSR 8.8 Internal Voltage Reference 8.9 Watchdog Timer 9. Interrupts 9.1 Interrupt Vectors in AT90PWM216/316 10. I/O-Ports 10.1 Introduction 10.2 Ports as General Digital I/O 10.3 Alternate Port Functions 10.4 Register Description for I/O-Ports 11. External Interrupts 12. Timer/Counter0 and Timer/Counter1 Prescalers 13. 8-bit Timer/Counter0 with PWM 13.1 Overview 13.2 Timer/Counter Clock Sources 13.3 Counter Unit 13.4 Output Compare Unit 13.5 Compare Match Output Unit 13.6 Modes of Operation 13.7 Timer/Counter Timing Diagrams 13.8 8-bit Timer/Counter Register Description 14. 16-bit Timer/Counter1 with PWM 14.1 Overview 14.2 Accessing 16-bit Registers 14.3 Timer/Counter Clock Sources 14.4 Counter Unit 14.5 Input Capture Unit 14.6 Output Compare Units 14.7 Compare Match Output Unit 14.8 Modes of Operation 14.9 Timer/Counter Timing Diagrams 14.10 16-bit Timer/Counter Register Description 15. Power Stage Controller – (PSC0, PSC1 & PSC2) 15.1 Features 15.2 Overview 15.3 PSC Description 15.4 Signal Description 15.5 Functional Description 15.6 Update of Values 15.7 Enhanced Resolution 15.8 PSC Inputs 15.9 PSC Input Mode 1: Stop signal, Jump to Opposite Dead-Time and Wait 15.10 PSC Input Mode 2: Stop signal, Execute Opposite Dead-Time and Wait 15.11 PSC Input Mode 3: Stop signal, Execute Opposite while Fault active 15.12 PSC Input Mode 4: Deactivate outputs without changing timing. 15.13 PSC Input Mode 5: Stop signal and Insert Dead-Time 15.14 PSC Input Mode 6: Stop signal, Jump to Opposite Dead-Time and Wait. 15.15 PSC Input Mode 7: Halt PSC and Wait for Software Action 15.16 PSC Input Mode 8: Edge Retrigger PSC 15.17 PSC Input Mode 9: Fixed Frequency Edge Retrigger PSC 15.18 PSC Input Mode 14: Fixed Frequency Edge Retrigger PSC and Disactivate Output 15.19 PSC2 Outputs 15.20 Analog Synchronization 15.21 Interrupt Handling 15.22 PSC Synchronization 15.23 PSC Clock Sources 15.24 Interrupts 15.25 PSC Register Definition 15.26 PSC2 Specific Register 16. Serial Peripheral Interface – SPI 16.1 Features 16.2 SS Pin Functionality 16.3 Data Modes 17. USART 17.1 Features 17.2 Overview 17.3 Clock Generation 17.4 Serial Frame 17.5 USART Initialization 17.6 Data Transmission – USART Transmitter 17.7 Data Reception – USART Receiver 17.8 Asynchronous Data Reception 17.9 Multi-processor Communication Mode 17.10 USART Register Description 17.11 Examples of Baud Rate Setting 18. EUSART (Extended USART) 18.1 Features 18.2 Overview 18.3 Serial Frames 18.4 Configuring the EUSART 18.5 Data Reception – EUSART Receiver 18.6 EUSART Registers Description 19. Analog Comparator 19.1 Overview 19.2 Analog Comparator Register Description 20. Analog to Digital Converter - ADC 20.1 Features 20.2 Operation 20.3 Starting a Conversion 20.4 Prescaling and Conversion Timing 20.5 Changing Channel or Reference Selection 20.6 ADC Noise Canceler 20.7 ADC Conversion Result 20.8 ADC Register Description 20.9 Amplifier 20.10 Amplifier Control Registers 21. Digital to Analog Converter - DAC 21.1 Features 21.2 Operation 21.3 Starting a Conversion 21.4 DAC Register Description 22. debugWIRE On-chip Debug System 22.1 Features 22.2 Overview 22.3 Physical Interface 22.4 Software Break Points 22.5 Limitations of debugWIRE 22.6 debugWIRE Related Register in I/O Memory 23. Boot Loader Support – Read-While-Write Self-Programming 23.1 Boot Loader Features 23.2 Application and Boot Loader Flash Sections 23.3 Read-While-Write and No Read-While-Write Flash Sections 23.4 Boot Loader Lock Bits 23.5 Entering the Boot Loader Program 23.6 Addressing the Flash During Self-Programming 23.7 Self-Programming the Flash 24. Memory Programming 24.1 Program And Data Memory Lock Bits 24.2 Fuse Bits 24.3 PSC Output Behavior During Reset 24.4 Signature Bytes 24.5 Calibration Byte 24.6 Parallel Programming Parameters, Pin Mapping, and Commands 24.7 Serial Programming Pin Mapping 24.8 Parallel Programming 24.9 Serial Downloading 25. Electrical Characteristics 25.1 Absolute Maximum Ratings* 25.2 DC Characteristics 25.3 External Clock Drive Characteristics 25.4 Maximum Speed vs. VCC 25.5 PLL Characteristics. 25.6 SPI Timing Characteristics 25.7 ADC Characteristics 25.8 DAC Characteristics 25.9 Parallel Programming Characteristics 26. Typical Characteristics – Preliminary Data 26.1 Active Supply Current 26.2 Idle Supply Current 26.3 Power-Down Supply Current 26.4 Standby Supply Current 26.5 Pin Pull-up 26.6 Pin Driver Strength 26.7 Pin Thresholds and Hysteresis 26.8 BOD Thresholds and Analog Comparator Offset 26.9 Analog Reference 26.10 Internal Oscillator Speed 26.11 Current Consumption of Peripheral Units 26.12 Current Consumption in Reset and Reset Pulse width 27. Register Summary 28. Instruction Set Summary 29. Ordering Information 30. Package Information 30.1 SO24 30.2 SO32 30.3 QFN32 31. Errata AT90PWM216/316 31.1 Revision C 31.2 Revision B 31.3 Revision A 32. Datasheet Revision History for AT90PWM216/316 32.1 Rev. 7710H – 07/2013 32.2 Rev. 7710G – 03/2013 32.3 Rev. 7710F – 09/11 32.4 Rev. 7710E – 08/10 32.5 Rev. 7710D 32.6 Rev. 7710C 32.7 Rev. 7710B 32.8 Rev. 7710A Table of Contents