参数资料
型号: Q80C52XXX-20SHXXX:D
厂商: ATMEL CORP
元件分类: 微控制器/微处理器
英文描述: 8-BIT, MROM, 20 MHz, MICROCONTROLLER, CQFP44
封装: CERAMIC, QFP-44
文件页数: 18/134页
文件大小: 3805K
114
8011Q–AVR–02/2013
ATmega164P/324P/644P
Note:
1. The example code assumes that the part specific header file is included.
For I/O Registers located in extended I/O map, “IN”, “OUT”, “SBIS”, “SBIC”, “CBI”, and “SBI”
instructions must be replaced with instructions that allow access to extended I/O. Typically
“LDS” and “STS” combined with “SBRS”, “SBRC”, “SBR”, and “CBR”.
The assembly code example returns the TCNTn value in the r17:r16 register pair.
It is important to notice that accessing 16-bit registers are atomic operations. If an interrupt
occurs between the two instructions accessing the 16-bit register, and the interrupt code
updates the temporary register by accessing the same or any other of the 16-bit Timer Regis-
ters, then the result of the access outside the interrupt will be corrupted. Therefore, when both
the main code and the interrupt code update the temporary register, the main code must disable
the interrupts during the 16-bit access.
Assembly Code Examples(1)
...
; Set TCNT
n to 0x01FF
ldi
r17,0x01
ldi
r16,0xFF
out
TCNT
nH,r17
out
TCNT
nL,r16
; Read TCNT
n into r17:r16
in
r16,TCNT
nL
in
r17,TCNT
nH
...
C Code Examples(1)
unsigned int
i;
...
/* Set TCNT
n to 0x01FF */
TCNT
n = 0x1FF;
/* Read TCNT
n into i */
i = TCNT
n;
...
相关PDF资料
PDF描述
Q80C52XXX-25:R 8-BIT, MROM, 25 MHz, MICROCONTROLLER, CQFP44
Q80C52XXX-25SHXXX:D 8-BIT, MROM, 25 MHz, MICROCONTROLLER, CQFP44
Q80C52XXX-30:R 8-BIT, MROM, 30 MHz, MICROCONTROLLER, CQFP44
Q80C52XXX-36:R 8-BIT, MROM, 36 MHz, MICROCONTROLLER, CQFP44
Q80C52XXX-36SHXXX:R 8-BIT, MROM, 36 MHz, MICROCONTROLLER, CQFP44
相关代理商/技术参数
参数描述
Q80N-5 制造商:POWERBOX 制造商全称:Powerbox 功能描述:0.5 WATTS - 100 - 10KV SINGLE OUTPUT DC/DC INDUSTRIAL
Q-810 功能描述:交流电源插头和插座 NEMA L5-15P LOCKING DEVICE RoHS:否 制造商:Hirose Connector 产品:Plugs 系列: 电流额定值:3 A 电压额定值:30 V 安装角:Straight 安装风格:Cable 颜色: 端口数量:
Q81022511000000 制造商:Epson Electronics America Inc 功能描述:TF2-J4DB1 184.3200MHZ
Q811 制造商:Captive Fastener Corporation 功能描述:
Q-812 制造商:Qualtek Electronics Corporation 功能描述:NEMA TWIST-LOCK 制造商:Qualtek Electronics Corporation 功能描述:Nema St Blade Twist Lock