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


¥ 17.256
ATMEGA169PV-8MU 其他数据使用手册 - Microchip(微芯)
制造商:
Microchip(微芯)
分类:
8位微控制器
封装:
QFN-64
描述:
8位 MCU微控制单元, 低功率高性能, AVR ATmega Family ATmega16X Series Microcontrollers, 8 MHz, 16 KB, 1 KB, 64 引脚
Pictures:
3D模型
符号图
焊盘图
引脚图
产品图
页面导航:
功能描述在P1
导航目录
ATMEGA169PV-8MU数据手册
Page:
of 6 Go
若手册格式错乱,请下载阅览PDF原文件

2
AVR506
8028C-AVR-02/07
2 General Porting Considerations
To make the porting process as easy as possible, we recommend to always refer to
registers and bit positions using their defined names, as absolute addresses and
values may change from device to device. When porting a design it is then often just
necessary to include the correct definition file. 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 added features will stay in their
default states when unused.
3 Register and bit names
Between ATmega169 and ATmega169P some register bits has been added, but
none of the existing bits has been removed, nor moved to different locations.
In ATmega169 the USART module is named USART, while in ATmega169P 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-1 shows the register names for ATmega169.
Table 3-1
. USART register names
ATmega169
Register name
Atmega169
Bit names
ATmega169P
Register name
ATmega169P
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
U2X U2X0
UCSRA
MPCM
UCSR0A
MPCM0
RXCIE RXCIE0
TXCIE TXCIE0
UDRIEN UDRIEN0
RXEN RXEN0
TXEN TXEN0
UCSZ2 UCSZ02
UCSRB
RXB8
UCSR0B
RXB80
器件 Datasheet 文档搜索
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件