adt600.h

来自「源代码PC104用户手册PC104用户手册PC104用户手册」· C头文件 代码 · 共 48 行

H
48
字号
/*
  C language header file for sample programs for the SM200.

  Science & Technology CO.,LTD.
  Rm814-815,Shangda Plaza, Zhenhua,ShenZhen,GuangDong,P.R.C.

  Tel:   86-755-3328081
  Fax:   86-755-3343187
  Zip:	 518031

  Compiler: Turbo C (r) version 1.0, 2.0
	    Turbo C++ (r) version 1.0
	    Borland C++ (r) version 2.0, 3.0

  Last update:	August 19, 1993
*/

/*
 The following constants define the location of the various registers on
 the SM200  The are included to make the code more readable; statements
 such as:

	   outportb(BaseAddress + START_CONVERSION, 0);

 are less obscure than:

	   outportb(516, 0);

*/

#define START_CONVERSION  0
#define READ_DATA_MSB     0
#define READ_DATA_LSB     1
#define CLEAR_INT 	  2
#define STATUS_BYTE  	  2

#define PPI_0       4
#define PPI_1       5
#define PPI_2       6
#define PPI_CTRL    7
#define TIMER_A     8
#define TIMER_B     9
#define TIMER_C     10
#define TIMER_CTRL  11

#define CHANNEL_SLCT  12
#define IRQ_SLCT      12

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?