欢迎访问ic37.com |
会员登录 免费注册
发布采购

ATMEGA16L-8PU 参数 Datasheet PDF下载

ATMEGA16L-8PU图片预览
型号: ATMEGA16L-8PU
PDF下载: 下载PDF文件 查看货源
内容描述: 8 -bit微控制器16K字节In- Syustem可编程Flash [8-bit Microcontroller with 16K Bytes In-Syustem Programmable Flash]
分类和应用: 微控制器PC
文件页数/大小: 357 页 / 5688 K
品牌: ATMEL [ ATMEL CORPORATION ]
 浏览型号ATMEGA16L-8PU的Datasheet PDF文件第5页浏览型号ATMEGA16L-8PU的Datasheet PDF文件第6页浏览型号ATMEGA16L-8PU的Datasheet PDF文件第7页浏览型号ATMEGA16L-8PU的Datasheet PDF文件第8页浏览型号ATMEGA16L-8PU的Datasheet PDF文件第10页浏览型号ATMEGA16L-8PU的Datasheet PDF文件第11页浏览型号ATMEGA16L-8PU的Datasheet PDF文件第12页浏览型号ATMEGA16L-8PU的Datasheet PDF文件第13页  
ATmega16(L)
Program Flash memory space is divided in two sections, the Boot program section and the
Application Program section. Both sections have dedicated Lock bits for write and read/write
protection. The SPM instruction that writes into the Application Flash memory section must
reside in the Boot Program section.
During interrupts and subroutine calls, the return address Program Counter (PC) is stored on the
Stack. The Stack is effectively allocated in the general data SRAM, and consequently the Stack
size is only limited by the total SRAM size and the usage of the SRAM. All user programs must
initialize the SP in the reset routine (before subroutines or interrupts are executed). The Stack
Pointer SP is read/write accessible in the I/O space. The data SRAM can easily be accessed
through the five different addressing modes supported in the AVR architecture.
The memory spaces in the AVR architecture are all linear and regular memory maps.
A flexible interrupt module has its control registers in the I/O space with an additional global
interrupt enable bit in the Status Register. All interrupts have a separate interrupt vector in the
interrupt vector table. The interrupts have priority in accordance with their interrupt vector posi-
tion. The lower the interrupt vector address, the higher the priority.
The I/O memory space contains 64 addresses for CPU peripheral functions as Control Regis-
ters, SPI, and other I/O functions. The I/O Memory can be accessed directly, or as the Data
Space locations following those of the Register File, $20 - $5F.
ALU
Arithmetic
Logic Unit
The high-performance AVR ALU operates in direct connection with all the 32 general purpose
working registers. Within a single clock cycle, arithmetic operations between general purpose
registers or between a register and an immediate are executed. The ALU operations are divided
into three main categories – arithmetic, logical, and bit-functions. Some implementations of the
architecture also provide a powerful multiplier supporting both signed/unsigned multiplication
and fractional format. See the “Instruction Set” section for a detailed description.
The Status Register contains information about the result of the most recently executed arithme-
tic instruction. This information can be used for altering program flow in order to perform
conditional operations. Note that the Status Register is updated after all ALU operations, as
specified in the Instruction Set Reference. This will in many cases remove the need for using the
dedicated compare instructions, resulting in faster and more compact code.
The Status Register is not automatically stored when entering an interrupt routine and restored
when returning from an interrupt. This must be handled by software.
The AVR Status Register – SREG – is defined as:
Bit
7
I
Read/Write
Initial Value
R/W
0
6
T
R/W
0
5
H
R/W
0
4
S
R/W
0
3
V
R/W
0
2
N
R/W
0
1
Z
R/W
0
0
C
R/W
0
SREG
Status Register
• Bit 7 – I: Global Interrupt Enable
The Global Interrupt Enable bit must be set for the interrupts to be enabled. The individual inter-
rupt enable control is then performed in separate control registers. If the Global Interrupt Enable
Register is cleared, none of the interrupts are enabled independent of the individual interrupt
enable settings. The I-bit is cleared by hardware after an interrupt has occurred, and is set by
the RETI instruction to enable subsequent interrupts. The I-bit can also be set and cleared by
the application with the SEI and CLI instructions, as described in the instruction set reference.
9
2466S–AVR–05/09