Xtreme I/O Express ADC-DAC
Users Guide
Document: CTIM-00435
Revision: 0.08
Page 41 of 47
Connect Tech Inc. 800-426-8979 | 519-836-1291
Date: 2016-11-18
IRQ_MSTR_ENABLE (IR0x50 : Read/Write Only)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6
5 4 3 2 1 0
Not used
F
L
A
S
H
D
A
C
A
D
C
3
A
D
C
2
A
D
C
1
A
D
C
0
ADC0
ADC controller block 0 interrupt is enabled
ADC1
ADC controller block 1 interrupt is enabled
ADC2
ADC controller block 2 interrupt is enabled
ADC3
ADC controller block 3 interrupt is enabled
DAC
DAC controller block interrupt is enabled
FLASH
SPI Flash controller block interrupt is enabled
This is the overall interrupt enable for each functional block. To mask an interrupt, set the bit to 0.
RELEASE (I0x0 : Read Only)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Board ID = 0x12C4
Release Version = 0x6
TIMESTAMP (I0x4 : Read Only)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Timestamp, see software application for conversions
Application Examples
Example A – writing/reading from scratch pad
/**************************************************************/
printf(
"reading scratch pad registers\n"
);
/***************************************************************/
wrreg=0xABCDEF01;
ret = CTIFPGAWrDword(pbrd, BAR_MAIN, COMMSCRATCHPAD_REG_1, wrreg);
if
(ret != CTI_STATUS_OK)
{
printf(
"Error write to SCRATCHPAD_REG_1\n"
); result = FALSE;
}
ret = CTIFPGARdDword(pbrd, BAR_MAIN, COMMSCRATCHPAD_REG_1, &rdreg);
if
(ret != CTI_STATUS_OK)
{
printf(
"Error read from FPGA mem"
); result = FALSE;
}
else
{
printf (
"rd reg = 0x%08x \n"
, rdreg);