���}��em9170+ETA197�����ɼ� ����63121���Pע�^���� |
---|
���� |
1�� |
![]() |
em9170+ETA197�����ɼ� ![]()
���ã�
�P��ETA197��AD�D�Q�������놖һ�£����^ISA_WRITE֮���ゃ��ͨ�^delay�ӕr�����ȴ��D�Q�Y��������ISA_READ�xȡ�Y���� �@���ӵ�Ԓ���������_�����f���_���Ƿ�����D�Q�Y������ʲô����MAX197��INT�Д����M���Д��Ƿ��D�Q�Y���أ��������ゃ��ʾ�����a�� int ClassETA197::GetADData(int ChIdx, int RangeIdx) { unsigned char abyte; unsigned int ui1, ui2; if( ChIdx>7 ) return -1; if( RangeIdx>3 ) return -1; abyte = NORMAL|ChIdx|RangeMode[RangeIdx]; //ISA_WriteUchar( nSeg, 0, abyte ); ISA_Write( hETA197 , 1 , 0 , abyte ); // wait to make sure AD_EOC goto low DelayInuSec(300); //�ӕr //ISA_ReadUchar( nSeg, 0, &abyte); //ISA_Read( hETA197 , ISA_CS1 , 0 , &abyte ); //ISA_ReadUchar( nSeg, 0, &abyte); ISA_Read( hETA197 , 1 , 0 , &abyte ); ui1 = (unsigned int)abyte; //ISA_ReadUchar( nSeg, 1, &abyte); ISA_Read( hETA197 , 1 , 1 , &abyte ); ui2 = (unsigned int)abyte; ui1 = (ui2<<8|ui1)&0x0fff; return ui1; } |
�������� | ���� | �؏� ![]() |
x10 |
2�� |
![]() |
![]()
MAX197���D�Q�ٶȞ�100Ksps���������ӕrһ�c��10us���Ϳ����ˡ���CE�У��Д���Ҫ���ӳ����Ќ��F���@�ӕ�������s���҂���ETA108���ǻ���DMA/INT�ӵģ���Ҫ�nj��F���βɼ�����һ��ĵ��ٔ����ɼ������������ɝM����Ҫ��
|
�������� | ���� | �؏� ![]() |
x10 |
3�� |
![]() |
![]()
���⣬�������a�ӿ��·�����ֱ���B�ӵ�����ISA����������Ҫ�e�Ė|����
|
�������� | ���� | �؏� ![]() |