Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1186 | savelij | 1 | ifndef __reg72251inc ; avoid multiple inclusion |
2 | __reg72251inc equ 1 |
||
3 | |||
4 | save |
||
5 | listing off ; no listing over this file |
||
6 | |||
7 | ;**************************************************************************** |
||
8 | ;* * |
||
9 | ;* AS 1.42 - File REG72251.INC * |
||
10 | ;* * |
||
11 | ;* contains SFR and Bit Definitions for ST72251 * |
||
12 | ;* * |
||
13 | ;* Source: ST72251 Data Sheet, Rev. 1.7, September 1999 * |
||
14 | ;* * |
||
15 | ;**************************************************************************** |
||
16 | |||
17 | ;---------------------------------------------------------------------------- |
||
18 | ; Memory Addresses |
||
19 | |||
20 | RAMSTART label $0080 ; start address internal RAM |
||
21 | RAMEND label $017f ; end " " " |
||
22 | |||
23 | ;---------------------------------------------------------------------------- |
||
24 | ; Interrupt Vectors |
||
25 | |||
26 | I2C_vect label $ffe4 ; I2C Interrupt Vector |
||
27 | TIMB_vect label $ffee ; TIMER B Interrupt Vector |
||
28 | TIMA_vect label $fff2 ; TIMER A Interrupt Vector |
||
29 | SPI_vect label $fff4 ; SPI Interrupt Vector |
||
30 | EI1_vect label $fff8 ; External Interrupt Vector EI1 |
||
31 | EI0_vect label $fffa ; External Interrupt Vector EI0 |
||
32 | TRAP_vect label $fffc ; TRAP (software) Interrupt Vector |
||
33 | RESET_vect label $fffe ; RESET Vector |
||
34 | |||
35 | ;---------------------------------------------------------------------------- |
||
36 | ; GPIO |
||
37 | |||
38 | include "gpio.inc" |
||
39 | __defgpio "PC",$0000 |
||
40 | __defgpio "PB",$0004 |
||
41 | __defgpio "PA",$0008 |
||
42 | |||
43 | ;---------------------------------------------------------------------------- |
||
44 | ; Miscellaneous |
||
45 | |||
46 | MISCR label $0020 ; Miscellaneous Register |
||
47 | PEI3 bit MISCR,7 ; EI1 Interrupt Polarity |
||
48 | PEI2 bit MISCR,6 |
||
49 | MCO bit MISCR,5 ; Main Clock Out |
||
50 | PEI1 bit MISCR,4 ; EI0 Interrupt Polarity |
||
51 | PEI0 bit MISCR,3 |
||
52 | SMS bit MISCR,0 ; Slow Mode Select |
||
53 | |||
54 | ;---------------------------------------------------------------------------- |
||
55 | ; SPI |
||
56 | |||
57 | include "spi.inc" |
||
58 | |||
59 | ;---------------------------------------------------------------------------- |
||
60 | ; Watchdog |
||
61 | |||
62 | WDGCR label $0024 ; Watchdog Control register |
||
63 | WDGA bit WDGCR,7 ; Activation bit |
||
64 | |||
65 | ;---------------------------------------------------------------------------- |
||
66 | ; I2C |
||
67 | |||
68 | include "i2c.inc" |
||
69 | __defi2c $0028 |
||
70 | |||
71 | ;---------------------------------------------------------------------------- |
||
72 | ; Timer A/B |
||
73 | |||
74 | include "timer.inc" |
||
75 | __deftimer "TA",$0030 |
||
76 | __deftimer "TB",$0040 |
||
77 | |||
78 | ;---------------------------------------------------------------------------- |
||
79 | ; Analog/Digital Converter |
||
80 | |||
81 | include "adc8.inc" |
||
82 | |||
83 | restore |
||
84 | endif ; __reg72251inc |