Download RCC-1.2.18 drivers Manual

Transcript
struct gradcdac_config {
unsigned char dac_ws;
char wr_pol;
unsigned char dac_dw;
unsigned char adc_ws;
char rc_pol;
unsigned char cs_mode;
char cs_pol;
char ready_mode;
char ready_pol;
char trigg_pol;
unsigned char trigg_mode;
unsigned char adc_dw;
};
Member
Member
type
ADCONF
Bit start
Description
dac_ws
5-bit int
19
Number of DAC wait states.
wr_pol
Boolean
18
Polarity of DAC write strobe
dac_dw
2-bit
selection
16
0
Active low
1
Active high
DAC data width
0
none
1
8-bit ADDATA [0:7]
2
16-bit ADDATA [0:15]
3
none/spare
adc_ws
5-bit int
11
Number of ADC wait states
rc_pol
Boolean
10
Polarity of ADC read convert
cs_mode
2-bit
selection
8
0
Active low read
1
Active high read
Mode of ADC chip select asserted ...
0
during conversion and read phases
1
during conversion phase
2
during read phase
3
continuously during both phases