Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1186 | savelij | 1 | ifndef __ac90inc |
2 | __ac90inc equ 1 |
||
3 | save |
||
4 | listing off ; no listing over this file |
||
5 | |||
6 | ;**************************************************************************** |
||
7 | ;* * |
||
8 | ;* AS 1.42 - File AC90.INC * |
||
9 | ;* * |
||
10 | ;* Contains Bit & Register Definitions for AT90Sxxxx Analog Comparator * |
||
11 | ;* * |
||
12 | ;**************************************************************************** |
||
13 | |||
14 | ACSR port 0x08 ; Analog Comparator ControlStatus Register |
||
15 | ACIS0 avrbit ACSR,0 ; Interrupt-Mode |
||
16 | ACIS1 avrbit ACSR,1 |
||
17 | ifdef TCNT1L ; if Timer 1 present... |
||
18 | ACIC avrbit ACSR,2 ; ...use Comparator as Capture Signal for Timer 1? |
||
19 | endif |
||
20 | ACIE avrbit ACSR,3 ; Interrupt Enable |
||
21 | ACI avrbit ACSR,4 ; Interrupt Flag |
||
22 | ACO avrbit ACSR,5 ; Analog Comparator Output |
||
23 | ACD avrbit ACSR,7 ; Disable |
||
24 | |||
25 | restore ; re-enable listing |
||
26 | |||
27 | endif ; __ac90inc |