Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1186 | savelij | 1 | ifndef __st7adc10inc ; avoid multiple inclusion |
2 | __st7adc10inc equ 1 |
||
3 | |||
4 | save |
||
5 | listing off ; no listing over this file |
||
6 | |||
7 | ;**************************************************************************** |
||
8 | ;* * |
||
9 | ;* AS 1.42 - File ADC10.INC * |
||
10 | ;* * |
||
11 | ;* contains SFR and Bit Definitions for ST72xxx 10 Bit ADC * |
||
12 | ;* * |
||
13 | ;**************************************************************************** |
||
14 | |||
15 | __defadc10 macro Base |
||
16 | ADCCSR label Base+$00 ; Control/Status Register |
||
17 | EOC bit ADCCSR,7 ; End Of Conversion |
||
18 | SPEED bit ADCCSR,6 ; ADC Clock Selection |
||
19 | ADON bit ADCCSR,5 ; A/D Converter On |
||
20 | CH3 bit ADCCSR,3 ; Channel Selection |
||
21 | CH2 bit ADCCSR,2 |
||
22 | CH1 bit ADCCSR,1 |
||
23 | CH0 bit ADCCSR,0 |
||
24 | ADCDRH label Base+$01 ; Data Register High |
||
25 | ADCDRL label Base+$02 ; Data Register Low |
||
26 | endm |
||
27 | |||
28 | restore |
||
29 | endif ; __st7adc10inc |