ATmega324PB Automotive Complete - Microchip ww1. ATmega324PB Automotive Complete ......

download ATmega324PB Automotive Complete - Microchip ww1. ATmega324PB Automotive Complete ... – Individual

of 444

  • date post

    24-Jul-2018
  • Category

    Documents

  • view

    217
  • download

    0

Embed Size (px)

Transcript of ATmega324PB Automotive Complete - Microchip ww1. ATmega324PB Automotive Complete ......

  • ATmega324PB Automotive ATmega324PB Automotive Complete

    Introduction

    The picoPower ATmega324PB is a low-power CMOS 8-bit microcontroller based on the AVR enhancedRISC architecture. By executing powerful instructions in a single clock cycle, the ATmega324PB achievesthroughputs close to 1MIPS per MHz. This empowers system designers to optimize the device for powerconsumption versus processing speed.

    Feature

    High Performance, Low Power AVR 8-Bit Microcontroller Family Advanced RISC Architecture

    131 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers Fully Static Operation Up to 16 MIPS Throughput at 16MHz On-Chip 2-cycle Multiplier

    High Endurance Non-Volatile Memory Segments 32KBytes of In-System Self-Programmable Flash Program Memory 1KBytes EEPROM 2KBytes Internal SRAM Write/Erase Cycles: 10,000 Flash/100,000 EEPROM Data Retention: 20 Years at 85C Optional Boot Code Section with Independent Lock Bits

    In-System Programming by On-chip Boot Program True Read-While-Write Operation

    Programming Lock for Software Security JTAG (IEEE std. 1149.1 Compliant) Interface

    Boundary-Scan Capabilities According to the JTAG Standard Extensive On-chip Debug Support Programming of Flash, EEPROM, Fuses, and Lock Bits Through the JTAG Interface

    Peripheral Features Peripheral Touch Controller (PTC)

    Capacitive Touch Buttons, Sliders and Wheels 32 Self-Sap Channels and 256 Mutual Cap Channels

    Two 8-bit Timer/Counters with Separate Prescaler and Compare Mode Three 16-bit Timer/Counters with Separate Prescaler, Compare Mode, and Capture Mode

    2017 Microchip Technology Inc. Datasheet Complete DS40001892A-page 1

  • Real Time Counter with Separate Oscillator Ten PWM Channels 8-Channel 10-Bit ADC

    Differential Mode with Selectable Gain at 1, 10 or 200 Three Programmable Serial USARTs Two Master/Slave SPI Serial Interfaces Two Byte-oriented 2-wire Serial Interfaces (Philips I2C Compatible) Programmable Watchdog Timer with Separate On-chip Oscillator On-chip Analog Comparator Interrupt and Wake-up on Pin Change

    Special Microcontroller Features Power-on Reset and Programmable Brown-out Detection Internal 8 MHz Calibrated Oscillator External and Internal Interrupt Sources Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, Standby, and Extended

    Standby Clock Failure Detection Mechanism and Switch to Internal 8 MHz RC Oscillator in case of Failure Individual Serial Number to Represent a Unique ID

    I/O and Packages 39 Programmable I/O Lines 44-Pin TQFP and 44-Pin Wettable Flank QFN

    Operating Voltage: 2.7 - 5.5V

    Temperature Range: -40C to 105C

    Speed Grade: 0 - 16 MHz @ 4.5 5.5V 0 - 8 MHz @ 2.7 5.5V

    Power Consumption at 1MHz, 2.7V, 25C Active Mode: 0.32mA Power-Down Mode: 0.2A Power-Save Mode: 1.3A (Including 32kHz RTC)

    ATmega324PB Automotive

    2017 Microchip Technology Inc. Datasheet Complete DS40001892A-page 2

  • Table of Contents

    Introduction......................................................................................................................1

    Feature............................................................................................................................ 1

    1. Description...............................................................................................................10

    2. Configuration Summary........................................................................................... 11

    3. Ordering Information ...............................................................................................12

    4. Block Diagram......................................................................................................... 13

    5. Pin Configurations................................................................................................... 145.1. Pin Descriptions......................................................................................................................... 14

    6. I/O Multiplexing........................................................................................................16

    7. Automotive Quality Grade....................................................................................... 18

    8. General Information.................................................................................................198.1. Resources.................................................................................................................................. 198.2. About Code Examples................................................................................................................19

    9. AVR CPU Core........................................................................................................ 209.1. Overview.................................................................................................................................... 209.2. ALU Arithmetic Logic Unit....................................................................................................... 219.3. Status Register...........................................................................................................................219.4. General Purpose Register File...................................................................................................239.5. Stack Pointer..............................................................................................................................249.6. Accessing 16-bit Registers.........................................................................................................259.7. Instruction Execution Timing...................................................................................................... 259.8. Reset and Interrupt Handling..................................................................................................... 26

    10. AVR Memories.........................................................................................................2910.1. Overview.................................................................................................................................... 2910.2. In-System Reprogrammable Flash Program Memory................................................................2910.3. SRAM Data Memory.................................................................................................................. 3010.4. EEPROM Data Memory............................................................................................................. 3110.5. I/O Memory.................................................................................................................................3210.6. Register Description...................................................................................................................33

    11. System Clock and Clock Options............................................................................ 4011.1. Clock Systems and Their Distribution........................................................................................ 4011.2. Clock Sources............................................................................................................................ 4111.3. Low Frequency Crystal Oscillator...............................................................................................4311.4. Low Power Crystal Oscillator..................................................................................................... 44

    2017 Microchip Technology Inc. Datasheet Complete DS40001892A-page 3

  • 11.5. Calibrated Internal RC Oscillator................................................................................................4611.6. 128kHz Internal Oscillator.......................................................................................................... 4711.7. External Clock............................................................................................................................ 4711.8. Timer/Counter Oscillator.............................................................................................................4811.9. Clock Output Buffer.................................................................................................................... 4911.10. System Clock Prescaler............................................................................................................. 4911.11. Register Description...................................................................................................................49

    12. CFD - Clock Failure Detection mechanism............................................................. 5212.1. Overview.................................................................................................................................... 5212.2. Features..................................................................................................................................... 5212.3. Operations..................................................................................................................................5212.4. Timing Diagram.......................................................................................................................... 5412.5. Register Description...................................................................................................................54

    13. PM - Power Management and Sleep Modes...........................................................5513.1. Sleep Modes.............................................................................................................................. 5513.2. BOD Disable.....................................................................