![Apex Digital STX104 Скачать руководство пользователя страница 86](http://html.mh-extra.com/html/apex-digital/stx104/stx104_reference-manual_2952893086.webp)
static
void
STX104_Write_Indexed_Data_Byte(
int
board,
unsigned
char
index,
unsigned
char
value )
{
outp( stx104_base_address[board] + STX104_INDEX_POINTER, index );
outp( stx104_base_address[board] + STX104_INDEX_DATA, (
unsigned
int
) value );
}
/*****************************************************************
/ INDEXED ARRAY DATA WORD WRITE
*/
static
void
STX104_Write_Indexed_Data_Word(
int
board,
unsigned
char
index,
unsigned
int
value
)
{
outp( stx104_base_address[board] + STX104_INDEX_POINTER, index );
outpw( stx104_base_address[board] + STX104_INDEX_DATA, value );
}
/*****************************************************************
/ INDEXED ARRAY DATA DWORD WRITE
*/
static
void
STX104_Write_Indexed_Data_Dword(
int
board,
unsigned
char
index,
unsigned
long
value )
{
union
{
unsigned
long
dword;
unsigned
int
word[2]; } dvalue;
dvalue.dword = value;
outp( stx104_base_address[board] + STX104_INDEX_POINTER, index );
outpw( stx104_base_address[board] + STX104_INDEX_DATA, dvalue.word[0] );
outpw( stx104_base_address[board] + STX104_INDEX_DATA, dvalue.word[1] );
}
11.30
Conversion Disable (Offset=1028; Index=64,
RB='1')
Conversion Disable Register. DAS1602 Compatible Configuration Register. In 10-bit address decode mode, the DAS1602
compatible registers are also accessible through the indexed register set.
Register Layout
Offset=0x404, RB=X. Also located at: Index=0x40, Byte 0, RB='1'.
D7
D6
D5
D4
D3
D2
D1
D0
CD7
CD6
CD5
CD4
CD3
CD2
CD1
CD0
Bit Definitions
NAME DIRECTION DEFAULT DESCRIPTION
CD[7:0]
w
0x00
Conversion Disable Register. On power-up or reset the conversion triggers are enabled.
This register is only available if FE bit is true (DAS1602 Functions are enabled). Writing a
0x00 to this register enables ADC triggering. Writing 0x40 (64
10
) to this register disables
ADC triggering. If the FIFO Superset jumper M1 is not installed, then when conversions are
disabled, the FIFO is reset. If the jumper M1 is installed, the FIFO is only reset by writing to
the channel register.
STX104 Reference Manual
11.30 Conversion Disable (Offset=1028;
Copyright © 2009 by
Apex Embedded Systems
. All rights reserved.
78
Thursday, October 08, 2009
11
Содержание STX104
Страница 1: ......
Страница 8: ......
Страница 10: ......
Страница 12: ......
Страница 16: ......
Страница 18: ......
Страница 20: ......
Страница 22: ......
Страница 42: ......
Страница 44: ......
Страница 116: ......
Страница 122: ......
Страница 124: ...STX104 Reference Manual 15 Copyright 2009 by Apex Embedded Systems All rights reserved 116 Thursday October 08 2009 15 ...
Страница 126: ......
Страница 128: ......
Страница 132: ......