Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1186 | savelij | 1 | ifndef __regfox2inc ; avoid multiple inclusion |
2 | __regfox2inc equ 1 |
||
3 | |||
4 | save |
||
5 | listing off ; no listing over this file |
||
6 | |||
7 | ;**************************************************************************** |
||
8 | ;* * |
||
9 | ;* AS 1.42 - File REGFOX2.INC * |
||
10 | ;* * |
||
11 | ;* contains SFR and Bit Definitions for ST7FOXx2 * |
||
12 | ;* * |
||
13 | ;* Source: ST7FOXF1/K1/K2 Data Sheet, Rev. 4, February 2008 * |
||
14 | ;* * |
||
15 | ;**************************************************************************** |
||
16 | |||
17 | include "regfox.inc" |
||
18 | |||
19 | ;---------------------------------------------------------------------------- |
||
20 | ; Interrupt Vectors |
||
21 | |||
22 | LT_vect label $ffe0 ; Lite Timer Interrupt |
||
23 | TIMA_vect label $ffe2 ; 16-bit Timer Interrupt |
||
24 | SPI_vect label $ffe4 ; SPI Interrupt |
||
25 | I2C_vect label $ffe6 ; I2C Interrupt |
||
26 | AT_OF2_vect label $ffe8 ; AT Timer Overflow 2 Interrupt |
||
27 | AT_OF1_vect label $ffea ; AT Timer Overflow 1 Interrupt |
||
28 | AT_OC_vect label $ffec ; AT Timer Output Compare Interrupt, shared with... |
||
29 | AT_IC_vect label $ffec ; AT Timer Input Capture Interrupt |
||
30 | EI2_vect label $ffee ; External Interrupt Vector EI2 |
||
31 | EI1_vect label $fff0 ; External Interrupt Vector EI1 |
||
32 | EI0_vect label $fff2 ; External Interrupt Vector EI0 |
||
33 | AWU_vect label $fffa ; Auto Wakeup Interrupt Vector |
||
34 | TRAP_vect label $fffc ; TRAP (software) Interrupt Vector |
||
35 | RESET_vect label $fffe ; RESET Vector |
||
36 | |||
37 | ;---------------------------------------------------------------------------- |
||
38 | ; Auto-Reload Timer |
||
39 | |||
40 | BR1SEL bit BREAKCR1,7 ; Break 1 Input Selection |
||
41 | BR1EDGE bit BREAKCR1,6 ; Break 1 Input Edge Selection Bit |
||
42 | BA1 bit BREAKCR1,5 ; Break 1 Active Bit |
||
43 | BP1EN bit BREAKCR1,4 ; Break 1 Pin Enable Bit |
||
44 | BREAKCR2 label $002c ; Break Control Register 2 |
||
45 | BR2SEL bit BREAKCR2,7 ; Break 2 Input Selection |
||
46 | BR2EDGE bit BREAKCR2,6 ; Break 2 Input Edge Selection Bit |
||
47 | BA2 bit BREAKCR2,5 ; Break 2 Active Bit |
||
48 | BP2EN bit BREAKCR2,4 ; Break 2 Pin Enable Bit |
||
49 | SWBR2 bit BREAKCR2,1 ; Switch Break For Counter 2 Bit |
||
50 | SWBR1 bit BREAKCR2,0 ; Switch Break For Counter 2 Bit |
||
51 | |||
52 | ;---------------------------------------------------------------------------- |
||
53 | ; Timer A |
||
54 | |||
55 | include "timer.inc" |
||
56 | __deftimer "TA",$0054 |
||
57 | |||
58 | ;---------------------------------------------------------------------------- |
||
59 | ; SPI |
||
60 | |||
61 | include "spi2.inc" |
||
62 | __defspi $0070 |
||
63 | |||
64 | restore |
||
65 | endif ; __regfox2inc |