Datasheet ATmega8515, ATmega8515L (Atmel) - 2

FabricanteAtmel
Descripción8-bit AVR Microcontroller with 8K Bytes In-System Programmable Flash
Páginas / Página257 / 2 — Pin Configurations. Figure 1. PDIP. TQFP/MLF. PLCC. ATmega8515(L)
Formato / tamaño de archivoPDF / 1.9 Mb
Idioma del documentoInglés

Pin Configurations. Figure 1. PDIP. TQFP/MLF. PLCC. ATmega8515(L)

Pin Configurations Figure 1 PDIP TQFP/MLF PLCC ATmega8515(L)

Línea de modelo para esta hoja de datos

Versión de texto del documento

Pin Configurations Figure 1.
Pinout ATmega8515
PDIP
(OC0/T0) PB0 1 40 VCC (T1) PB1 2 39 PA0 (AD0) (AIN0) PB2 3 38 PA1 (AD1) (AIN1) PB3 4 37 PA2 (AD2) (SS) PB4 5 36 PA3 (AD3) (MOSI) PB5 6 35 PA4 (AD4) (MISO) PB6 7 34 PA5 (AD5) (SCK) PB7 8 33 PA6 (AD6) RESET 9 32 PA7 (AD7) (RXD) PD0 10 31 PE0 (ICP/INT2) (TDX) PD1 11 30 PE1 (ALE) (INT0) PD2 12 29 PE2 (OC1B) (INT1) PD3 13 28 PC7 (A15) (XCK) PD4 14 27 PC6 (A14) (OC1A) PD5 15 26 PC5 (A13) (WR) PD6 16 25 PC4 (A12) (RD) PD7 17 24 PC3 (A11) XTAL2 18 23 PC2 (A10) XTAL1 19 22 PC1 (A9) GND 20 21 PC0 (A8)
TQFP/MLF PLCC
PB4 (SS) PB3 (AIN1) PB2 (AIN0) PB1 (T1) PB0 (OC0/T0) NC* VCC PA0 (AD0) PA1 (AD1) PA2 (AD2) PA3 (AD3) PB4 (SS) PB3 (AIN1) PB2 (AIN0) PB1 (T1) PB0 (OC0/T0) NC* VCC PA0 (AD0) PA1 (AD1) PA2 (AD2) PA3 (AD3) 44 43 42 41 40 39 38 37 36 35 34 6 5 4 3 2 1 44 43 42 41 40 (MOSI) PB5 1 33 PA4 (AD4) (MOSI) PB5 7 39 PA4 (AD4) (MISO) PB6 2 32 PA5 (AD5) (MISO) PB6 8 38 PA5 (AD5) (SCK) PB7 3 31 PA6 (AD6) (SCK) PB7 9 37 PA6 (AD6) RESET 4 30 PA7 (AD7) RESET 10 36 PA7 (AD7) (RXD) PD0 5 29 PE0 (ICP/INT2) (RXD) PD0 11 35 PE0 (ICP/INT2) NC* 6 28 NC* NC* 12 34 NC* (TXD) PD1 7 27 PE1 (ALE) (TXD) PD1 13 33 PE1 (ALE) (INT0) PD2 8 26 PE2 (OC1B) (INT0) PD2 14 32 PE2 (OC1B) (INT1) PD3 9 25 PC7 (A15) (INT1) PD3 15 31 PC7 (A15) (XCK) PD4 10 24 PC6 (A14) (XCK) PD4 16 30 PC6 (A14) (OC1A) PD5 11 23 PC5 (A13) (OC1A) PD5 17 29 PC5 (A13) 18 19 20 21 22 23 24 25 26 27 28 12 13 14 15 16 17 18 19 20 21 22 GND NC* XTAL2 XTAL1 GND NC* (A8) PC0 (A9) PC1 XTAL2 XTAL1 (WR) PD6 (RD) PD7 (A10) PC2 (A11) PC3 (A12) PC4 (WR) PD6 (RD) PD7 (A8) PC0 (A9) PC1 (A10) PC2 (A11) PC3 (A12) PC4 NOTES: 1. MLF bottom pad should be soldered to ground. 2. * NC = Do not connect (May be used in future devices)
2 ATmega8515(L)
2512K–AVR–01/10 Document Outline Features Pin Configurations Overview Block Diagram Disclaimer AT90S4414/8515 and ATmega8515 Compatibility AT90S4414/8515 Compatibility Mode Pin Descriptions VCC GND Port A (PA7..PA0) Port B (PB7..PB0) Port C (PC7..PC0) Port D (PD7..PD0) Port E(PE2..PE0) RESET XTAL1 XTAL2 Resources About Code Examples AVR CPU Core Introduction Architectural Overview ALU – Arithmetic Logic Unit Status Register General Purpose Register File The X-register, Y-register, and Z-register Stack Pointer Instruction Execution Timing Reset and Interrupt Handling Interrupt Response Time AVR ATmega8515 Memories In-System Reprogrammable Flash Program memory SRAM Data Memory Data Memory Access Times EEPROM Data Memory EEPROM Read/Write Access The EEPROM Address Register – EEARH and EEARL The EEPROM Data Register – EEDR The EEPROM Control Register – EECR EEPROM Write During Power- down Sleep Mode Preventing EEPROM Corruption I/O Memory External Memory Interface Overview Using the External Memory Interface Address Latch Requirements Pull-up and Bus Keeper Timing XMEM Register Description MCU Control Register – MCUCR Extended MCU Control Register – EMCUCR Special Function IO Register – SFIOR Using all Locations of External Memory Smaller than 64 KB Using all 64KB Locations of External Memory System Clock and Clock Options Clock Systems and their Distribution CPU Clock – clkCPU I/O Clock – clkI/O Flash Clock – clkFLASH Clock Sources Default Clock Source Crystal Oscillator Low-frequency Crystal Oscillator External RC Oscillator Calibrated Internal RC Oscillator Oscillator Calibration Register – OSCCAL External Clock Power Management and Sleep Modes MCU Control Register – MCUCR MCU Control and Status Register – MCUCSR Extended MCU Control Register – EMCUCR Idle Mode Power-down Mode Standby Mode Minimizing Power Consumption Analog Comparator Brown-out Detector Internal Voltage Reference Watchdog Timer Port Pins System Control and Reset Resetting the AVR Reset Sources Power-on Reset External Reset Brown-out Detection Watchdog Reset MCU Control and Status Register – MCUCSR Internal Voltage Reference Voltage Reference Enable Signals and Start-up Time Watchdog Timer Watchdog Timer Control Register – WDTCR Timed Sequences for Changing the Configuration of the Watchdog Timer Safety Level 0 Safety Level 1 Safety Level 2 Interrupts Interrupt Vectors in ATmega8515 Moving Interrupts between Application and Boot Space General Interrupt Control Register – GICR I/O Ports Introduction Ports as General Digital I/O Configuring the Pin Reading the Pin Value Digital Input Enable and Sleep Modes Unconnected pins Alternate Port Functions Special Function IO Register – SFIOR Alternate Functions of Port A Alternate Functions Of Port B Alternate Functions of Port C Alternate Functions of Port D Alternate Functions of Port E Register Description for I/O Ports Port A Data Register – PORTA Port A Data Direction Register – DDRA Port A Input Pins Address – PINA Port B Data Register – PORTB Port B Data Direction Register – DDRB Port B Input Pins Address – PINB Port C Data Register – PORTC Port C Data Direction Register – DDRC Port C Input Pins Address – PINC Port D Data Register – PORTD Port D Data Direction Register – DDRD Port D Input Pins Address – PIND Port E Data Register – PORTE Port E Data Direction Register – DDRE Port E Input Pins Address – PINE External Interrupts MCU Control Register – MCUCR Extended MCU Control Register – EMCUCR General Interrupt Control Register – GICR General Interrupt Flag Register – GIFR 8-bit Timer/Counter0 with PWM Overview Registers Definitions Timer/Counter Clock Sources Counter Unit Output Compare Unit Force Output Compare Compare Match Blocking by TCNT0 Write Using the Output Compare Unit Compare Match Output Unit Compare Output Mode and Waveform Generation Modes of Operation Normal Mode Clear Timer on Compare Match (CTC) Mode Fast PWM Mode Phase Correct PWM Mode Timer/Counter Timing Diagrams 8-bit Timer/Counter Register Description Timer/Counter Control Register – TCCR0 Timer/Counter Register – TCNT0 Output Compare Register – OCR0 Timer/Counter Interrupt Mask Register – TIMSK Timer/Counter Interrupt Flag Register – TIFR Timer/Counter0 and Timer/Counter1 Prescalers Internal Clock Source Prescaler Reset External Clock Source Special Function IO Register – SFIOR 16-bit Timer/Counter1 Overview Registers Definitions Compatibility Accessing 16-bit Registers Reusing the Temporary High Byte Register Timer/Counter Clock Sources Counter Unit Input Capture Unit Input Capture Trigger Source Noise Canceler Using the Input Capture Unit Output Compare Units Force Output Compare Compare Match Blocking by TCNT1 Write Using the Output Compare Unit Compare Match Output Unit Compare Output Mode and Waveform Generation Modes of Operation Normal Mode Clear Timer on Compare Match (CTC) Mode Fast PWM Mode Phase Correct PWM Mode Phase and Frequency Correct PWM Mode Timer/Counter Timing Diagrams 16-bit Timer/Counter Register Description Timer/Counter1 Control Register A – TCCR1A Timer/Counter1 Control Register B – TCCR1B Timer/Counter1 – TCNT1H and TCNT1L Output Compare Register 1 A – OCR1AH and OCR1AL Output Compare Register 1 B – OCR1BH and OCR1BL Input Capture Register 1 – ICR1H and ICR1L Timer/Counter Interrupt Mask Register – TIMSK(1) Timer/Counter Interrupt Flag Register – TIFR(1) Serial Peripheral Interface – SPI SS Pin Functionality Slave Mode Master Mode SPI Control Register – SPCR SPI Status Register – SPSR SPI Data Register – SPDR Data Modes USART Single USART AVR USART vs. AVR UART – Compatibility Clock Generation Internal Clock Generation – The Baud Rate Generator Double Speed Operation (U2X) External Clock Synchronous Clock Operation Frame Formats Parity Bit Calculation USART Initialization Data Transmission – The USART Transmitter Sending Frames with 5 to 8 Data Bits Sending Frames with 9 Data Bits Transmitter Flags and Interrupts Parity Generator Disabling the Transmitter Data Reception – The USART Receiver Receiving Frames with 5 to 8 Data Bits Receiving Frames with 9 Data Bits Receive Compete Flag and Interrupt Receiver Error Flags Parity Checker Disabling the Receiver Flushing the Receive Buffer Asynchronous Data Reception Asynchronous Clock Recovery Asynchronous Data Recovery Asynchronous Operational Range Multi-processor Communication Mode Using MPCM Accessing UBRRH/UCSRC Registers Write Access Read Access USART Register Description USART I/O Data Register – UDR USART Control and Status Register A – UCSRA USART Control and Status Register B – UCSRB USART Control and Status Register C – UCSRC USART Baud Rate Registers – UBRRL and UBRRH Examples of Baud Rate Setting Analog Comparator Analog Comparator Control and Status Register – ACSR Boot Loader Support – Read-While-Write Self-Programming Features Application and Boot Loader Flash Sections Application Section BLS – Boot Loader Section Read-While-Write and No Read-While-Write Flash Sections RWW – Read-While-Write Section NRWW – No Read-While-Write Section Boot Loader Lock bits Entering the Boot Loader Program Store Program memory Control Register – SPMCR Addressing the Flash During Self- Programming Self-Programming the Flash Performing Page Erase by SPM Filling the Temporary Buffer (page loading) Performing a Page Write Using the SPM Interrupt Consideration While Updating BLS Prevent Reading the RWW Section During Self- Programming Setting the Boot Loader Lock bits by SPM EEPROM Write Prevents Writing to SPMCR Reading the Fuse and Lock bits from Software Preventing Flash Corruption Programming Time for Flash when using SPM Simple Assembly Code Example for a Boot Loader ATmega8515 Boot Loader Parameters Memory Programming Program and Data Memory Lock bits Fuse bits Latching of Fuses Signature Bytes Calibration Byte Parallel Programming Parameters, Pin Mapping, and Commands Signal Names Parallel Programming Enter Programming Mode Considerations for Efficient Programming Chip Erase Programming the Flash Programming the EEPROM Reading the Flash Reading the EEPROM Programming the Fuse Low Bits Programming the Fuse High Bits Programming the Lock bits Reading the Fuse and Lock bits Reading the Signature Bytes Reading the Calibration Byte Parallel Programming Characteristics Serial Downloading Serial Programming Pin Mapping Serial Programming Algorithm Data Polling Flash Data Polling EEPROM Electrical Characteristics Absolute Maximum Ratings* External Clock Drive Waveforms External Clock Drive SPI Timing Characteristics External Data Memory Timing ATmega8515 Typical Characteristics Active Supply Current Idle Supply Current Power-Down Supply Current Standby Supply Current Pin Pull-up Pin Driver Strength Pin Thresholds And Hysteresis BOD Thresholds And Analog Comparator Offset Internal Oscillator Speed Current Consumption Of Peripheral Units Current Consumption In Reset And Reset Pulsewidth Register Summary Instruction Set Summary Ordering Information Packaging Information 44A 40P6 44J 44M1 Errata ATmega8515(L) Rev. C and D Datasheet Revision History Changes from Rev. 2512J-10/06 to Rev. 2512K-01/10 Changes from Rev. 2512I-08/06 to Rev. 2512J-10/06 Changes from Rev. 2512H-04/06 to Rev. 2512I-08/06 Changes from Rev. 2512G-03/05 to Rev. 2512H-04/06 Changes from Rev. 2512F-12/03 to Rev. 2512G-03/05 Rev. 2512E-09/03 Rev. 2512E-09/03 Rev. 2512D-02/03 Rev. 2512C-10/02 Rev. 2512B-09/02 Rev. 2512A-04/02 Table of Contents