Datasheet 搜索 > 8位微控制器 > Microchip(微芯) > ATMEGA329V-8AU 数据手册 > ATMEGA329V-8AU 其他数据使用手册 2/5 页


¥ 4.005
ATMEGA329V-8AU 其他数据使用手册 - Microchip(微芯)
制造商:
Microchip(微芯)
分类:
8位微控制器
封装:
TQFP-64
描述:
AVR 8MHz 闪存:16K@x16bit
Pictures:
3D模型
符号图
焊盘图
引脚图
产品图
页面导航:
功能描述在P1
导航目录
ATMEGA329V-8AU数据手册
Page:
of 5 Go
若手册格式错乱,请下载阅览PDF原文件

2
AVR098
2580D-AVR-02/07
2 General porting considerations
To make the porting process as easy as possible, always refer to registers and bit
positions using their defined names. Avoid using absolute addresses and values. In
most cases, the register and bit names are unchanged from device to device. When
you are porting a design, it is more convenient to include the correct definition file for
the new device, rather than manually changing all your addresses and bit values. It is
also considered good programming practice to use named references instead of
absolute values. Some examples are shown below.
PORTE |= (1<<PORTE5); // Set pin 5 on port E high
DDR &= ~(1<<PORTE5); // Set pin 5 on port E as input
// Configure USI
USICR = (1<<USISIE)|(0<<USIOIE)|(1<<USIWM1)|(0<<USIWM0)|
(1<<USICS1)|(0<<USICS0)|(0<<USICLK)|(0<<USITC);
To avoid conflicts with added features and register functionality, never access
registers that are marked as reserved. Reserved bits should always be written to zero
if accessed. This ensures forward compatibility, and that added features will stay in
their default states if not used.
3 Register and bit names
In ATmega169 and ATmega329/649, some register bits are in different locations
within a register, but neither the registers nor the bits have different names, nor are
any bits relocated into other registers.
Table 3-1 shows the register bits that have
been moved.
Table 3-1
. Moved register bits.
Bit names
PCIE1 PCIE0 PCIF1 PCIF0
In ATmega169 the USART module is named USART, while in ATmega329/649 it is
called USART0. This has consequences for all USART register and bit names, and
depending on the compiler used this might have consequences when porting the
code.
Table 3-2 shows the register names for ATmega169 and ATmega329/649
Table 3-2
. USART register names
ATmega169
Register name
Atmega169
Bit names
ATmega329/649
Register name
ATmega329/649
Bit names
RXB[7:0] RXB0[7:0]
UDR
TXB[7:0]
UDR0
TXB0[7:0]
RXC RXC0
TXC TXC0
UDRE UDRE0
FE FE0
DOR DOR0
UPE UPE0
UCSRA
U2X
UCSR0A
U2X0
器件 Datasheet 文档搜索
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件