參數(shù)資料
型號: MQ80C52TXXX-25:RD
廠商: ATMEL CORP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 25 MHz, MICROCONTROLLER, CQFP44
封裝: CERAMIC, QFP-44
文件頁數(shù): 18/170頁
文件大?。?/td> 25028K
114
8272E–AVR–04/2013
ATmega164A/PA/324A/PA/644A/PA/1284/P
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;
...
相關(guān)PDF資料
PDF描述
MC80C52XXX-30:D 8-BIT, MROM, 30 MHz, MICROCONTROLLER, CDIP40
MC80C52XXX-30SHXXX 8-BIT, MROM, 30 MHz, MICROCONTROLLER, CDIP40
MD80C52EXXX-12/883:D 8-BIT, MROM, 12 MHz, MICROCONTROLLER, CDIP40
MD80C52TXXX-12/883:D 8-BIT, MROM, 12 MHz, MICROCONTROLLER, CDIP40
MD80C52TXXX-16:D 8-BIT, MROM, 16 MHz, MICROCONTROLLER, CDIP40
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MQ82370-20 制造商:Rochester Electronics LLC 功能描述:- Bulk
MQ8238020 制造商:Intel 功能描述:CONTROLLER: OTHER
MQ82380-20 制造商:Rochester Electronics LLC 功能描述:- Bulk
MQ82380-20/R 制造商:Rochester Electronics LLC 功能描述:
MQ82592 制造商:Rochester Electronics LLC 功能描述:- Bulk