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/PTable 27-2. Boot Lock Bit0 Protection Modes (Application Section) (1)BLB0 Mode BLB02 BLB01 Protection1 1 1Note: 1. “1” means unprogrammed, “0” means programmedNote: 1. “1” means unprogrammed, “0” means programmedNo restrictions for SPM or LPM accessing the Applicationsection.2 1 0 SPM is not allowed to write to the Application section.3 0 04 0 1SPM is not allowed to write to the Application section, and LPMexecuting from the Boot Loader section is not allowed to readfrom the Application section. If Interrupt Vectors are placed inthe Boot Loader section, interrupts are disabled while executingfrom the Application section.LPM executing from the Boot Loader section is not allowed toread from the Application section. If Interrupt Vectors are placedin the Boot Loader section, interrupts are disabled whileexecuting from the Application section.Table 27-3. Boot Lock Bit1 Protection Modes (Boot Loader Section) (1)BLB1 Mode BLB12 BLB11 Protection1 1 1No restrictions for SPM or LPM accessing the Boot Loadersection.2 1 0 SPM is not allowed to write to the Boot Loader section.3 0 04 0 127.6 Entering the Boot Loader ProgramEntering the Boot Loader takes place by a jump or call from the application program. This maybe initiated by a trigger such as a command received via USART, or SPI interface. Alternatively,the Boot Reset Fuse can be programmed so that the Reset Vector is pointing to the Boot Flashstart address after a reset. In this case, the Boot Loader is started after a reset. After the applicationcode is loaded, the program can start executing the application code. Note that the fusescannot be changed by the MCU itself. This means that once the Boot Reset Fuse is programmed,the Reset Vector will always point to the Boot Loader Reset and the fuse can only bechanged through the serial or parallel programming interface.Table 27-4. Boot Reset Fuse (1)BOOTRSTReset Address1 Reset Vector = Application Reset (address 0x0000)SPM is not allowed to write to the Boot Loader section, and LPMexecuting from the Application section is not allowed to readfrom the Boot Loader section. If Interrupt Vectors are placed inthe Application section, interrupts are disabled while executingfrom the Boot Loader section.LPM executing from the Application section is not allowed toread from the Boot Loader section. If Interrupt Vectors areplaced in the Application section, interrupts are disabled whileexecuting from the Boot Loader section.0 Reset Vector = Boot Loader Reset (see Table 27-7 on page 292)8271D–AVR–05/11284

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

Saved successfully!

Ooh no, something went wrong!