11.07.2015 Views

ATMega chip full datasheet - UCSD Department of Physics

ATMega chip full datasheet - UCSD Department of Physics

ATMega chip full datasheet - UCSD Department of Physics

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ATmega48A/PA/88A/PA/168A/PA/328/P7. AVR CPU Core7.1 OverviewThis section discusses the AVR core architecture in general. The main function <strong>of</strong> the CPU coreis to ensure correct program execution. The CPU must therefore be able to access memories,perform calculations, control peripherals, and handle interrupts.Figure 7-1.Block Diagram <strong>of</strong> the AVR ArchitectureData Bus 8-bitFlashProgramMemoryProgramCounterStatusand ControlInstructionRegister32 x 8GeneralPurposeRegistrersInterruptUnitSPIUnitInstructionDecoderControl LinesDirect AddressingIndirect AddressingALUWatchdogTimerAnalogComparatorI/O Module1DataSRAMI/O Module 2I/O Module nEEPROMI/O LinesIn order to maximize performance and parallelism, the AVR uses a Harvard architecture – withseparate memories and buses for program and data. Instructions in the program memory areexecuted with a single level pipelining. While one instruction is being executed, the next instructionis pre-fetched from the program memory. This concept enables instructions to be executedin every clock cycle. The program memory is In-System Reprogrammable Flash memory.The fast-access Register File contains 32 x 8-bit general purpose working registers with a singleclock cycle access time. This allows single-cycle Arithmetic Logic Unit (ALU) operation. In a typ-8271D–AVR–05/119

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!