參數(shù)資料
型號: A42MX16-2CQ100ES
廠商: Electronic Theatre Controls, Inc.
英文描述: Sensor Cable Assembly; Connector Type A:M12 Plug; Connector Type B:Stripped End Leads; Cable Length:5m; No. of Contacts:5; No. of Positions:5 RoHS Compliant: Yes
中文描述: 40MX和42MX FPGA系列
文件頁數(shù): 90/120頁
文件大?。?/td> 854K
代理商: A42MX16-2CQ100ES
71
4958B–AUTO–11/10
Atmel ATA6285/ATA6286 [Preliminary]
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.
The following code examples show how to do an atomic read of the T2COR Register contents.
Reading any of the 16-bit Registers can be done by using the same principle.
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 T2COR value in the r17:r16 register pair.
Assembly Code Example(1)
TIM16_ReadT2COR:
; Save global interrupt flag
In r18, SREG
; Disable interrupts
cli
; Read T2COR into r17:r16
LDS r16,T2CORL
LDS r17,T2CORH
; Restore global interrupt flag
Out SREG, r18
ret
C Code Example(1)
unsigned int TIM16_ReadT2COR( void )
{
unsigned char sreg;
unsigned int i;
/* Save global interrupt flag */
sreg = SREG;
/* Disable interrupts */
_CLI();
/* Read T2COR into i */
i = T2COR;
/* Restore global interrupt flag */
SREG = sreg;
return i;
}
相關(guān)PDF資料
PDF描述
A42MX24-2CQ100ES Sensor Cable Assembly; Connector Type A:M12 Plug; Connector Type B:M12 Receptacle; Cable Length:5m; No. of Contacts:5; No. of Positions:5 RoHS Compliant: Yes
A42MX36-2CQ100ES Eurofast Cordset , Eurofast molded cordset RoHS Compliant: Yes
A42MX02-2CQ100I Sensor Cable Assembly; Connector Type A:M12 Plug; Connector Type B:M12 Receptacle; Cable Length:2m; No. of Contacts:3; No. of Positions:4 RoHS Compliant: Yes
A42MX02-2PQ100 40MX and 42MX FPGA Families
A42MX04-2PQ100 40MX and 42MX FPGA Families
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
A42MX16-2CQ100I 制造商:未知廠家 制造商全稱:未知廠家 功能描述:40MX and 42MX FPGA Families
A42MX16-2CQ100M 制造商:未知廠家 制造商全稱:未知廠家 功能描述:40MX and 42MX FPGA Families
A42MX16-2PL100 制造商:未知廠家 制造商全稱:未知廠家 功能描述:40MX and 42MX FPGA Families
A42MX16-2PL100A 制造商:未知廠家 制造商全稱:未知廠家 功能描述:40MX and 42MX FPGA Families
A42MX16-2PL100B 制造商:未知廠家 制造商全稱:未知廠家 功能描述:40MX and 42MX FPGA Families