-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathnrf24lu1_sfr.S
257 lines (252 loc) · 6.69 KB
/
nrf24lu1_sfr.S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
.module sfr
; values
_RWD = 0x00
_WWD = 0x08
_RGTIMER = 0x01
_WGTIMER = 0x09
_RRTCLAT = 0x02
_WRTCLAT = 0x0A
_RRTC = 0x03
_WRTCDIS = 0x0B
_RWSTA0 = 0x04
_WWCON0 = 0x0C
_RWSTA1 = 0x05
_WWCON1 = 0x0D
.area PSEG (PAG,XDATA)
;--------------------------------------------------------
; special function registers
;--------------------------------------------------------
.area RSEG (ABS,DATA)
.org 0x0000
ar0 = 0x0000
ar1 = 0x0001
ar2 = 0x0002
ar3 = 0x0003
ar4 = 0x0004
ar5 = 0x0005
ar6 = 0x0006
ar7 = 0x0007
_P0 = 0x0080
_SP = 0x0081
_DPL = 0x0082
_DPH = 0x0083
_DPL1 = 0x0084
_DPH1 = 0x0085
_RESERVED_SFR_0 = 0x0086
_PCON = 0x0087
_TCON = 0x0088
_TMOD = 0x0089
_TL0 = 0x008a
_TL1 = 0x008b
_TH0 = 0x008c
_TH1 = 0x008d
_CKCON = 0x008e
_RESERVED_SFR_1 = 0x008f
_RFCON = 0x0090
_RESERVED_SFR_2 = 0x0091
_DPS = 0x0092
_RESERVED_SFR_3 = 0x0093
_P0DIR = 0x0094
_P0ALT = 0x0095
_RESERVED_SFR_4 = 0x0096
_RESERVED_SFR_5 = 0x0097
_S0CON = 0x0098
_S0BUF = 0x0099
_RESERVED_SFR_6 = 0x009a
_RESERVED_SFR_7 = 0x009b
_RESERVED_SFR_8 = 0x009c
_RESERVED_SFR_9 = 0x009d
_RESERVED_SFR_10 = 0x009e
_RESERVED_SFR_11 = 0x009f
_USBCON = 0x00a0
_RESERVED_SFR_12 = 0x00a1
_RESERVED_SFR_13 = 0x00a2
_CLKCTL = 0x00a3
_PWRDWN = 0x00a4
_WUCONF = 0x00a5
_INTEXP = 0x00a6
_RESERVED_SFR_14 = 0x00a7
_IEN0 = 0x00a8
_IP0 = 0x00a9
_S0RELL = 0x00aa
_REGXH = 0x00ab
_REGXL = 0x00ac
_REGXC = 0x00ad
_RESERVED_SFR_15 = 0x00ae
_RESERVED_SFR_16 = 0x00af
_RESERVED_SFR_17 = 0x00b0
_RSTRES = 0x00b1
_SMDAT = 0x00b2
_SMCTL = 0x00b3
_RESERVED_SFR_18 = 0x00b4
_TICKDV = 0x00b5
_RESERVED_SFR_19 = 0x00b6
_RESERVED_SFR_20 = 0x00b7
_IEN1 = 0x00b8
_IP1 = 0x00b9
_S0RELH = 0x00ba
_RESERVED_SFR_21 = 0x00bb
_SSCONF = 0x00bc
_SSDATA = 0x00bd
_SSSTAT = 0x00be
_RESERVED_SFR_22 = 0x00bf
_IRCON = 0x00c0
_CCEN = 0x00c1
_CCL1 = 0x00c2
_CCH1 = 0x00c3
_CCL2 = 0x00c4
_CCH2 = 0x00c5
_CCL3 = 0x00c6
_CCH3 = 0x00c7
_T2CON = 0x00c8
_P0EXP = 0x00c9
_CRCL = 0x00ca
_CRCH = 0x00cb
_TL2 = 0x00cc
_TH2 = 0x00cd
_RESERVED_SFR_23 = 0x00ce
_RESERVED_SFR_24 = 0x00cf
_PSW = 0x00d0
_RESERVED_SFR_25 = 0x00d1
_RESERVED_SFR_26 = 0x00d2
_RESERVED_SFR_27 = 0x00d3
_RESERVED_SFR_28 = 0x00d4
_RESERVED_SFR_29 = 0x00d5
_RESERVED_SFR_30 = 0x00d6
_RESERVED_SFR_31 = 0x00d7
_WDCON = 0x00d8
_USBSLP = 0x00d9
_RESERVED_SFR_32 = 0x00da
_RESERVED_SFR_33 = 0x00db
_RESERVED_SFR_34 = 0x00dc
_RESERVED_SFR_35 = 0x00dd
_RESERVED_SFR_36 = 0x00de
_RESERVED_SFR_37 = 0x00df
_ACC = 0x00e0
_RESERVED_SFR_38 = 0x00e1
_RESERVED_SFR_39 = 0x00e2
_RESERVED_SFR_40 = 0x00e3
_RESERVED_SFR_41 = 0x00e4
_RFDAT = 0x00e5
_RFCTL = 0x00e6
_RESERVED_SFR_42 = 0x00e7
_AESCS = 0x00e8
_MD0 = 0x00e9
_MD1 = 0x00ea
_MD2 = 0x00eb
_MD3 = 0x00ec
_MD4 = 0x00ed
_MD5 = 0x00ee
_ARCON = 0x00ef
_B = 0x00f0
_AESKIN = 0x00f1
_AESIV = 0x00f2
_AESD = 0x00f3
_RESERVED_SFR_43 = 0x00f4
_AESIA1 = 0x00f5
_AESIA2 = 0x00f6
_RESERVED_SFR_44 = 0x00f7
_FSR = 0x00f8
_FPCR = 0x00f9
_FCR = 0x00fa
_RESERVED_SFR_45 = 0x00fb
_RESERVED_SFR_46 = 0x00fc
_RESERVED_SFR_47 = 0x00fd
_RESERVED_SFR_48 = 0x00fe
_RESERVED_SFR_49 = 0x00ff
_CC1 = 0xc3c2
_CC2 = 0xc5c4
_CC3 = 0xc7c6
_CRC = 0xcbca
_T2 = 0xcdcc
;--------------------------------------------------------
; special function bits
;--------------------------------------------------------
.area RSEG (ABS,DATA)
.org 0x0000
_MCDIS = 0x00ff
_STP = 0x00fe
_WEN = 0x00fd
_RDYN = 0x00fc
_INFEN = 0x00fb
_RDIS = 0x00fa
_RDEND = 0x00f9
_WPEN = 0x00f8
_CY = 0x00d7
_AC = 0x00d6
_F0 = 0x00d5
_RS1 = 0x00d4
_RS0 = 0x00d3
_OV = 0x00d2
_F1 = 0x00d1
_P = 0x00d0
_TF1 = 0x008f
_TR1 = 0x008e
_TF0 = 0x008d
_TR0 = 0x008c
_IE1 = 0x008b
_IT1 = 0x008a
_IE0 = 0x0089
_IT0 = 0x0088
_SM0 = 0x009f
_SM1 = 0x009e
_SM20 = 0x009d
_REN0 = 0x009c
_TB80 = 0x009b
_RB80 = 0x009a
_TI0 = 0x0099
_RI0 = 0x0098
_T2PS = 0x00cf
_I3FR = 0x00ce
_I2FR = 0x00cd
_T2R1 = 0x00cc
_T2R0 = 0x00cb
_T2CM = 0x00ca
_T2I1 = 0x00c9
_T2I0 = 0x00c8
_EA = 0x00af
_ET2 = 0x00ad
_ES0 = 0x00ac
_ET1 = 0x00ab
_EX1 = 0x00aa
_ET0 = 0x00a9
_EX0 = 0x00a8
_EXEN2 = 0x00bf
_WUIRQ = 0x00bd
_USBIRQEN = 0x00bc
_USBWUEN = 0x00bb
_SPI = 0x00ba
_RF = 0x00b9
_RFSPI = 0x00b8
_EXF2 = 0x00c7
_TF2 = 0x00c6
_WUF = 0x00c5
_USBIRQ = 0x00c4
_USBWU = 0x00c3
_SPIF = 0x00c2
_RFIRQ = 0x00c1
_RFSPIF = 0x00c0
_SWRST = 0x00a7
_WU = 0x00a6
_SUSPEND = 0x00a5
_IV4 = 0x00a4
_IV3 = 0x00a3
_IV2 = 0x00a2
_IV1 = 0x00a1
_IV0 = 0x00a0
_P00 = 0x0080
_P01 = 0x0081
_P02 = 0x0082
_P03 = 0x0083
_MCSN = 0x0083
_SCSN = 0x0083
_P04 = 0x0084
_P05 = 0x0085
_RFCE = 0x0090
_RFCSN = 0x0091
_RFCKEN = 0x0092
_BD = 0x00df
_GO = 0x00e8
_DECR = 0x00e9
; info page addresses
_rdismb = 0x0023