Digi NS9215 инструкция обслуживания

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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517

Идти на страницу of

Хорошее руководство по эксплуатации

Законодательство обязывает продавца передать покупателю, вместе с товаром, руководство по эксплуатации Digi NS9215. Отсутствие инструкции либо неправильная информация, переданная потребителю, составляют основание для рекламации в связи с несоответствием устройства с договором. В законодательстве допускается предоставлении руководства в другой, чем бумажная форме, что, в последнее время, часто используется, предоставляя графическую или электронную форму инструкции Digi NS9215 или обучающее видео для пользователей. Условием остается четкая и понятная форма.

Что такое руководство?

Слово происходит от латинского "instructio", тоесть привести в порядок. Следовательно в инструкции Digi NS9215 можно найти описание этапов поведения. Цель инструкции заключается в облегчении запуска, использования оборудования либо выполнения определенной деятельности. Инструкция является набором информации о предмете/услуге, подсказкой.

К сожалению немного пользователей находит время для чтения инструкций Digi NS9215, и хорошая инструкция позволяет не только узнать ряд дополнительных функций приобретенного устройства, но и позволяет избежать возникновения большинства поломок.

Из чего должно состоять идеальное руководство по эксплуатации?

Прежде всего в инструкции Digi NS9215 должна находится:
- информация относительно технических данных устройства Digi NS9215
- название производителя и год производства оборудования Digi NS9215
- правила обслуживания, настройки и ухода за оборудованием Digi NS9215
- знаки безопасности и сертификаты, подтверждающие соответствие стандартам

Почему мы не читаем инструкций?

Как правило из-за нехватки времени и уверенности в отдельных функциональностях приобретенных устройств. К сожалению само подсоединение и запуск Digi NS9215 это слишком мало. Инструкция заключает ряд отдельных указаний, касающихся функциональности, принципов безопасности, способов ухода (даже то, какие средства стоит использовать), возможных поломок Digi NS9215 и способов решения проблем, возникающих во время использования. И наконец то, в инструкции можно найти адресные данные сайта Digi, в случае отсутствия эффективности предлагаемых решений. Сейчас очень большой популярностью пользуются инструкции в форме интересных анимаций или видео материалов, которое лучше, чем брошюра воспринимаются пользователем. Такой вид инструкции позволяет пользователю просмотреть весь фильм, не пропуская спецификацию и сложные технические описания Digi NS9215, как это часто бывает в случае бумажной версии.

Почему стоит читать инструкции?

Прежде всего здесь мы найдем ответы касательно конструкции, возможностей устройства Digi NS9215, использования отдельных аксессуаров и ряд информации, позволяющей вполне использовать все функции и упрощения.

После удачной покупки оборудования/устройства стоит посвятить несколько минут для ознакомления с каждой частью инструкции Digi NS9215. Сейчас их старательно готовят или переводят, чтобы они были не только понятными для пользователя, но и чтобы выполняли свою основную информационно-поддерживающую функцию.

Содержание руководства

  • Страница 1

    NS9215 Hardware Reference 90000847_C R elease date: 10 April 2008[...]

  • Страница 2

    ©2008 Digi International Inc. P rinted in the United States of America. All rights reserved. Digi, Digi International, the Digi logo, a Digi Inte rnational Company , Connec tCore, NET+, NET+O S an d NET+W orks are trademarks or registered trademarks of Digi International, Inc. in the United States and other countries worldwide. All other trademark[...]

  • Страница 3

    [...]

  • Страница 4

    [...]

  • Страница 5

    5 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 1: Pinout (265) ..................................................... 2 7 The Legend ..................................................... ....... ........ ....... ... 27 Memory bus interface .[...]

  • Страница 6

    6 Hardware Reference NS9215 GPIO Configuration Register #15 ......... ..................................... ....... 63 GPIO Configuration Register #16 ......... ..................................... ....... 64 GPIO Configuration Register #17 ......... ..................................... ....... 64 GPIO Configuration Register #18 ......... .......[...]

  • Страница 7

    . . . . . www .digiembedded.com 7 ICache and DCache beha vior .................. ..................................... ... 90 R2: Translation Table Base register ......................... ................................ 91 Register format ........................... ..................................... .......... 91 R3:Domain Access Control regis[...]

  • Страница 8

    8 Hardware Reference NS9215 Access instructions ........................................ ............................ 103 Register format ............................. ..................................... ......103 Performing a fast context switch ....................... ............................ 103 Context ID register ........................[...]

  • Страница 9

    . . . . . www .digiembedded.com 9 MMU faults and CPU aborts ................................................. ................ 119 Alignment fault checking ........ ............................. ....................... 119 Fault Address and Fault Status registers .... ..................................... . 1 19 Priority encoding table ............[...]

  • Страница 10

    10 Hardware Reference NS9215 High speed bus system ............................. ....... ....... ........ ....... ...... 138 High-speed bus arbiters ............................ ................................... 138 How the bus arbiter works ................ ..................................... ......138 Ownership ...................... ........[...]

  • Страница 11

    . . . . . www .digiembedded.com 11 AHB Error Detect Status 2 .............. ............................. ....................... 160 AHB Error Monitoring Configur ation register ..................... ....................... 161 Timer Master Control register ............................... .............................. 162 Timer 0–4 Control regi[...]

  • Страница 12

    12 Hardware Reference NS9215 Low-power SDRAM partial array refresh ..................................... ......204 Memory map .......................... .................................... ..................... 205 Power-on reset memory map ................................... ..................... 205 Chip select 1 memory configuration ...........[...]

  • Страница 13

    . . . . . www .digiembedded.com 13 222 Memory banks constructed from 16- or 32-bit memory devices ................ 223 Dynamic memory controller ................... ..................................... ........ 225 Write protection .......... ..................................... ....................... 225 Access sequencing and memo ry width ....[...]

  • Страница 14

    14 Hardware Reference NS9215 Static Memory Write Delay 0–3 registers ...................... ............................ 257 StaticMemory Turn Round Dela y 0–3 registers ............... ............................ 258 Chapter 6: Ethernet Communication Module ...................... 2 6 1 Features ......... ..................................... [...]

  • Страница 15

    . . . . . www .digiembedded.com 15 Writing to other registers ............... ..................................... ........ 276 Ethernet Control and Status registers .............. ..................................... . 2 77 Register address filter .... ..................................... ....................... 277 Ethernet General Control Reg[...]

  • Страница 16

    16 Hardware Reference NS9215 Transmit statistics counters address map ............................ ............. 307 Transmit byte counter (A060 06E0 ) ................................................. 307 Transmit packet counter (A060 06E4) ................................. ............. 308 Transmit multicast packet counter (A060 06E8) ..........[...]

  • Страница 17

    . . . . . www .digiembedded.com 17 Multicast Low Address Filter Register #6 ......................................... . 3 28 Multicast Low Address Filter Register #7 ......................................... . 3 28 Multicast High Address Filter Register #0 ......................................... 328 Multicast High Address Filter Register #1 .....[...]

  • Страница 18

    18 Hardware Reference NS9215 Buffer length ... ....... ........ ....... ....... ........ ....... ....... ........ ....... ...... 340 Destination address [pointer] ...... ....... ........ ....... ....... ........ ....... ...... 340 Status .................................. ..................................... ............. 341 Wrap (W) bit ........[...]

  • Страница 19

    . . . . . www .digiembedded.com 19 Last (L) bit ....................................... ..................................... . 3 58 Full (F) bit ........... ............................. ..................................... . 3 58 Decryption ................. ............................. ..................................... . 359 ECB processing[...]

  • Страница 20

    20 Hardware Reference NS9215 [Module] DMA RX Contro l ........... .................................... ..................... 375 [Module] DMA RX Buffer Descri ptor Pointer ........... ............................. ......376 [Module] RX Interrupt Configuration register ....................... ..................... 377 [Module] Direct Mode RX St atus[...]

  • Страница 21

    . . . . . www .digiembedded.com 21 UART FIFO Control register ............. ............................. ....................... 409 UART Line Control register ................................... .............................. 409 UART Modem Control register ................ ..................................... ........ 411 UART Line Status regis[...]

  • Страница 22

    22 Hardware Reference NS9215 SPI module structure . .............................. ................................... 434 SPI controller .......... ..................................... ............................. ......434 Simple parallel/serial data conversion ................................ ............. 434 Full duplex operation ...........[...]

  • Страница 23

    . . . . . www .digiembedded.com 23 Register bit assignment .. ..................................... ....................... 451 Master Address register ........................ ....... ........ ....... ....... ........ ....... . 452 Register ...... ..................................... ..................................... . 452 Register bit assign[...]

  • Страница 24

    24 Hardware Reference NS9215 ADC Configuration register ....................... ........ ....... ....... ........ ............. 475 ADC Clock Configuration register . .................................... ..................... 477 ADC Output Registers 0-7 ................................ ....... ....... ........ ....... ...... 477 Chapter 16: Timing[...]

  • Страница 25

    . . . . . www .digiembedded.com 25 Clock timing ............... ....... ........ ....... ....... ........ ....... ....... ........ ....... . 511 System PLL reference clock timing................... .............................. 511 Chapter 17: Packaging ..................................................... 5 1 3 Package...... .....................[...]

  • Страница 26

    26 Hardware Reference NS9215[...]

  • Страница 27

    27 Pinout (265) CHAPTER 1 T he NS9215 offers a connection to a 10/100 Ethernet network, as well as a glueless connection to SDRAM, PC 100 DI MM, flash, EEPROM, and SRAM memories, and an external bus expansion module. It includes four mu lti-function serial ports, one I2C channel, 12-bit Analog to Digital converter , battery backed real time clock a[...]

  • Страница 28

    PINOUT (265) Memory bus interface 28 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory bus interface Pin Signal U/D I/O OD Description B9 clk_out[0] O 4 SDRAM bus clock A15 clk_out[1] O 4 SDRAM bus clock[...]

  • Страница 29

    . . . . . PINOUT (265) Memory bus interface www .digiembedded.com 29 M1 addr[0] U I/O 4 Address bus, PLL NR[0] L1 data[31] U I/O 4 Data bus K2 data[30] U I/O 4 Data bus K1 data[29] U I/O 4 Data bus J1 data[28] U I/O 4 Data bus J2 data[27] U I/O 4 Data bus H1 data[26] U I/O 4 Data bus G1 data[25] U I/O 4 Data bus J3 data[24] U I/O 4 Data bus H2 data[...]

  • Страница 30

    PINOUT (265) Ethernet interface MAC 30 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ethernet interface MAC A10 data_mask[3] O 4 byte_enable data[31:24} B11 data_mask[2] O 4 Byte enable data[23:16] B10 data[...]

  • Страница 31

    . . . . . PINOUT (265) General purpose I/O (GPIO) www .digiembedded.com 31 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General purpose I/O (GPIO)  Some signals are multiplexed to two or mo re GPIOs, to maximize the number of po[...]

  • Страница 32

    PINOUT (265) General purpose I/O (GPIO) 32 Hardware Reference NS9215 Note: All GPIOs except 12 and 16 to 31 are rese t to mode 3, input. GPIO 12 is reset to mode 2, reset_done. GPIO 16 to 3 1 are reset to mode 0, ext ernal mem ory data 15:0. Pin Signal U/D I/O OD Description K15 gpio[0] U I/O 2 0 DCD UAR T A 1 Ext DMA Done Ch 0 2 PIC_0_GEN_IO[0](I/[...]

  • Страница 33

    . . . . . PINOUT (265) General purpose I/O (GPIO) www .digiembedded.com 33 G17 gpio[8] U I/O 2 0 DCD / TX C UART C 1 Ext DMA Done Ch 1 2 Ext Time r Event Out Ch 8 3 gpio[8] 4 SPI EN (dup) G15 gpio[9] U I/O 4 0 CT S UART C 1I 2 C SCL 2 Ext Int Ch 0 (dup) 3 gpio[9] 4 PIC_DBG_DATA_IN(I) G16 gpio[10] U I/O 2 0 DSR UA RT C 1 QDC 1 2 Ext Int Ch 1 (dup) 3[...]

  • Страница 34

    PINOUT (265) General purpose I/O (GPIO) 34 Hardware Reference NS9215 D3 gpio[16] U I/O 4 0 data[0] 1 DCD UART B 2 Ext Int Ch 0 (dup) 3 gpio[16] B2 gpio[17] U I/O 4 0 data[1] 1C T S U A R T B 2 Ext Int Ch 1 (dup) 3 gpio[17] C2 gpio[18] U I/O 4 0 data[2] 1D S R U A R T B 2 Ext Int Ch 2 (dup) 3 gpio[18] D4 gpio[19] U I/O 4 0 data[3] 1R X D U A R T B 2[...]

  • Страница 35

    . . . . . PINOUT (265) General purpose I/O (GPIO) www .digiembedded.com 35 F4 gpio[26] U I/O 4 0 data[10] 1D S R U A R T D 2 PIC_1_GEN_IO[0](I/O) 3 gpio[26] F3 gpio[27] U I/O 4 0 data[11] 1R X D U A R T D 2 PIC_1_GEN_IO[1](I/O) 3 gpio[27] G5 gpio[28] U I/O 4 0 data[12] 1 RI UART D 2 PIC_1_GEN_IO[2](I/O) 3 gpio[28] G4 gpio[29] U I/O 4 0 data[13] 1 R[...]

  • Страница 36

    PINOUT (265) General purpose I/O (GPIO) 36 Hardware Reference NS9215 D17 gpio[36] U I/O 2 0 Ethernet MII RX DV 1 PIC_0_GEN_IO[4](I/O)(dup) 2 Reserve d 3 gpio[36] C17 gpio[37] U I/O 2 0 Ethernet MII R X ER 1 PIC_0_GEN_IO[5](I/O)(dup) 2 Reserve d 3 gpio[37] D13 gpio[38] U I/O 2 0 Ethernet MII RX D[0] 1 PIC_0_GEN_IO[6](I/O)(dup) 2 Reserve d 3 gpio[38][...]

  • Страница 37

    . . . . . PINOUT (265) General purpose I/O (GPIO) www .digiembedded.com 37 D12 gpio[46] U I/O 2 0 Ethernet M II TXD[2] 1 PIC_1_GEN_IO[6](I/O)(dup) 2 Reserved 3 gpio[46] A16 gpio[47] U I/O 2 0 Ethernet M II TXD[3] 1 PIC_1_GEN_IO[7](I/O)(dup) 2 Reserved 3 gpio[47] C14 gpio[48] U I/O 2 0 Ethernet MI I COL 1 Reserved 2 Reserved 3 gpio[48] C13 gpio[49] [...]

  • Страница 38

    PINOUT (265) General purpose I/O (GPIO) 38 Hardware Reference NS9215 J4 gpio [56] U I/O 2 0 RTS/RS485 Control UART B (dup) 1 PIC_0_BUS_1[13](I/O) 2 PIC_1_BUS_1[13](I/O) 3 gpio[56] K3 gpio[ 57] U I /O 2 0 TXC/DTR UART B (dup) 1 PIC_0_BUS_1[14](I/O) 2 PIC_1_BUS_1[14](I/O) 3 gpio[57] K4 gpio[5 8] U I/ O 2 0 TXD UART B (dup) 1 PIC_0_BUS_1[15](I/O) 2 PI[...]

  • Страница 39

    . . . . . PINOUT (265) General purpose I/O (GPIO) www .digiembedded.com 39 N8 gpi o[66] U I/O 2 0 TXD UART D (dup) 1 PIC_0_BUS_1[23](I/O) 2 PIC_1_BUS_1[23](I/O) 3 gpio[66] P9 gpio[67] U I/O 2 0 PIC_0 _CLK(I) 1 PIC_0_CLK(O) 2 Ext Int Ch 3 (dup) 3 gpio[67] R10 g pio[ 68] U I/ O 2 0 PIC_0_GEN_IO[0] (I/O)(dup) 1 PIC_1_GEN_IO[0](I/O) 2 PIC_1_CAN_RXD(I)([...]

  • Страница 40

    PINOUT (265) General purpose I/O (GPIO) 40 Hardware Reference NS9215 T15 gpio [76] U I/O 2 0 PIC_0_CTL_IO[0](I/O) 1 PIC_1_CTL_IO[0](I/O) 2 Ext Timer Event in Ch 2 3 gpio[76] T16 gpio [77] U I/O 2 0 PIC_0_CTL_IO[1](I/O) 1 PIC_1_CTL_IO[1](I/O) 2 Ext Timer Event in Ch 3 3 gpio[77] R14 gp io[78] U I.O 2 0 PIC_0_CTL_IO[2](I /O) 1 PIC_1_CTL_IO[2](I/O) 2 [...]

  • Страница 41

    . . . . . PINOUT (265) General purpose I/O (GPIO) www .digiembedded.com 41 K13 g pio[ 86] U I/ O 2 0 PIC_0_BUS_0[6 ](I/O) 1 PIC_1_BUS_0[6](I/O) 2 Ext Time r Event Out Ch 2 3 gpio[86] K16 g pio[ 87] U I/ O 2 0 PIC_0_BUS_0[7 ](I/O) 1 PIC_1_BUS_0[7](I/O) 2 Ext Time r Event Out Ch 3 3 gpio[87] K14 g pio[ 88] U I/ O 2 0 PIC_0_BUS_0[8 ](I/O) 1 PIC_1_BUS_[...]

  • Страница 42

    PINOUT (265) General purpose I/O (GPIO) 42 Hardware Reference NS9215 C16 gp io[96] U I/O 2 0 PIC_0_BUS_1[0](I/O) 1 PIC_1_BUS_1[0](I/O) 2 PIC_0_CAN_RXD(I)(dup) 3 gpio[96] B16 gp io[97] U I/O 2 0 PIC_0_BUS_1[1](I/O) 1 PIC_1_BUS_1[1](I/O) 2 PIC_0_CAN_TXD(O)(dup) 3 gpio97 D15 gpio [98] U I/O 2 0 PIC_0_BUS_1[2](I/O) 1 PIC_1_BUS_1[2](I/O) 2 PIC_1_CAN_RXD[...]

  • Страница 43

    . . . . . PINOUT (265) System clock www .digiembedded.com 43 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System clock T14 gpio_a[2] U I/O 4 0 addr[2 6] 1 Reserved 1 cs0_we_n 2 Ext Int Ch 2 (dup) 3 gpio_a[2], SPI boot P12 gpio_a[3][...]

  • Страница 44

    PINOUT (265) System clock 44 Hardware Reference NS9215 System clock drawing[...]

  • Страница 45

    . . . . . PINOUT (265) System mode www .digiembedded.com 45 R TC clock and battery backup drawing Note: If R TC battery backup is not used, th e following connection changes c an be made. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 46

    PINOUT (265) System mode 46 Hardware Reference NS9215 sys_mode_2 sys_mode_1 sys_mode_0 Description 0 0 0 manufacturing test 0 0 1 manufacturing test 0 1 0 manufacturing test 0 1 1 normal operation, boundary scan enabled, POR disabled 1 0 0 normal operation, boundary scan enabled, POR enabled 1 0 1 board test mode, all outputs tristated 1 1 0 normal[...]

  • Страница 47

    . . . . . PINOUT (265) System r eset www .digiembedded.com 47 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System reset Pin Signal U/D I/O OD Description E12 reset _n U I System rese t A5 reset_out_n O 2 System reset output A13 res[...]

  • Страница 48

    PINOUT (265) JT AG T est 48 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . JTAG Test Pin Signal U/D I/O OD Description N14 tdi U I Test data in N15 tdo O 2 Test da ta out T17 tms U I Test mode select R16 trs[...]

  • Страница 49

    . . . . . PINOUT (265) ADC www .digiembedded.com 49 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ADC If the ADC feature is not used , the inpu ts must be terminated as shown be low: Pin Signal U/D I/O OD Description P4 agnd_ref_adc[...]

  • Страница 50

    PINOUT (265) POR and battery-backed logic 50 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . POR and battery-backed logic The POR will generate keep reset_out_n low between 75ms and 300ms after 3.3V reaches t[...]

  • Страница 51

    . . . . . PINOUT (265) Power and gr ound www .digiembedded.com 51 If the R TC feature is not used, the inputs must be terminated as shown below . If the R TC feature is used, see RTC cloc k and battery backup drawing on page 45. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 52

    PINOUT (265) Power and gr ound 52 Hardware Reference NS9215[...]

  • Страница 53

    53 I/O Control Module CHAPTER 2 T he NS9215 ASIC contains 1 08 pins that are designated as general purpose I/O (GPIO).  The first 16 GPIO can be configured to serve one of five functions.  The remaining GPIO can be conf igured to serve one of four functions. All signals set to a disabled peripheral are held in the in active state. The I/O con[...]

  • Страница 54

    I/O CONTROL MODULE Contr ol and Sta tus registers 54 Hardware Reference NS9215 A090_200C GPIO Configuration Register #3 R/W 0x18181810 A090_2010 GPIO Configuration Register #4 R/W 0x00000000 A090_2014 GPIO Configuration Register #5 R/W 0x00000000 A090_2018 GPIO Configuration Register #6 R/W 0x00000000 A090_201C GPIO Configuration Register #7 R/W 0x[...]

  • Страница 55

    . . . . . I/O CONTROL MODULE GPIO Configuration r egisters www .digiembedded.com 55 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . GPIO Configuration registers GPIO Configuration registers #0 thr ough #26 contain the configuration in[...]

  • Страница 56

    I/O CONTROL MODULE GPIO Configuration r egisters 56 Hardware Reference NS9215 GPIO Configuration Registe r #0 Address: A090_2000 GPIO Configuration Registe r #1 Address: A090_2004 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 20 19 1 8 17 16 30 GPI O3 GPI O2 GPI O1 GPI O0 Bit(s) Access Mnemonic Reset Description D31:24 R/W GPIO3 0x[...]

  • Страница 57

    . . . . . I/O CONTROL MODULE GPIO Configuration r egisters www .digiembedded.com 57 GPIO Configuration Register #2 Address: A090_2008 GPIO Configuration Register #3 Address: A090_200C 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 2 0 19 18 17 16 30 GPI O1 1 GPI O1 0 GPI O9 GP I O8 Bit(s) Access Mnemonic Reset Description D31:24 R/W[...]

  • Страница 58

    I/O CONTROL MODULE GPIO Configuration r egisters 58 Hardware Reference NS9215 GPIO Configuration Registe r #4 Address: A090_2010 GPIO Configuration Registe r #5 Address: A090_2014 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 2 2 21 20 19 18 17 16 30 GPI O1 9 GPI O1 8 GPI O1 7 GPI O1 6 Bit(s) Access Mnemonic Reset Description D31:24 R/W [...]

  • Страница 59

    . . . . . I/O CONTROL MODULE GPIO Configuration r egisters www .digiembedded.com 59 GPIO Configuration Register #6 Address: A090_2018 GPIO Configuration Register #7 Address: A090_201C 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30 GPI O2 7 GP I O2 6 GPI O2 5 GP I O 2 4 Bit(s) Access Mnemonic Reset Description D31:2[...]

  • Страница 60

    I/O CONTROL MODULE GPIO Configuration r egisters 60 Hardware Reference NS9215 GPIO Configuration Registe r #8 Address: A090_2020 GPIO Configuration Registe r #9 Address: A090_2024 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 2 3 22 21 20 19 18 17 16 30 G P IO 35 G P IO 34 GPI O3 3 GP I O3 2 Bit(s) Access Mnemonic Reset Description D31:24 R[...]

  • Страница 61

    . . . . . I/O CONTROL MODULE GPIO Configuration r egisters www .digiembedded.com 61 GPIO Configuration Register #10 Address: A090_2028 GPIO Configuration Register #1 1 Address: A090_202C 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30 G P IO 4 3 G P IO 42 GPI O4 1 GPI O4 0 Bit(s) Access Mnemonic Reset Description D3[...]

  • Страница 62

    I/O CONTROL MODULE GPIO Configuration r egisters 62 Hardware Reference NS9215 GPIO Configuration Registe r #12 Address: A090_2030 GPIO Configuration Registe r #13 Address: A090_2034 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30 GPI O5 1 GP I O5 0 GPI O4 9 GP I O4 8 Bit(s) Access Mnemonic Reset Description D31:24 R[...]

  • Страница 63

    . . . . . I/O CONTROL MODULE GPIO Configuration r egisters www .digiembedded.com 63 GPIO Configuration Register #14 Address: A090_2038 GPIO Configuration Register #15 Address: A090_203C 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30 G P IO 59 G P IO 58 GPI O5 7 GP I O5 6 Bit(s) Access Mnemonic Reset Description D31[...]

  • Страница 64

    I/O CONTROL MODULE GPIO Configuration r egisters 64 Hardware Reference NS9215 GPIO Configuration Registe r #16 Address: A090_2040 GPIO Configuration Registe r #17 Address: A090_2044 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 2 2 21 20 19 18 17 16 30 GPI O6 7 GP I O6 6 GPI O6 5 GP I O6 4 Bit(s) Access Mnemonic Reset Description D31:24 [...]

  • Страница 65

    . . . . . I/O CONTROL MODULE GPIO Configuration r egisters www .digiembedded.com 65 GPIO Configuration Register #18 Address: A090_2048 GPIO Configuration Register #19 Address: A090_204C 1 3 1 2 1 1 1 0 98765432 10 15 14 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30 G P IO 7 5 G P IO 74 GPI O7 3 GP I O7 2 Bit(s) Access Mnemonic Reset Description D[...]

  • Страница 66

    I/O CONTROL MODULE GPIO Configuration r egisters 66 Hardware Reference NS9215 GPIO Configuration Registe r #20 Address: A090_2050 GPIO Configuration Registe r #21 Address: A090_2054 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30 GPI O 8 3 GPI O 8 2 GPI O 8 1 GPI O 8 0 Bit(s) Access Mnemonic Reset Description D31:24[...]

  • Страница 67

    . . . . . I/O CONTROL MODULE GPIO Configuration r egisters www .digiembedded.com 67 GPIO Configuration Register #22 Address: A090_2058 GPIO Configuration Register #23 Address: A090_205C 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30 G P IO 9 1 G P IO 9 0 GPI O8 9 GP I O8 8 Bit(s) Access Mnemonic Reset Description D[...]

  • Страница 68

    I/O CONTROL MODULE GPIO Configuration r egisters 68 Hardware Reference NS9215 GPIO Configuration Registe r #24 Address: A090_2060 GPIO Configuration Registe r #25 Address : A090_2064 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30 G P IO 99 G P IO 9 8 GPI O9 7 GP I O9 6 Bit(s) Access Mnemonic Reset Description D31:2[...]

  • Страница 69

    . . . . . I/O CONTROL MODULE GPIO Configuration r egisters www .digiembedded.com 69 GPIO Configuration Register #26 Address: A090_2068 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30 GPI O_ A 3 GPI O_ A2 GPI O_ A 1 GP I O_ A0 Bit(s) Access Mnemonic Reset Description D31:24 R/W GPIO_A3 0x18 GPIO_A[3] configuration D2[...]

  • Страница 70

    I/O CONTROL MODULE GPIO Contr ol re gisters 70 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . GPIO Control registers GPIO Control R egisters #0 through #3 contain the con trol information for each of the 108[...]

  • Страница 71

    . . . . . I/O CONTROL MODULE GPIO Contr ol r egisters www .digiembedded.com 71 GPIO Control Register #1 Address: A090_2070 D25 R/W GPIO25 0 GPIO[25] con trol bit D26 R/W GPIO26 0 GPIO[26] con trol bit D27 R/W GPIO27 0 GPIO[27] con trol bit D28 R/W GPIO28 0 GPIO[28] con trol bit D29 R/W GPIO29 0 GPIO[29] con trol bit D30 R/W GPIO30 0 GPIO[30] con tr[...]

  • Страница 72

    I/O CONTROL MODULE GPIO Contr ol re gisters 72 Hardware Reference NS9215 GPIO Control Registe r #2 Address: A090_2074 D22 R/W GPIO54 0 GPIO[54] control bit D23 R/W GPIO55 0 GPIO[55] control bit D24 R/W GPIO56 0 GPIO[56] control bit D25 R/W GPIO57 0 GPIO[57] control bit D26 R/W GPIO58 0 GPIO[58] control bit D27 R/W GPIO59 0 GPIO[59] control bit D28 [...]

  • Страница 73

    . . . . . I/O CONTROL MODULE GPIO Contr ol r egisters www .digiembedded.com 73 GPIO Control Register #3 Address: A090_2078 D19 R/W GPIO83 0 GPIO[83] con trol bit D20 R/W GPIO84 0 GPIO[84] con trol bit D21 R/W GPIO85 0 GPIO[85] con trol bit D22 R/W GPIO86 0 GPIO[86] con trol bit D23 R/W GPIO87 0 GPIO[87] con trol bit D24 R/W GPIO88 0 GPIO[88] con tr[...]

  • Страница 74

    I/O CONTROL MODULE GPIO S tatus registers 74 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . GPIO Status registers GPIO Status R egisters #0 through #3 contain the status inf ormation for each of the 108 GPIO[...]

  • Страница 75

    . . . . . I/O CONTROL MODULE GPIO S tatus r egisters www .digiembedded.com 75 GPIO S tatus Register #2 Address: A090_2084 D26 R GPIO58 Undefined GPIO[58] status bit D27 R GPIO59 Undefined GPIO[59] status bit D28 R GPIO60 Undefined GPIO[60] status bit D29 R GPIO61 Undefined GPIO[61] status bit D30 R GPIO62 Undefined GPIO[62] status bit D31 R GPIO63 [...]

  • Страница 76

    I/O CONTROL MODULE Memory Bus Configuration r egister 76 Hardware Reference NS9215 GPIO S tatus Registe r #3 Address: A090_2088 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory Bus Configuration register The Memory Bus Configura[...]

  • Страница 77

    . . . . . I/O CONTROL MODULE Memory Bus Confi guration r egister www .digiembedded.com 77 Bit(s) Access Mnemonic Reset Description D02:00 R/W CS0 0x4 Controls which system memory chip select is routed to CS0 000 dy_cs_0 001 dy_cs_1 010 dy_cs_2 011 dy_cs_3 100 st_cs_0 (default) 101 st_cs_1 110 st_cs_2 111 st_cs_3 D05:03 R/W CS1 0x0 Controls which sy[...]

  • Страница 78

    I/O CONTROL MODULE Memory Bus Configuration r egister 78 Hardware Reference NS9215 D14:12 R/W CS4 0x6 Controls which sy stem memory chip select is routed to CS4 000 dy_cs_0 001 dy_cs_1 010 dy_cs_2 011 dy_cs_3 100 st_cs_0 101 st_cs_1 110 st_cs_2 (default) 111 st_cs_3 D17:15 R/W CS5 0x2 Controls which sy stem memory chip select is routed to CS5 000 d[...]

  • Страница 79

    . . . . . I/O CONTROL MODULE Memory Bus Confi guration r egister www .digiembedded.com 79 D25 R/W APUDIS 0x0 Address bus pullup control (Applicable only to ad dress associated with hardware strapping) 0 Enable pullup resistors 1 Disable pullup resistors Note: Bits 27:24 are output and controlled through GPIO D31:26 N/A Reserved N/A N/A Bit(s) Acces[...]

  • Страница 80

    I/O CONTROL MODULE Memory Bus Configuration r egister 80 Hardware Reference NS9215[...]

  • Страница 81

    81 W orking with the CPU CHAPTER 3 T his processor core is based on the ARM926EJ-S proces sor . The ARM926EJ-S processor belongs to the ARM9 family of general-purpose microprocessors. The ARM926EJ- S processo r is tar geted at mult i- tasking applications in which full memory management, high performance, low di e size, and low power are important.[...]

  • Страница 82

    W ORKING WITH THE CPU Instruction sets 82 Hardware Reference NS9215 Arm926EJ-S process block diagram This drawing shows the ma in bloc ks in the ARM926EJ-S processor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Instruction sets T[...]

  • Страница 83

    . . . . . W O RKING WITH THE CPU System contr ol pr oce ssor (CP15) r egisters www .digiembedded.com 83 Java inst ruction set In Java state, the processor core executes a majority of Java bytecodes naturally . Bytecodes are decoded in two states, compar ed to a single deco de stage when in ARM/Thumb mode. See “Jazelle(Java)” on page 104 for mor[...]

  • Страница 84

    W ORKING WITH THE CPU System contr ol pro cessor (CP15) r egisters 84 Hardware Reference NS9215 Figure 1: CP15 MRC and MCR bit pattern The mnemonics for these instructions are: MCR{cond} p15,opcode _1,Rd,CRn,CRm,opcode_2 MRC{cond} p15,opcode _1,Rd,CRn,CRm,opcode_2 If you try to read from a write-only regist er or write to a read-only register , you[...]

  • Страница 85

    . . . . . W O RKING WITH THE CPU System contr ol pr oce ssor (CP15) r egisters www .digiembedded.com 85 Note: In all cases, reading from or writing any data values to any CP15 registers, including those fields specified as UNPREDICT ABLE, SHOULD BE ONE, or SHOULD BE ZERO, does not cause any physic al damage to the chip. Register summary CP15 uses 1[...]

  • Страница 86

    W ORKING WITH THE CPU R0: ID code and cache type status registers 86 Hardware Reference NS9215  The B bit is set to 0 at reset if the BIGENDINIT signal is low , and set to 1 if the BIGENDINIT signal is high. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 87

    . . . . . W O RKING WITH THE CPU R0: ID code and cache type status registers www .digiembedded.com 87 Y ou can access the cache type register by reading CP15 register R0 with the opcode_2 field set to 1. Note this example: MRC p15, 0, Rd, c0, c0, 1; returns cache details Cache type register and field description Dsize and Isize fields The Dsize and[...]

  • Страница 88

    W ORKING WITH THE CPU R1: Contr ol r egister 88 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . R1: Control register R egister R1 is the control register for the ARM926 EJ-S processor . This register specifie[...]

  • Страница 89

    . . . . . W O RKING WITH THE CPU R1: Contr ol r egister www .digiembedded.com 89 Control r egister Bit functionality 1 31 19 16 15 12 11 1 0 9 8 7 3 0 2 18 17 1 4 13 6 S B Z SBZ S B O S B O L 4 R R VI SBZ RS B SBO CA M Bits Name Function [31:19] N/A Reserved:  When read, returns an UNPREDICT ABLE value.  When written, SHOULD BE ZERO , or a va[...]

  • Страница 90

    W ORKING WITH THE CPU R1: Contr ol r egister 90 Hardware Reference NS9215 ICache and DCache behavior The M, C, I, and RR bits directly affect ICache and DCache behavior , as shown: If either the DCache or ICache is disab led, the contents of that cache are not accessed. If the cache subsequently is re-enabled, the contents will not have changed. T [...]

  • Страница 91

    . . . . . W O RKING WITH THE CPU R2: T ranslation T able Base r egister www .digiembedded.com 91 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . R2: Translation Table Base register R egister R2 is the T ranslation T able Base re giste[...]

  • Страница 92

    W ORKING WITH THE CPU R4 r egister 92 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . R4 register Accessing (reading or writing) this register causes UN PREDICT ABLE behavior . . . . . . . . . . . . . . . . .[...]

  • Страница 93

    . . . . . W O RKING WITH THE CPU R6: Fault Addr ess r egister www .digiembedded.com 93 S tat us and domain fields This table shows th e en codings used for the status field i n the Fault Sta tus register , and indicates whethe r the domain field contains val id information. See “MMU faults and CPU aborts” on page 119 for inform atio n about MMU[...]

  • Страница 94

    W ORKING WITH THE CPU R7:Cache Operations r egister 94 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . R7:Cache Operations register R egister R7 controls the cache s and write buffer . The function of eac h c[...]

  • Страница 95

    . . . . . W O RKING WITH THE CPU R7:Cache Operations r egister www .digiembedded.com 95 Cache oper ation functions This table lists the cache operation functi ons and associated data and instruction formats for R7. Drain write buffer Act s as an explicit me mory barrier. This instruction drains the contents of the write buffers of all memory stores[...]

  • Страница 96

    W ORKING WITH THE CPU R7:Cache Operations r egister 96 Hardware Reference NS9215 Modified vi rtual address format (MV A) This is the modified virtual addr ess format for Rd for the CP15 R7 MCR operations.  The tag, set, and word fields de fin e th e MV A.  For all cache operations, the word fiel d SHOULD BE ZERO . Set/W ay form at This is the[...]

  • Страница 97

    . . . . . W O RKING WITH THE CPU R8:TLB Operations r egister www .digiembedded.com 97 Note: The test and clean DCache instruction MRC p15, 0, r15, c7, c10, 3 is a special encoding that uses r15 as a destination operand. The PC is not changed by using this instruction, however . This MRC instruction also sets the condition code flags. If the cache c[...]

  • Страница 98

    W ORKING WITH THE CPU R9: Cache Lockdown r egister 98 Hardware Reference NS9215  The invalidate TLB operation s invalidate all the unpreserved entries in the TLB.  The invalidate TLB sing le entry operations invalidate any TLB entry corresponding to the modified virtual address given in Rd , regardless of its preserved state. See "R10:T [...]

  • Страница 99

    . . . . . W O RKING WITH THE CPU R9: Cache Lockdown r egister www .digiembedded.com 99 Instruction or data lockdown reg i s t er The first four bits of this register determ ine the L bit for the associated cache way . The opcode_2 field of the MRC or MC R instruction determines whether the instruction or data lockdo wn register is accessed: Access [...]

  • Страница 100

    W ORKING WITH THE CPU R9: Cache Lockdown r egister 100 Hardware Reference NS9215 Lockdow n cache: Specific loading of addresses into a cache-way Use this procedure to lockdown cache. Th e procedure to lock do wn code and data into way i of cache, with N ways, using form at C, makes it impossible to allocate to any cache way other than the target ca[...]

  • Страница 101

    . . . . . W O RKING WITH THE CPU R10:TLB Lockdown r egister www .digiembedded.com 101 8 Wr i t e <C Rm>==0 to Cache Lockdown register (R9), setting L==1 for bit i and restoring all other bits to the values they had be fore the lockdown routine was started. Cache unlo ck procedure T o unlock the locked down portion of the cache, write to Cache[...]

  • Страница 102

    W ORKING WITH THE CPU R1 1 and R12 r egisters 102 Hardware Reference NS9215 Programming instructio ns Use these instructions to prog ram the TLB Lockdown register: The victim automatically increments after any table walk that results in an entry being written into the lo ckdown part of the TLB. Note: It is not possible for a lockdown entry to map e[...]

  • Страница 103

    . . . . . W O RKING WITH THE CPU R13:Pr ocess ID r egister www .digiembedded.com 103 Use the P rocess ID regist er to det ermine th e process that is currently running. The process identifier is set to 0 at reset. FCSE PID reg i s t er Addresses issued by the ARM926EJ-S core, in the range 0 to 32 MB, are translated according to th e value contained[...]

  • Страница 104

    W ORKING WITH THE CPU R14 r egister 104 Hardware Reference NS9215 A1, A2, and A3 are the three instructio ns following the fast context switch . Context ID reg is te r The Context ID register provides a mechan ism that allows real-time trace tools to identify the cu rrently execut ing proc ess in multi -tasking environments. Access instructio ns Us[...]

  • Страница 105

    . . . . . W O RKING WITH THE CPU DSP www .digiembedded.com 105  Software emulation within the ARM- optimized JVM, which addresses the remaining 20% of the Java byte codes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DSP The ARM[...]

  • Страница 106

    W ORKING WITH THE CPU MemoryManagement Unit (MMU) 106 Hardware Reference NS9215  Invalidate entire TLB using R8: TLB Operations register (see “R8:TLB Operations register” on page 97).  Invalidate TLB ent r y sel ec t ed by MV A, using R8: TLB Operations register (see “R8:TLB Operations register” on page 97).  Lockdown of TLB entrie[...]

  • Страница 107

    . . . . . W O RKING WITH THE CPU MemoryManagement Unit (MMU) www .digiembedded.com 107 MMU program accessible registers This table shows the CP15 registers that are used in conjunction with page table descriptors stored in memory to determine MMU operation. All CP15 MMU registers, except R8: TLB Oper ations, contain state that can be read using MRC[...]

  • Страница 108

    W ORKING WITH THE CPU MemoryManagement Unit (MMU) 108 Hardware Reference NS9215 The MMU table-walking hardware adds entries to the TLB. The translation information that comprises both the ad dress translation data and the access permission data resides in a tra nslation table located in ph ys ical memory . The MMU provides the logic for automatical[...]

  • Страница 109

    . . . . . W O RKING WITH THE CPU MemoryManagement Unit (MMU) www .digiembedded.com 109 Ta b l e w a l k process First-level fetch Bits [31:14] of the TTB register are concat enated with bits [31:20] of the MV A to produce a 30-bit address. Indexed by modif ied virtual address bits [ 31:20] TTB base Translat ion table Section bas e Indexed by modif [...]

  • Страница 110

    W ORKING WITH THE CPU MemoryManagement Unit (MMU) 11 0 Hardware Refere nce NS9215 First-level fetch concatenation and address This address selects a 4-byte translation tabl e entry . This is a first-level descriptor for either a section or a page. First-level descriptor The first-level descri ptor returned is a section desc ription, a coarse page t[...]

  • Страница 111

    . . . . . W O RKING WITH THE CPU MemoryManagement Unit (MMU) www .digiembedded.com 111 First-level descriptor bit assignments: Priority encoding of fault status First-level descriptor bit assignments: Interpr eting first level descriptor bits [1:0] Section descriptor A section descriptor provides the base address of a 1 MB block of memory . Section[...]

  • Страница 112

    W ORKING WITH THE CPU MemoryManagement Unit (MMU) 11 2 Hardware Refere nce NS9215 Section descriptor bit descript ion Coarse page tabl e descriptor A coarse page table descriptor provides the base address of a page table that contains second-lev el descriptors for eith er large page or small page accesses. Coarse page tables have 256 entries, split[...]

  • Страница 113

    . . . . . W O RKING WITH THE CPU MemoryManagement Unit (MMU) www .digiembedded.com 11 3 page tables have 1024 entries, splitting th e 1 MB that the table describes into 1 KB blocks. The next two sections show the format of a fine pa ge table descript or and define the fine page table descriptor bit assignments. Note: If a fine page table descriptor[...]

  • Страница 114

    W ORKING WITH THE CPU MemoryManagement Unit (MMU) 11 4 Hardware Refere nce NS9215 Second-level descriptor The base address of the page table to be used is determined by the descriptor returned (if any) from a first-level fetch — either a coarse page table descriptor or a fine page table descriptor . The page tabl e is then accessed and a second-l[...]

  • Страница 115

    . . . . . W O RKING WITH THE CPU MemoryManagement Unit (MMU) www .digiembedded.com 11 5  A tiny page descriptor provides the ba se address of a 1 KB block of memory . Coarse page tables provide base addresse s for either small or large pages. Large page descriptors must be repe ated in 16 consecutive entri es. Sm all page descriptors must be rep[...]

  • Страница 116

    W ORKING WITH THE CPU MemoryManagement Unit (MMU) 11 6 Hardware Refere nce NS9215 Tr a n s l a t i o n sequence for large pa ge re fere nce s Because the upper four b its of the page in dex and low-order four bits of the coarse page table index overlap, e ach coarse pa ge table entry for a large page must be duplicated 16 times (in consecutive memo[...]

  • Страница 117

    . . . . . W O RKING WITH THE CPU MemoryManagement Unit (MMU) www .digiembedded.com 11 7 T ranslating sequence for small page refer ences If a small page descriptor is included in a fine page table, the up per two bits of the page index and low-order two bits of the fi ne page table index overlap . Each fine page table entry for a small pag e must b[...]

  • Страница 118

    W ORKING WITH THE CPU MemoryManagement Unit (MMU) 11 8 Hardware Refere nce NS9215 Tr a n s l a t i o n sequence for tiny pa ge re fere nce s P age translation involves one additional st ep beyond that of a section translation. The first-level d escriptor is the fine pa ge table descriptor; th is points to the first- level descriptor . Note: The dom[...]

  • Страница 119

    . . . . . W O RKING WITH THE CPU MMU faults and CPU aborts www .digiembedded.com 11 9 When you use subpage permissions and the page entry has to be invalida ted, you must invalidate all four subpages separately . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 120

    W ORKING WITH THE CPU MMU faults and CPU aborts 120 Hardware Reference NS9215 register . If an access violation simultaneously generates more than one source of abort, the aborts are encoded in the priority shown in the priority encoding table. The Fault Address register is not updated by faul ts caused by instruction prefetches. Priority encoding [...]

  • Страница 121

    . . . . . W O RKING WITH THE CPU Domain a ccess contr ol www .digiembedded.com 121 Compatibility issues  T o enable code to be ported easily to future architectures, it is recommended that no reliance is made on external abort behavior .  The Instruction Fault Status register is intended for de bugging purposes only . . . . . . . . . . . . . [...]

  • Страница 122

    W ORKING WITH THE CPU Fault checkin g sequence 122 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Fault checking sequence The sequence the MMU uses to check for access faults is different for sections and pa[...]

  • Страница 123

    . . . . . W O RKING WITH THE CPU Fault checking sequence www .digiembedded.com 123 The conditions that gener ate each of the faults are di scu ssed in the following sections. Alignment faults If alignment fault checking is enabled (the A bit in the R1: Control register is set; see "R1: Con tro l register ," begi n ning on page 88 ), the M[...]

  • Страница 124

    W ORKING WITH THE CPU Fault checkin g sequence 124 Hardware Reference NS9215 Note: If an access generates an alignment fa ult, the access sequen ce aborts without reference to other permission checks. T r anslation faults There are two types of translation fault: section and page.  A section translation faul t is generated if the level one descr[...]

  • Страница 125

    . . . . . W O RKING WITH THE CPU External aborts www .digiembedded.com 125 interpreted in the same way as for a section (see “Interpreting access permission bits” on page 121). The only di fference is that the fa ult generated is a pag e permission fault.  Ti n y p a g e : If the level on e descriptor de fines a page-mapped access and the le[...]

  • Страница 126

    W ORKING WITH THE CPU TLB stru ctur e 126 Hardware Reference NS9215 Car e mu st be tak en i f the tra nsl ated addr ess differs from the untranslated address, because several instructions followin g the enabling of the MMU mig ht have been prefetched with MMU off ( VA = M VA = P A ). If this happens, enabling the MMU can be considered as a branch w[...]

  • Страница 127

    . . . . . W O RKING WITH THE CPU Caches and write buffer www .digiembedded.com 127 about the structure, replacement algorith m, or persistence of entries in the set-associative part — specifically:  Any entry written into the set-asso ciat ive part of the TLB can be removed at any time. The set-associative part of the TLB must be considered as[...]

  • Страница 128

    W ORKING WITH THE CPU Caches and write buffer 128 Hardware Reference NS9215  The caches use pseudo-random or round- robin replacement, selected by the RR bit in R1: Control register .  Cache lockdown registers en able control over wh ich cache ways are used for allocation on a linefill, providing a mechanism for both lockdown and controlling [...]

  • Страница 129

    . . . . . W O RKING WITH THE CPU Caches and write buffer www .digiembedded.com 129 ICache I and M bit settings This table gives the I and M bit settings for the ICache, and the associated behavior . ICache page table C bit settings This table shows the page table C bit setti ngs for the ICache (R1 I bit = M bit = 1) . R1 register C and M bits for D[...]

  • Страница 130

    W ORKING WITH THE CPU Cache MV A and Set/W ay formats 130 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Cache MVA and Set/Way formats This section shows how the MV A and set/wa y formats of ARM926EJ-S cache[...]

  • Страница 131

    . . . . . W O RKING WITH THE CPU Cache MV A and Set/W ay formats www .digiembedded.com 131 Generic, virtually indexed, virtually addressed cache 0 0 1 2 3 4 5 6 7 n TAG 1 2 3 012 m m m m Hit Read data Tag In dex W ord Byte[...]

  • Страница 132

    W ORKING WITH THE CPU Cache MV A and Set/W ay formats 132 Hardware Reference NS9215 ARM926EJ-S cache format ARM926EJ-S cache associativity The following points apply to th e AR M926EJ-S cache associativity:  The group of tags of the same index defines a set.  The number of tags in a set is the associativity .  The ARM926EJ-S caches are 4-w[...]

  • Страница 133

    . . . . . W O RKING WITH THE CPU Noncachable instruction fetches www .digiembedded.com 133 In this figure: A = log 2 associativity For example, with a 4-way cache A = 2: S = log 2 NSETS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 134

    W ORKING WITH THE CPU Noncachable instruction fetches 134 Hardware Reference NS9215 AHB behavior If instruction prefetching is disabled, al l instruc tion fetches appear on the AHB interface as single, nonseq ue ntial fetches. If prefetching is enabled, instruction fetches appear either as bursts of four instructions or as single, nonsequential fe [...]

  • Страница 135

    . . . . . W O RKING WITH THE CPU Noncachable instruction fetches www .digiembedded.com 135 recommended that either a nonbuffered store ( STR ) or a noncached load ( LDR ) be used to trigger external synchronization. 4 Invalidate the cache. The ICache must be invalidated to remove any stale copies of instructions that are no longer valid. If the ICa[...]

  • Страница 136

    W ORKING WITH THE CPU Noncachable instruction fetches 136 Hardware Reference NS9215[...]

  • Страница 137

    137 System Control Module CHAPTER 4 T he System Control Module config ures an d oversees system operations for the processor , and defines both the AMBA Hi gh-speed Bus (AHB) arbiter system and system memory address space. Features The System Control Module uses the foll owing to conf igure an d maintain system operations:  AHB arbiter system ?[...]

  • Страница 138

    SYSTEM CONTROL MODULE System bus arbiter 138 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System bus arbiter The bus arbitration mechanism ensures that only one bus master has access to the system bus at a[...]

  • Страница 139

    . . . . . SYSTEM CONTROL MODULE System bus arbiter www .digiembedded.com 139 2 The arbiter stops evaluating the BRR until a bus grant is issued for the previous evaluation cycle. 3 The arbiter grants the bus to requesting channels , in a round-robin manner , at the rising clock edge of the last addr es s issued for the current transaction (note tha[...]

  • Страница 140

    SYSTEM CONTROL MODULE System bus arbiter 140 Hardware Reference NS9215  If the bus is granted to a defaul t ma ster and cont inues to be in the ID LE state longer than a specified period of time, an AHB bus arbiter timeout is generated. An AH B bus arbit er time out can be config ure d to interrup t the CPU or to reset the chip. SPLIT transfers [...]

  • Страница 141

    . . . . . SYSTEM CONTROL MODULE Addr ess decoding www .digiembedded.com 141 BRC1[23:16] = 8’b1_0_00_0000 chann el disabled BRC1[15:8] = 8’b1_0_00_0000 channel disabled BRC1[7:0] = 8’b1_0_00_0000 channel disabled BRC2[31:24] = 8’b0_0_00_0000 chann el disabled BRC2[23:16] = 8’b0_0_00_0000 chann el disabled BRC2[15:8] = 8’b0_0_00_0000 chan[...]

  • Страница 142

    SYSTEM CONTROL MODULE Pr ogrammable timers 142 Hardware Reference NS9215 This table shows the hmaster[3:0] assignments for the processor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Programmable timers The processor provides 11 p[...]

  • Страница 143

    . . . . . SYSTEM CONTROL MODULE General purpose timers/counters www .digiembedded.com 143 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General purpose timers/counters T en 32-bit general purpose timers/counter s (GPTC) provide prog[...]

  • Страница 144

    SYSTEM CONTROL MODULE Basic PWM function 144 Hardware Reference NS9215  Interrupt enable  Concatenate to up-stream timer/co unter; that is, use up-stream timer/counter’ s overflow/under flow output as clock input  R eload enable  Basic PWM function  Enhanced PWM fu nctionality (timers 6–9)  Quadrature decoder function (timer 5[...]

  • Страница 145

    . . . . . SYSTEM CONTROL MODULE Enhanced PWM function www .digiembedded.com 145 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enhanced PWM f unction T imer counters 6–9 have additional feat ures to add enhanced PWM functionality: [...]

  • Страница 146

    SYSTEM CONTROL MODULE How the quadratur e de coder/counter works 146 Hardware Reference NS9215 A quadrature decoder/counter module performs these task s at real time speed and interrupts th e CP U at th e pre de t ermin ed conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 147

    . . . . . SYSTEM CONTROL MODULE How the quadratur e decoder/cou nter works www .digiembedded.com 147 Monitors h ow far the encoder has moved The counter keeps a running count of how far the encoder has moved.  The decoder increments a 32-bit counter when a state change is found in the positive direction.  The decode r decrements a 32-bit cou [...]

  • Страница 148

    SYSTEM CONTROL MODULE Interrupt contr oller 148 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt controller The interrupt system is a simple two-tier priority scheme. T wo lines access the CPU core a[...]

  • Страница 149

    . . . . . SYSTEM CONTROL MODULE Interrupt contr oller www .digiembedded.com 149 IRQ characteristics  The IRQ interrupt s are enabled by the respective enabling bits.  Once enabled, the interrupt source pr ogrammed in the Interrupt Configuration register for each priority level connects the interrupt to one of 32 priority lines going into the [...]

  • Страница 150

    SYSTEM CONTROL MODULE Interrupt contr oller 150 Hardware Reference NS9215 The interrupt sources are assigned as shown: Interrupt ID Interrupt source 0 Watchdog Timer 1 AHB Bus Error 2 Ext DMA 3 CPU Wake Interrupt 4 Ethernet Module Receive Interrupt 5 Ethernet Module Transmit Interrupt 6 Ethernet Phy Interrupt 7 UART A Interrupt 8 UART B Interrupt 9[...]

  • Страница 151

    . . . . . SYSTEM CONTROL MODULE V ector ed interrupt contr oller (VIC) flow www .digiembedded.com 151 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Vectored interrupt controller (VIC) flow This is how the VIC flow works: 1 An interr[...]

  • Страница 152

    SYSTEM CONTROL MODULE Bootstrap initialization 152 Hardware Reference NS9215 PLL configuration and control system block diag ram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bootstrap initialization The PLL and other system configu[...]

  • Страница 153

    . . . . . SYSTEM CONTROL MODULE Bootstrap initialization www .digiembedded.com 153 Pin name Configuration bits gpio_a[3] Endian configuration 0 Little endian 1B i g e n d i a n gpio_ a[2] Boot mode 0 Boot from SDRAM using serial SPI EEPROM 1 Boot from Flash ROM gpio_a[0], addr[23] Flash /SPI configur ation If booting from Flash: 00 8 bit 01 32 bit [...]

  • Страница 154

    SYSTEM CONTROL MODULE System configur ation r egisters 154 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System configuration registers All configuration registers must be acc ess ed as 32-bit words and as [...]

  • Страница 155

    . . . . . SYSTEM CONTROL MODULE System configur ation r egisters www .digiembedded.com 155 A090 0074 Timer 9 Read and Capture register A090 0078 Timer 6 High register A090 007C Timer 7 High register A090 0080 Timer 8 High register A090 0084 Timer 9 High register A090 0088 Timer 6 Low register A090 008C Timer 7 Low register A090 0090 Timer 8 Low reg[...]

  • Страница 156

    SYSTEM CONTROL MODULE System configur ation r egisters 156 Hardware Reference NS9215 A090 00F8 Interrupt Vector Address Register Level 13 A090 00FC Interrupt Vector Address Register Level 14 A090 0100 Interrupt Vector A ddress Register Level 15 A090 0104 Interrupt Vector A ddress Register Level 16 A090 0108 Interrupt Vector A ddress Register Level [...]

  • Страница 157

    . . . . . SYSTEM CONTROL MODULE System configur ation r egisters www .digiembedded.com 157 A090 017C C lock Configuration register A090 0180 Module Reset register A090 0184 Miscellaneous Syst em Configuration register A090 0188 PLL Configuration register A090 018C Active Interrupt ID register A090 0190 Timer 0 Control register A090 0194 Timer 1 Con[...]

  • Страница 158

    SYSTEM CONTROL MODULE General Arbiter Contr ol r egister 158 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General Arbiter Control register Address: A090 0000 The General Arbiter Control register cont rols [...]

  • Страница 159

    . . . . . SYSTEM CONTROL MODULE AHB Err or Detect S tatus 1 www .digiembedded.com 159 Channel allocation This is how the channels are a ssigned in the four registers: Register Register bit assignment This table shows the bit definition for each channel, using data bits [07:00] as the example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 160

    SYSTEM CONTROL MODULE AHB Error Detect S tatus 2 160 Hardware Reference NS9215 The AHB Error Detect Status 1 register records the haddr[31:0] value present when any AHB error is found. Note that this value is not reset on powerup but is reset when the AHB Erro r Interrupt Clear bit is set in the AHB Error Monitoring Configuration register (*). Regi[...]

  • Страница 161

    . . . . . SYSTEM CONTROL MODULE AHB Err or Monitoring C onfiguration r egister www .digiembedded.com 161 Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AHB Error Monitoring Configuration register Address: A090[...]

  • Страница 162

    SYSTEM CONTROL MODULE T imer Master Control r egister 162 Hardware Reference NS9215 Registe r Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer Master Control register Address: A090 0024 The T imer Master [...]

  • Страница 163

    . . . . . SYSTEM CONTROL MODULE T imer Master Contr ol r egister www .digiembedded.com 163 Register bit assignment Bits Access Mnemonic Reset Description D31:22 N/A Reserved N/A N/A D21 R/W T9RSE 0x0 Timer 9 reload step enable 0 Reload Step register disabled 1 Reload Ste p register enabled D20 R/W T9LSE 0x0 Timer 9 low step enable 0 Low Step regist[...]

  • Страница 164

    SYSTEM CONTROL MODULE T imer 0–4 Contr ol re gisters 164 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 0–4 Control registers Addresses: A090 0190 / 0194 / 01 98 / 019C / 01A0 D09 R/W T9E 0x0 Timer[...]

  • Страница 165

    . . . . . SYSTEM CONTROL MODULE T imer 0–4 Control r egisters www .digiembedded.com 165 Register Register bit assignment 1 3 1 2 1 1 1 0 98765432 15 14 31 29 28 27 26 25 24 23 22 21 20 19 1 8 30 TCS Rese r ved Cap Comp TE Debu g I nt Cl r Ti mer Mo de Int S el Up Down Bits Access Mnemonic Reset Description D31:16 N/A Reserved N/A N/A D15 R/W TE 0[...]

  • Страница 166

    SYSTEM CONTROL MODULE T imer 5 Control r egister 166 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 5 Control register Address: A090 01A4 Registe r D05:04 R/W Timer mode 0x0 Timer mode 00 Internal time[...]

  • Страница 167

    . . . . . SYSTEM CONTROL MODULE T imer 5 Control r egister www .digiembedded.com 167 Register bit assignment Bits Access Mnemonic Reset Description D31:19 N/A Reserved N/A N/A D18 R/W Rel mode 0x0 Reload mode Initializes the timer and the reload value at terminal count. Reload mode is usef ul in quadrature decoder applications, a s it allows th e r[...]

  • Страница 168

    SYSTEM CONTROL MODULE T imer 6–9 Contr ol re gisters 168 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 6–9 Control registers Addresses: A090 01A8 / 01AC / 01B0 / 01B4 D09:06 R/W TCS 0x0 Timer cloc[...]

  • Страница 169

    . . . . . SYSTEM CONTROL MODULE T imer 6–9 Control r egisters www .digiembedded.com 169 Register Register bit assignment 1 3 1 2 1 1 1 0 9876543210 15 14 31 2 9 28 27 26 25 24 23 22 21 20 19 18 17 16 30 Reser ved TM2 TE Cap Comp Debug Int Clr TCS Timer Mod e 1 Int Sel Up Down Bit Timer Rel Enbl Bits Access Mnemonic Reset Description D31:18 N/A Re[...]

  • Страница 170

    SYSTEM CONTROL MODULE T imer 6–9 High r egisters 170 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 6–9 High registers Addresses: A090 0078 / 007C / 00 80 / 0084 The T imer 6–9 High registers con[...]

  • Страница 171

    . . . . . SYSTEM CONTROL MODULE T imer 6–9 Low r egisters www .digiembedded.com 171 Register Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 6–9 Low registers Addresses: A090 0088 / 008C / 0090 / 0094[...]

  • Страница 172

    SYSTEM CONTROL MODULE T imer 6–9 High and Low S tep r e gisters 172 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 6–9 High and Low Step registers Addresses: A090 0098 / 009C / 00 A0 / 00A4 The T i[...]

  • Страница 173

    . . . . . SYSTEM CONTROL MODULE T imer 0-9 Reload Count and Compar e register www .digiembedded.com 173 Register Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 0-9 Reload Count and Compare register Addre[...]

  • Страница 174

    SYSTEM CONTROL MODULE T imer 0-9 Read and Captur e r egister 174 Hardware Reference NS9215 Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 0-9 Read and Capture regist er Addresses: A090 0050 / 0054 / 00 [...]

  • Страница 175

    . . . . . SYSTEM CONTROL MODULE Interrupt V ector Addr ess Register Level 31–0 www .digiembedded.com 175 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt Vector Address Register Level 31–0 Addresses: A090 00C4 (level 0) /[...]

  • Страница 176

    SYSTEM CONTROL MODULE ISADDR r egister 176 Hardware Reference NS9215 Registe r bit assignment This is how the bits are assigned in each register , using data bits [07:00] as the example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 177

    . . . . . SYSTEM CONTROL MODULE Interrupt S tatus Active www .digiembedded.com 177 Register Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt Status Active Address: A090 0168 The Interrupt Status Active[...]

  • Страница 178

    SYSTEM CONTROL MODULE Interrupt S tatus Raw 178 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt Status Raw Address: A090 016C The Interrupt Status Raw register sh ows all current in terrupt requests[...]

  • Страница 179

    . . . . . SYSTEM CONTROL MODULE Softwar e W atchdog T i mer www .digiembedded.com 179 Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Software Watchdog Timer Address: A090 0178 The Software W atchdog T imer reg[...]

  • Страница 180

    SYSTEM CONTROL MODULE Clock Configuration r e gister 180 Hardware Reference NS9215 Registe r Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Clock Configuration register Address: A090 017C The Clock Configurat[...]

  • Страница 181

    . . . . . SYSTEM CONTROL MODULE Clock Configur ation r e gister www .digiembedded.com 181 Register bit assignment Bits Access Mnemonic Reset Description D31:29 R/W CSC 0x000 Clock scale control 000 Full speed (149.9136/74.9568) 001 Divide by 2 (74.9568/37.4784) 010 Divide by 4 (37.4784/18.7392) 011 Divide by 8 (18.7393/9.3693) 100 Divide by 16 (9.3[...]

  • Страница 182

    SYSTEM CONTROL MODULE Module Reset register 182 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Module Reset register Address: A090 0180 D13 R/W IO hub 0x1 IO hub 0 Clock disabled 1 Clock enabled D12 R/W RTC [...]

  • Страница 183

    . . . . . SYSTEM CONTROL MODULE Module Reset r egister www .digiembedded.com 183 The Module R e set register resets each module on the AHB bus. Register Register bit assignment 13 12 11 10 9 8 7 6 5 4 3 2 1 0 15 14 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30 ADC RST ST AT Re s e r v e d Re s e r ved Res e r ved EX T DM A IO hub I 2 C Res e r ve[...]

  • Страница 184

    SYSTEM CONTROL MODULE Miscellaneous System Configuration and S tatus r egister 184 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Miscellaneous System Config uration and Status regi ster Address: A090 0184 T[...]

  • Страница 185

    . . . . . SYSTEM CONTROL MODULE Miscellaneous System Confi guration and S tatus r egister www .digiembedded.com 185 Register bit assignment Bits Access Mnemonic Reset Description D31:24 R REV 0x0 Revision Indicates the hardware iden tification and revision of the processor chip. D23:16 R ID 0x3 Identification Identifies th e chip as: 0 NS9750B-A1 1[...]

  • Страница 186

    SYSTEM CONTROL MODULE PLL Configuration r egister 186 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PLL Configuration register Address: A090 0188 The PLL Configuration regist er configures the PLL. A write [...]

  • Страница 187

    . . . . . SYSTEM CONTROL MODULE Active Interrupt Leve l ID S tatus r egister www .digiembedded.com 187 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Active Interrupt Level ID Status register Address: A090 018C The Active Interrupt L[...]

  • Страница 188

    SYSTEM CONTROL MODULE Power Management 188 Hardware Reference NS9215 Registe r bit assignment Bits Access Mnemonic Reset Description D31 R/W Slp en 0x0 Deprecated Chip sl eep enable This control bit is provided for backwards compatibility with softwa re written for the NS9750 and NS9360 processors, and should not be used by new software. System sof[...]

  • Страница 189

    . . . . . SYSTEM CONTROL MODULE Power Management www .digiembedded.com 189 D20 R/W WakeIntClr 0x0 CPU wake interrupt clear Write a 1, followed by a 0 to clear the CPU wake interrupt. D19 R/W Ext Int 3 0x0 External interrupt 3 interrupt wakeup 0 Do not wake on external 3 interrupt 1 Wake on external 3 wakeup D18 R/W Ext Int 2 0x0 External interrupt [...]

  • Страница 190

    SYSTEM CONTROL MODULE AHB Bus Activit y Status 190 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AHB Bus Activity Status Address: A090 022C The AHB Bus Activity Status register is a read-only register that [...]

  • Страница 191

    . . . . . SYSTEM CONTROL MODULE System Memory Chip Select 1 Dyna mic Memory Base and Mask registers www .digiembedded.com 191 These control registers set the base and mask for system memory chip select 0, with a minimum size of 4 K. The powerup default settings produce a memory ran ge of 0x0000 0000 — 0x0FFF FFFF . Registers Register bit assignme[...]

  • Страница 192

    SYSTEM CONTROL MODULE System Memory Chip Sele ct 2 Dynamic Memory Ba se and Mask registers 192 Hardware Reference NS9215 Registe rs Registe r bit assignment System Memory Chip Select 2 Dynamic Memory Base and . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 193

    . . . . . SYSTEM CONTROL MODULE System Memory Chip Select 3 Dyna mic Memory Base and Mask r egisters www .digiembedded.com 193 Registers Register bit assignment System Memory Chip Select 3 Dynamic Memory Base and . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 194

    SYSTEM CONTROL MODULE System Memory Chip Se lect 0 S tatic Memory Base and Mask registers 194 Hardware Reference NS9215 Registe rs Registe r bit assignment System Memory Chip Select 0 Static Memory Base and Mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 195

    . . . . . SYSTEM CONTROL MODULE System Memory Chip Select 1 S tat ic Memo ry Base and Mask r egisters www .digiembedded.com 195 Registers Register bit assignment System Memory Chip Select 1 Static Memory Base and Mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 196

    SYSTEM CONTROL MODULE System Memory Chip Se lect 2 S tatic Memory Base and Mask registers 196 Hardware Reference NS9215 Registe rs Registe r bit assignment System Memory Chip Select 2 Static Memory Base and Mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 197

    . . . . . SYSTEM CONTROL MODULE System Memory Chip Select 3 S tat ic Memo ry Base and Mask r egisters www .digiembedded.com 197 Registers Register bit assignment System Memory Chip Select 3 Static Memory Base and Mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 198

    SYSTEM CONTROL MODULE Gen ID register 198 Hardware Reference NS9215 Registe rs Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Gen ID register Address: A090 0210 This register is read-only , and indicates the [...]

  • Страница 199

    . . . . . SYSTEM CONTROL MODULE External Interrupt 0–3 Contr ol r egister www .digiembedded.com 199 Register Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . External Interrupt 0–3 Control register Addresses[...]

  • Страница 200

    SYSTEM CONTROL MODULE RTC Module Contr ol re gister 200 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RTC Module Control regis ter Address: A090 0224 The R TC Module Control register controls the R TC modul[...]

  • Страница 201

    . . . . . SYSTEM CONTROL MODULE RTC Module Contr ol register www .digiembedded.com 201 D03 R Rdy int 0x0 RTC clock ready interrupt status 0 RTC clock ready interrupt not asserted 1 RTC clock ready interrupt asserted Note: The R TC clock ready and R TC module interrupts are ORed together to the int er- rupt controller . Read this bit to determine th[...]

  • Страница 202

    SYSTEM CONTROL MODULE RTC Module Contr ol re gister 202 Hardware Reference NS9215[...]

  • Страница 203

    203 Memory Controller CHAPTER 5 T he Multiport Memory Controller is an AMBA-compliant system-on-chip (SoC) peripheral that connects t o the Adva nced High-performance Bus (AHB). The remainder of this chapter refe rs to this controller as the memory controller . Features The memory controller provides these features:  AMBA 32-bit AHB compliancy ?[...]

  • Страница 204

    MEMORY CONTROLLER Low-power operation 204 Hardware Reference NS9215  P o wer- saving modes that dynamically control SDRAM clk_en .  Dynamic memory self-refresh mode su pported by a power management unit (PMU) interface or by software.  Controller supports 2K, 4K, and 8K ro w address synchronous memory parts; that is, typical 512 MB, 256 MB[...]

  • Страница 205

    . . . . . MEMORY CONTROLLER Memory map www .digiembedded.com 205 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory map The memory controller provides hardware support for booting from external nonvolatile memory . During booting,[...]

  • Страница 206

    MEMORY CONTROLLER Memory map 206 Hardware Reference NS9215 2 When the power-on reset ( reset_n ) goes inactive, the processor starts booting from 0x00000000 in memory . 3 The software programs the optimum delay values in the flash memory so the boot code can run at full spee d. 4 T h e c o d e b r a n c h e s t o c h i p s e l e c t 1 s o the code [...]

  • Страница 207

    . . . . . MEMORY CONTROLLER S tatic memory contr oller www .digiembedded.com 207 2 When the power-on reset ( reset_n ) goes inactive, the processor starts booting from 0x00000000 in memory . 3 The software programs the optimum delay values in fl ash memory so the boot code can run at f ull speed. 4 The code branches to chip select 1 so the code can[...]

  • Страница 208

    MEMORY CONTROLLER S tatic memory controller 208 Hardware Reference NS9215 Notes:  Buffering enables th e transaction order to be rearranged to improve memory performance. If the transaction order is important, the buffers must be disabled.  Extended wait an d page mode cannot be en abled at the same t ime. Write protection Each static memory [...]

  • Страница 209

    . . . . . MEMORY CONTROLLER S tatic memory initialization www .digiembedded.com 209 time critical services, such a s interru pt latency and low latency devices; for example, video controllers. Memory mapped peripherals Some systems use external peripherals that can be accessed using the static memory interface. Because of the way many of these peri[...]

  • Страница 210

    MEMORY CONTROLLER S tatic memory read contr ol 210 Hardware Reference NS9215  “Static Memory Ext ended W ait register” on page 247 (StaticExtende dW ait) The number of cy cl es in which an AMBA transfer completes is controlled by two additional factors:  Access width  External memory width Programmable enable Each bank of the memory co[...]

  • Страница 211

    . . . . . MEMORY CONTROLLER S tatic memory read: T iming and parameters www .digiembedded.com 21 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Static memory read: Timing and parameters This section shows static memory re ad timing[...]

  • Страница 212

    MEMORY CONTROLLER S tatic memory read : T iming and parameters 212 Hardware Reference NS9215 External memory read transfer with two output enable delay states This diagram shows an external memory read transfer with two output enable delay states ( WA I T O E N = 2 ). Seven AHB cycles are required for the transfer , five for the standard read and a[...]

  • Страница 213

    . . . . . MEMORY CONTROLLER S tatic memory read: T iming and parameters www .digiembedded.com 213 Burst of zer o wait states with fixed length This diagram shows a burst of zero wait state reads with the length specified. Because the length of the b urst is known , the chip select can be hel d asserted during the whole burst and ge nerate the exter[...]

  • Страница 214

    MEMORY CONTROLLER Asynchr onous page mode r ead 214 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Asynchronous page mode read The memory controller suppo rts asynchronous page mode read of up to fo ur memor[...]

  • Страница 215

    . . . . . MEMORY CONTROLLER Asynchr onous page mode r e ad: T iming and parameters www .digiembedded.com 215 External memory 32-bit burst read from 8-bit memory This diagram shows a 32-bit read from an 8-bit page mode ROM device, causing four burst reads to be performed. A total of ei ght AHB wait states are added during this transfer , five AHB ar[...]

  • Страница 216

    MEMORY CONTROLLER St a t i c m e m o r y write control 216 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Static memory write control Wri te ena bl e prog ramming delay The delay between the assertion of the[...]

  • Страница 217

    . . . . . MEMORY CONTROLLER S tatic memory W rite: T iming and parameters www .digiembedded.com 217 External memory write transfer with two wait states This diagram shows a single external memo ry write transfer with two wait states ( WA I T W R = 2 ). One AHB wait state is added. External memory write transfer with two write enable dela y states T[...]

  • Страница 218

    MEMORY CONTROLLER S tatic memory W rite: T iming and parameters 218 Hardware Reference NS9215 T wo external memory write transfers with zero wait states This diagram shows two external memory write transfers with zero wait states ( WA I T W R = 0 ). Four AHB wait states are added to the second write, because this write can be started only when the [...]

  • Страница 219

    . . . . . MEMORY CONTROLLER Bus turnar ound www .digiembedded.com 219 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bus turnaround The memory controller can be configured fo r each memory bank to use external bus turnaround cycles b[...]

  • Страница 220

    MEMORY CONTROLLER Bus turnar ound: T iming and parameters 220 Hardware Reference NS9215 Write fo llowed by a rea d with no turnaround This diagram shows a zero wait write foll owed by a zero wait read with default turnaround betwee n the transfers of one cycle. Three wait states are added to the write transfer; five wait states are ad ded to the re[...]

  • Страница 221

    . . . . . MEMORY CONTROLLER Byte lane contr ol www .digiembedded.com 221 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Byte lane control The memory controller generates the byte lane control signa ls data_mask[3:0] according to thes[...]

  • Страница 222

    MEMORY CONTROLLER Addr ess connectivity 222 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Address co nnectivity Memory banks constructed from 8-bit or non-byte- partitioned memory devices For memory banks c[...]

  • Страница 223

    . . . . . MEMORY CONTROLLER Addr ess connectivity www .digiembedded.com 223 Memory banks constructed from 16-or 32-bit memory devices For memory banks constructed from 16- or 32-bit memory device s, it is important that the byte lane sele ct (PB) bit is se t to 1 within the respective memory bank control register . This asserts all data_mask[3:0] l[...]

  • Страница 224

    MEMORY CONTROLLER Addr ess connectivity 224 Hardware Reference NS9215 datat[ 31:0] data[31 :0] data[3 1:16] data[15:0] data[3 1:24] data[2 3:16] data[15:8] data[7:0] Q[31:0] 2Mx32 ROM 64Kx16 SRAM 128Kx8 SRAM A[15:0] CE_n OE_n WE_n UB_n LB_n IO[15:0] A[15:0] CE_n OE_n WE_n UB_n LB_n IO[15:0] A[16:0] CE_n OE_n WE_n IO[7:0] A[16:0] CE_n OE_n WE_n IO[7[...]

  • Страница 225

    . . . . . MEMORY CONTROLLER Dynamic memory controller www .digiembedded.com 225 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Dynamic memory controller Write pr otection Each dynamic memory chip select can be co nfigured for write-p[...]

  • Страница 226

    MEMORY CONTROLLER SDRAM Initialization 226 Hardware Reference NS9215 10 Set the SDRAMInit value in the Dynamic Control register to 01 — Issue SDRAM Mode command. 11 P rogram the SDRAM memory 10-bit mode register . Th e mode register enables these parameters to be programmed: A read transaction from the SDRAM me mory programs the mode register . T[...]

  • Страница 227

    . . . . . MEMORY CONTROLLER SDRAM Initialization www .digiembedded.com 227 Left-shift value table: 32-bit wide data bus SDRAM (BRC) Left-shift value table: 16-bit wide data bus SDRAM (RBC) 256M 1 x 8 M x 32 12 2 x 16M x 16 13 4 x 32M x 8 14 512M 2 x 3 2M x 16 14 4 x 64M x 8 15 Device size Configuration Load Mode regis ter left shift Device size Con[...]

  • Страница 228

    MEMORY CONTROLLER SDRAM addr ess and data bus interconnect 228 Hardware Reference NS9215 Left-shift value table: 16-bit wide data bus SDRAM (BRC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SDRAM address and data bus interconnect [...]

  • Страница 229

    . . . . . MEMORY CONTROLLER SDRAM addr ess and data bus interconnect www .digiembedded.com 229 32-bit wide configuration addr[14] A12* A12 A12 addr[15] addr[16] addr[17] addr[18] addr[19] addr[20] addr[21] BA addr[22] BA0 BA0 BA0 BA0 addr[23] BA1 BA1 BA1 BA1 ap10 A1 0/AP A10/AP A10/AP A10/AP data[31:0] D[ 31:0] D[31:0] D[ 31:0] D[31:0] * A12 used o[...]

  • Страница 230

    MEMORY CONTROLLER Registers 230 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Registers Registe r map All configuration registers must be access ed as 32-bit words and as single accesses only . Bu rsting is[...]

  • Страница 231

    . . . . . MEMORY CONTROLLER Registers www .digiembedded.com 231 A070 0044 DynamictWR Dynamic Memory Write Recovery Time (t WR , t DPL , t RWL , t RDL ) A070 0048 DynamictRC Dynamic Memory Active to Active Command Period (t RC ) A070 004C DynamictRFC Dynamic Memory Auto Refr esh Period, and Auto Refresh to Active Command Period (t RFC ) A070 0050 Dy[...]

  • Страница 232

    MEMORY CONTROLLER Contr ol register 232 Hardware Reference NS9215 Reset values R eset values will be n oted in the description column of each regis ter table, rather than as a separate column. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 233

    . . . . . MEMORY CONTROLLER Contr ol r egister www .digiembedded.com 233 Register bit assignment Bits Access Mnemonic Description D31:03 N/A Reserved N/A (do not modify) D02 R/W LPM Low-power mode 0 Normal mode (rese t value on reset_n) 1 Low-power mode Indicates normal or low-power mode. Ent ering low-power mode reduces memory controller power con[...]

  • Страница 234

    MEMORY CONTROLLER S tatus register 234 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Status register Address: A070 0004 The Status register provides memo ry controller status information. Registe r Registe [...]

  • Страница 235

    . . . . . MEMORY CONTROLLER Dynamic Memory Contr ol register www .digiembedded.com 235 Register Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Dynamic Memory Control register Address: A070 0020 The Dynamic Mem[...]

  • Страница 236

    MEMORY CONTROLLER Dynamic Memory Refr esh T i mer r egister 236 Hardware Reference NS9215 Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Dynamic Memory Refr esh Timer register Address: A070 0024 Bits Access M[...]

  • Страница 237

    . . . . . MEMORY CONTROLLER Dynamic Memory Read C onfiguration r egister www .digiembedded.com 237 The Dynamic Memory R efresh T imer register configures dynamic memory operat ion. It is recommended that this register be modified during system initialization, or when there are no current or outstandin g transactions. W ait until the memory controll[...]

  • Страница 238

    MEMORY CONTROLLER Dynamic Memory Pr echarge Command Period r egister 238 Hardware Reference NS9215 Registe r Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Dynamic Memory Precharge Command Period register Add[...]

  • Страница 239

    . . . . . MEMORY CONTROLLER Dynamic Memory Active to Pr echarge Command Period r egister www .digiembedded.com 239 Register bit assignment Dynamic Memory Active to Precharge Command Period . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 240

    MEMORY CONTROLLER Dynamic Me mory Self-r efre sh Exit T ime r egister 240 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Dynamic Memory Self-refre sh Exit Time register Address: A070 0038 The Dynamic Memory [...]

  • Страница 241

    . . . . . MEMORY CONTROLLER Dynamic Memory Data-in to Ac tive Command T ime r egister www .digiembedded.com 241 Register Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Dynamic Memory Data-in to Ac tive Command[...]

  • Страница 242

    MEMORY CONTROLLER Dynamic Memory W rite Re covery T ime register 242 Hardware Reference NS9215 Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Dynamic Memory Write Re covery Time register Address: A070 0044 Th[...]

  • Страница 243

    . . . . . MEMORY CONTROLLER Dynamic Memory Active to Active Command Pe riod r egister www .digiembedded.com 243 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Dynamic Memory Active to Ac tive Command Period register Address: A070 004[...]

  • Страница 244

    MEMORY CONTROLLER Dynamic Memory Exit Self-r efresh r egister 244 Hardware Reference NS9215 Note: The Dynamic Memory Auto R efresh P e riod register is used for all four dynamic memory chip selects. Th e worst case va lue for al l chip selects must be programmed. Registe r Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 245

    . . . . . MEMORY CONTROLLER Dynamic Memory Acti ve Bank A to Active Bank B T ime register www .digiembedded.com 245 Register Register bit assignment Dynamic Memory Active Bank A to Active Bank B Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 246

    MEMORY CONTROLLER Dynamic Memory Load Mode r egister to Active Command T ime r egister 246 Hardware Reference NS9215 Registe r bit assignment Dynamic Memory Load Mode re gister to Active Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 247

    . . . . . MEMORY CONTROLLER S tatic Memory Exte nded W ait r egister www .digiembedded.com 247 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Static Memory Exte nded Wait register Address: A070 0080 The Static Memory Extended W ait r[...]

  • Страница 248

    MEMORY CONTROLLER Dynamic Memory Configuration 0–3 r egisters 248 Hardware Reference NS9215 Use the Dynamic Memory Configuration 0–3 registers to program the configuration information for the relevant dynamic me mory chip select. These registers are usually modified on ly during system initialization. Registe r Registe r bit assignment Rsvd 1 3[...]

  • Страница 249

    . . . . . MEMORY CONTROLLER Dynamic Memory Confi guration 0–3 r e gisters www .digiembedded.com 249 Address mapping for the Dynamic Memory Configuration registers The next table shows address mapping fo r the Dynamic Memory Configuration 0-3 registers. Address mappings that are not shown in the table are reserve d. [14] [12] [11:9] [8:7] Descript[...]

  • Страница 250

    MEMORY CONTROLLER Dynamic Memory RAS and CAS Delay 0–3 r egisters 250 Hardware Reference NS9215 Chip select and memory devices A chip select can be connected to a single memory device; in this situation, the chip select data bus width is the same as th e device width. As an alternative, the chip sel ect c an b e con nec ted to a n umb er of ext e[...]

  • Страница 251

    . . . . . MEMORY CONTROLLER S taticMemory Confi guration 0–3 r egisters www .digiembedded.com 251 The Dynamic Memory RAS and CAS Delay 0–3 registers allow you to program the RAS and CAS latencies for the relevant dynami c memory . It is recommended that these registers be modifie d during system initializa tion, or when there are no curre nt or[...]

  • Страница 252

    MEMORY CONTROLLER S taticMemory Configuration 0–3 r egisters 252 Hardware Reference NS9215 Registe r Registe r bit assignment 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30 Reserved PSMC BSMC Re served Reserved EW PB PC Reserved PM BMODE MW Bits Access Mnemonic Description D31:21 N/A Reserved N/A (do not modi fy)[...]

  • Страница 253

    . . . . . MEMORY CONTROLLER S taticMemory Confi guration 0–3 r egisters www .digiembedded.com 253 D07 R/W PB Byt e lane state 0 For reads, all bits in byte_lane[3:0] are high. For writes, the respective active bits in byte_lane[3:0] are low (reset value for chip select 0, 2, and 3 on reset_n ). 1 For reads, the re spective active bits in byte_lan[...]

  • Страница 254

    MEMORY CONTROLLER S taticMemory W rite Enabl e Delay 0–3 r egisters 254 Hardware Reference NS9215 Note: Synchronous burst mode memory devices are not supp orted. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . StaticMemory Write Ena[...]

  • Страница 255

    . . . . . MEMORY CONTROLLER S tatic Memory Output E nable Delay 0–3 r egisters www .digiembedded.com 255 Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Static Memory Output En able Delay 0–3 registers Addr[...]

  • Страница 256

    MEMORY CONTROLLER S tatic Memory Read Delay 0–3 registers 256 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Static Memory Read Delay 0–3 registers Address: A070 020C / 022C / 024C / 0 26C The Stat ic Me[...]

  • Страница 257

    . . . . . MEMORY CONTROLLER S tatic Memory W rite Delay 0–3 r egisters www .digiembedded.com 257 modified during sys tem initialization, or when there a re no current or outstanding transactions. W ait until the memory contro ller is idle, then enter low-power or disabled mode. Register Register bit assignment . . . . . . . . . . . . . . . . . . [...]

  • Страница 258

    MEMORY CONTROLLER S taticMemory T urn Round Delay 0–3 r egisters 258 Hardware Reference NS9215 Registe r Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . StaticMemory Turn Round Delay 0–3 registers Address:[...]

  • Страница 259

    . . . . . MEMORY CONTROLLER S taticMemory T urn R ound Delay 0–3 r egisters www .digiembedded.com 259 Register bit assignment T o prevent bus contention on the extern al memory databus, the W AITTURN field controls the nu mber of bus turnaround cy cles added between static memory read and write accesses. The W AITTURN field also controls the numb[...]

  • Страница 260

    MEMORY CONTROLLER S taticMemory T urn Round Delay 0–3 r egisters 260 Hardware Reference NS9215[...]

  • Страница 261

    . . . . . ETHERNET COMMUNICATION MODULE www .digiembedded.com 261 Ethernet Communication Module CHAPTER 6 T he Ethernet Communication module co nsists of an Ethernet Media Access Controller (MAC) and Ethernet front-end modu le. The Ethernet MAC interfaces to an external PHY through the in dustry-standard interface: Media Independ ent Interface (MII[...]

  • Страница 262

    ETHERNET COMMUNICATION MODULE Ethernet MAC 262 Hardware Reference NS9215 Ethernet communications module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ethernet MAC The Ethernet MAC inclu des a full function 10/100 Mbps Media Ac cess [...]

  • Страница 263

    . . . . . ETHERNET COMMUNICATION MODULE Ethernet MAC www .digiembedded.com 263 MAC module block diagram MAC module features Feature Description MAC Core 10/100 megabit Media Access Controller Performs the CSMA/CD function.  MCS: MAC control sublayer  TFUN: T ransmit function  RFUN: Receive function HOST Host interface Provides an interface[...]

  • Страница 264

    ETHERNET COMMUNICATION MODULE S tation addr ess logic (SAL) 264 Hardware Reference NS9215 PHY interface mappings This table shows how th e different PHY interfac es are mapped to the e xternal IO. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 265

    . . . . . ETHERNET COMMUNICATION MODULE S tatistics module www .digiembedded.com 265 module. The filtering option s, listed next, are programmed in the Station Address Filter register (see page 301).  Accept frames to destination address programmed in the SA1, SA2, and SA3 registers (Station Address registers, beginning on pa ge 300)  Accept [...]

  • Страница 266

    ETHERNET COMMUNICATION MODULE Ethernet fr ont-end module 266 Hardware Reference NS9215 The counters support a clear on read capability that is enable d when AUTOZ is set to 1 in the Ethernet General Control R egister #2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 267

    . . . . . ETHERNET COMMUNICATION MODULE Receive packet pr ocessor www .digiembedded.com 267 The 2K byte RX_FIFO allows the entire Ethernet frame to be buffered while the receive byte count is analyzed. The receiv e byte count is analyzed by the rec eive packet processor to select the optimum-si zed buffer for trans ferring the received frame to sys[...]

  • Страница 268

    ETHERNET COMMUNICATION MODULE Receive packet pr ocessor 268 Hardware Reference NS9215 T ransferring a frame to system memory The RX _RD logic manages the transfer of a frame in the RX_FIFO to system memory . The transfer is enabled by setting the ERXDMA (enable receive DMA) bi t in Ethernet General Control Register #1. T ransferring a frame in the [...]

  • Страница 269

    . . . . . ETHERNET COMMUNICATION MODULE T ransmit packet processor www .digiembedded.com 269 Receive buf fer descriptor field definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Transmit packet processor T ransmit frames are t[...]

  • Страница 270

    ETHERNET COMMUNICATION MODULE T ransmit packet processor 270 Hardware Reference NS9215 reside in different buffers in s ystem memo ry , several buffer desc riptors can be used to transfer the f rame. T r ansmit buffer descriptor f ormat All buffer descriptors (that is, up to 64) are found in a local TX buffer descriptor RAM. This is the transmit bu[...]

  • Страница 271

    . . . . . ETHERNET COMMUNICATION MODULE T ransmit packet processor www .digiembedded.com 271 T ransmitting a frame Setting the EXTDMA (enable transmit DMA) bit in Ethernet General Contr ol R egister #1 starts the transfer of transmit frames from the system memory to the TX_FIFO. The TX_WR logic reads the first buffer descriptor in the TX buffer des[...]

  • Страница 272

    ETHERNET COMMUNICATION MODULE T ransmit packet processor 272 Hardware Reference NS9215 The TX_WR logic examines the stat us received from the MAC after it has transmitted the frame. Frame transmitted successfully If the frame was transmitted succ essfully , the TX_WR logic sets TXDONE (frame transmission complete) in th e Ethernet Interrupt Status [...]

  • Страница 273

    . . . . . ETHERNET COMMUNICATION MODULE Ethernet slave interface www .digiembedded.com 273 – A packet consisting of multiple, linked buffer descriptors does not have the F bit set in any of the non-first buffer descriptors. When an underrun occurs, it is also possibl e for the Ethernet transm itter to send out a corrupted packet with a good Ether[...]

  • Страница 274

    ETHERNET COMMUNICATION MODULE Resets 274 Hardware Reference NS9215 St a t u s b i t s The status bits for all interrupts are avai lable in the Ethernet Interrupt Status register , and the associated enables are av ailable in the Ether net Interrupt Enable register . Each interrupt status bit is cleared by writing a 1 to it. . . . . . . . . . . . . [...]

  • Страница 275

    . . . . . ETHERNET COMMUNICATION MODULE Multicast addr ess filtering www .digiembedded.com 275 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Multicast address filtering The RX-WR logic contains a programmable 8-entry multicast ad dr[...]

  • Страница 276

    ETHERNET COMMUNICATION MODULE Clock synchr onization 276 Hardware Reference NS9215 Multicast add r ess filtering example 2 T o accept multicast pac kets with de stination addresses in the range of 0x01_00_5E_00_00_00 to 0x01_00 _5E_00_00_ 0f using entry 4, the registers are set as shown: Notes  If any of the address filter entries are enabled, t[...]

  • Страница 277

    . . . . . ETHERNET COMMUNICATION MODULE Ethernet Contr ol and S tatus r egisters www .digiembedded.com 277 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ethernet Control and Status registers All configuration registers must be acces[...]

  • Страница 278

    ETHERNET COMMUNICATION MODULE Ethernet Contr ol and S tatus r egisters 278 Hardware Reference NS9215 A060 0A0C RXDPTR RX_D Buffer Descriptor Pointer register A060 0A10 EINTR Ethernet In terrupt Status register A060 0A14 EINTREN Ethernet Interrupt Enable register A060 0A18 TXPTR TX Buffer Descriptor Pointer register A060 0A1C TXRPTR TX Recover Buffe[...]

  • Страница 279

    . . . . . ETHERNET COMMUNICATION MODULE Ethernet General Contr ol Register #1 www .digiembedded.com 279 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ethernet General Control Register #1 Address: A060 0000 Register A060 0A90 MFMSKL4[...]

  • Страница 280

    ETHERNET COMMUNICATION MODULE Ethernet General Contr ol Register #1 280 Hardware Reference NS9215 Registe r bit assignment Bits Access Mnemonic Reset Description D31 R/W ERX 0 Enable RX packet processing 0 Reset RX 1E n a b l e R X Used as a soft reset for th e RX. When cleared, resets all logic in the RX and flushes the FIFO. The ERX bit must be s[...]

  • Страница 281

    . . . . . ETHERNET COMMUNICATION MODULE Ethernet General Contr ol Register #1 www .digiembedded.com 281 D22 R/W ETXDMA 0 Enable tran smit DMA 0 Disable transmit DMA data request (use to stall transmitter) 1 Enable transmit DMA data request Must be set active high to allow the tra nsmit packet processor to issue transmit data requests to the AHB int[...]

  • Страница 282

    ETHERNET COMMUNICATION MODULE Ethernet General Contr ol Register #2 282 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ethernet General Control Register #2 Address: A060 0004 Registe r D10 R/W RXALIGN 0 Alig[...]

  • Страница 283

    . . . . . ETHERNET COMMUNICATION MODULE Ethernet General S tatus r egister www .digiembedded.com 283 Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ethernet General Status register Address: A060 0008 Bits Acce[...]

  • Страница 284

    ETHERNET COMMUNICATION MODULE Ethernet T ransmit S tatus register 284 Hardware Reference NS9215 Registe r Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ethernet Transmit Status register Address: A060 0018 Th[...]

  • Страница 285

    . . . . . ETHERNET COMMUNICATION MODULE Ethernet T ransmit S tatus r egister www .digiembedded.com 285 Register bit assignment Bits Access Mnemonic Reset Description D31:16 N/A Reserved N/A N/A D15 R TXOK 0x0 Frame transmitted OK When set, indicates that the frame has been delivered to and emptied from the transm it FIFO without problems. D14 R TXB[...]

  • Страница 286

    ETHERNET COMMUNICATION MODULE Ethernet Receive S tatus register 286 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ethernet Receive Status register Address: A060 001C The Ethernet Receive Status register con[...]

  • Страница 287

    . . . . . ETHERNET COMMUNICATION MODULE Ethernet Receive S tatus r egister www .digiembedded.com 287 Register Register bit assignment 13 12 11 10 9 8 7 6 5 4 3 2 1 0 15 14 31 29 28 27 26 25 24 23 22 21 20 1 9 18 17 16 30 Rese rved RXCE RXDV RXOK RXBR RXMC Rsvd RXDR Reserved RXSIZE Reserved RXSHT Bits Access Mnemonic Reset Description D31:27 N/A Res[...]

  • Страница 288

    ETHERNET COMMUNICATION MODULE MAC Configuration Register #1 288 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MAC Configuration Register #1 Address: A060 0400 MAC Configuration Register #1 provides bits tha[...]

  • Страница 289

    . . . . . ETHERNET COMMUNICATION MODULE MAC Configuration Register #2 www .digiembedded.com 289 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MAC Configuration Register #2 Address: A060 0404 MAC Configuration R egister #2 provides a[...]

  • Страница 290

    ETHERNET COMMUNICATION MODULE MAC Configuration Register #2 290 Hardware Reference NS9215 D09 R/W LONGP 0 Long p reamble enforcemen t 0 Allows any length preamble (as defined in the 802.3u standard). 1 The MAC allows only receive frames that contain preamble fields less than 12 bytes in length. D08 R/W PUREP 0 Pure preamble e nforcement 0 No preamb[...]

  • Страница 291

    . . . . . ETHERNET COMMUNICATION MODULE Back-to-Back In ter-Packet -Gap r egister www .digiembedded.com 291 P AD operation table for transmit frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Back-to-Back Inter-Packet-Gap registe[...]

  • Страница 292

    ETHERNET COMMUNICATION MODULE Non Back-to-Back Inte r -Packet-Gap r egister 292 Hardware Reference NS9215 Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Non Back-to-Back Inte r-Packet-Gap register Address: A0[...]

  • Страница 293

    . . . . . ETHERNET COMMUNICATION MODULE Collision W indow/R etry r egister www .digiembedded.com 293 Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Collision Window/Retry register Address: A060 0410 Register B[...]

  • Страница 294

    ETHERNET COMMUNICATION MODULE Maximum Frame r egister 294 Hardware Reference NS9215 Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Maximum Frame register Address: A060 0414 Registe r Bits Access Mnemonic Rese[...]

  • Страница 295

    . . . . . ETHERNET COMMUNICATION MODULE MII Management Conf iguration r egister www .digiembedded.com 295 Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MII Management Configuration register Address: A060 0420[...]

  • Страница 296

    ETHERNET COMMUNICATION MODULE MII Management Command r egister 296 Hardware Reference NS9215 Clocks field settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MII Management Command register Address: A060 0424 D04:02 R/W CLKS 0x0 [...]

  • Страница 297

    . . . . . ETHERNET COMMUNICATION MODULE MII Management Addr ess r egister www .digiembedded.com 297 Register Register bit assignment Note: If both SCAN and READ are set, SCAN takes precedence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 298

    ETHERNET COMMUNICATION MODULE MII Management W rite Data register 298 Hardware Reference NS9215 Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MII Management Write Data register Address: A060 042C Registe r R[...]

  • Страница 299

    . . . . . ETHERNET COMMUNICATION MODULE MII Management Indicators r egister www .digiembedded.com 299 Register Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MII Management Indicators register Address: A060 04[...]

  • Страница 300

    ETHERNET COMMUNICATION MODULE S tation Address registers 300 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Station Address registers Addresses: A060 0440 / 0444 / 04 48 The 48-bit station address is loaded [...]

  • Страница 301

    . . . . . ETHERNET COMMUNICATION MODULE S tation Addr ess Filter r egister www .digiembedded.com 301 Register bit assignments for all three r egisters Note: Octet #6 is the first byte of a frame re ceived from the MAC. Octet #1 is the last byte of the st ation ad dress received from the MAC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 302

    ETHERNET COMMUNICATION MODULE RegisterHash T ables 302 Hardware Reference NS9215 Registe r Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RegisterHash Tables The MAC receiver provides the station addr ess log[...]

  • Страница 303

    . . . . . ETHERNET COMMUNICATION MODULE S tatistics r egisters www .digiembedded.com 303 HT2 Address: A060 0508 Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Statistics registers Address: A060 0680 (base regi[...]

  • Страница 304

    ETHERNET COMMUNICATION MODULE S tatistics r egist ers 304 Hardware Reference NS9215 Receive statistics counters address map Receive byte counter (A060 069C) Incremented by the byte count of frames received with 0 to 1518 byte s, including those in bad packets, excluding fr aming bits but including FCS bytes. Receive packet counter (A060 06A0) Incre[...]

  • Страница 305

    . . . . . ETHERNET COMMUNICATION MODULE S tatistics r egisters www .digiembedded.com 305 Receive FCS error counter (A060 06A4) Incremented for each frame received with a length of 64 to 1518 b ytes, and containing a frame check sequ ence (FCS) e rror . FCS errors are not counted for VLAN frames that exceed 1518 bytes or for any frames with dribble [...]

  • Страница 306

    ETHERNET COMMUNICATION MODULE S tatistics r egist ers 306 Hardware Reference NS9215 Receive alignment error counter (A060 06BC) Incremented for each received frame, fr om 64 to 1518 bytes, that contains an invalid FCS and has dribble bits (that is, is not an integral number of bytes). Receive code error counter (A060 06C4 ) Incremented eac h time a[...]

  • Страница 307

    . . . . . ETHERNET COMMUNICATION MODULE S tatistics r egisters www .digiembedded.com 307 Receive jabber counter (A060 06D8) Incremented for frames received that ex ceed 1518 bytes (non-V LAN) or 1522 bytes (VLAN) and contain an invali d FCS, including alignment e rrors. This counter does not increment when a packet is truncated to 1518 (non-VLAN) o[...]

  • Страница 308

    ETHERNET COMMUNICATION MODULE S tatistics r egist ers 308 Hardware Reference NS9215 T ransmit pack et counter (A060 06E4) Incremented for each transmitted pack et (including bad packets, excessive deferred packets, excessive collision packets , late collision packets, and all unicast, broadcast, and multicast packets). Tr a n s m i t multicast pack[...]

  • Страница 309

    . . . . . ETHERNET COMMUNICATION MODULE S tatistics r egisters www .digiembedded.com 309 T ransmit multiple collision packet counter (A060 0700) Incremented for each frame t ransmitted th at expe rienced 2 –15 collisi ons (includin g any late collisions) during transmission. Tr a n s m i t l a t e collision packet counter (A060 0704) Incremented [...]

  • Страница 310

    ETHERNET COMMUNICATION MODULE S tatistics r egist ers 310 Hardware Reference NS9215 T ransmit oversize frame counter (A060 072 4) Incremented for each transmitted frame that exceeds 1518 b ytes (NON_V LAN) or 1532 bytes (VLAN) and contain s a valid FCS. Tr a n s m i t undersize frame counter (A060 0728) Incremented for every frame less than 64 byte[...]

  • Страница 311

    . . . . . ETHERNET COMMUNICATION MODULE S tatistics r egisters www .digiembedded.com 31 1 Register Register bit assignment Carry Regist er 2 Address: A060 0734 C1 RMC C1 RBC C1RXP C1 RXC C1 RXU C1RAL Rsv d C1 RCD C1 RCS C1 RUN C1 ROV C1 RFR C1 RJB Rsvd 13 12 11 10 9 8 7 6 5 4 3 2 1 0 15 14 C1 RPK C1 RFC 31 29 28 27 26 25 24 23 22 21 20 1 9 18 17 16[...]

  • Страница 312

    ETHERNET COMMUNICATION MODULE S tatistics r egist ers 312 Hardware Reference NS9215 Registe r Registe r bit assignment Carry Register 1 Mask register Address: A060 0738 C2 TBY C2 TPK C2TBC C2TMC Rsvd C2TDF C2 TED C2 TSC C2 TMA C2 TLC C2 TXC C2 TNC Res erve d 1 3 1 2 1 1 1 0 9876543 210 15 14 C2 TUN C2 TFG 31 29 28 27 26 25 24 23 22 21 20 19 18 17 1[...]

  • Страница 313

    . . . . . ETHERNET COMMUNICATION MODULE S tatistics r egisters www .digiembedded.com 313 Register Register bit assignment M1 RMC M1 RBC M1RXP M1 RXC M1 RXU M1RAL Not used M1 RCD M1 RCS M1 RUN M1 ROV M1 RFR M1 RJB Not used 13 12 11 10 9 8 7 6 5 4 3 2 1 0 15 14 M1 RPK M1 RFC 31 29 28 27 26 25 24 23 22 21 20 1 9 18 17 16 30 M 1255 M 1511 M1 MAX M C11K[...]

  • Страница 314

    ETHERNET COMMUNICATION MODULE S tatistics r egist ers 314 Hardware Reference NS9215 Carry Register 2 Mask register Address: A060 073C Registe r Registe r bit assignment M2 TBY M2 TPK M2TBC M2 TMC Not used M 2TDF M2 TED M2 TSC M2 TMA M2 TLC M2 TXC M2 TNC Not used 1 3 1 2 1 1 1 0 9876543 210 15 14 M2 TUN M2 TFG 31 29 28 27 26 25 24 23 22 21 20 19 18 [...]

  • Страница 315

    . . . . . ETHERNET COMMUNICATION MODULE RX_A Buffer Descript or Pointer r egister www .digiembedded.com 315 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RX_A Buffer Descriptor Pointer register Address: A060 0A00 Register Register b[...]

  • Страница 316

    ETHERNET COMMUNICATION MODULE RX_C Buffer Descript or Pointer register 316 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RX_C Buffer Descriptor Pointer register Address: A060 0A08 Registe r Registe r bit as[...]

  • Страница 317

    . . . . . ETHERNET COMMUNICATION MODULE Ethernet Interrupt S tatus r egister www .digiembedded.com 317 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ethernet Interrupt Status register Address: A060 0A10 The Ethernet Interrupt Status[...]

  • Страница 318

    ETHERNET COMMUNICATION MODULE Ethernet Interrupt S tatus re gister 318 Hardware Reference NS9215 D21 R/C RXDONEB 0 Assigned to RX interrupt. Complete receive frame stor ed in pool B of system memory. D20 R/C RXDONEC 0 Assigned to RX interrupt. Complete receive frame stor ed in pool C of system memory. D19 R/C RXDONED 0 Assigned to RX interrupt. Com[...]

  • Страница 319

    . . . . . ETHERNET COMMUNICATION MODULE Ethernet Interrupt Enable r egister www .digiembedded.com 319 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ethernet Interrupt Enable register Address: A060 0A14 The Ethernet Interrupt Enable [...]

  • Страница 320

    ETHERNET COMMUNICATION MODULE TX Buffer Descript or Pointer register 320 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . TX Buffer Descriptor Pointer register Address: A060 0A18 Registe r Registe r bit assign[...]

  • Страница 321

    . . . . . ETHERNET COMMUNICATION MODULE T ransmit Recover Buffer De scriptor Pointer register www .digiembedded.com 321 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Transmit Recover Buffer De scriptor Pointer register Address: A060[...]

  • Страница 322

    ETHERNET COMMUNICATION MODULE TX S tall Buffer De scriptor Pointer register 322 Hardware Reference NS9215 Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . TX Stall Buffer Descriptor Pointer register Address: A0[...]

  • Страница 323

    . . . . . ETHERNET COMMUNICATION MODULE RX_A Buffer Descri ptor Poin ter Offset r egister www .digiembedded.com 323 Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RX_A Buffer Descriptor Pointer Offset register[...]

  • Страница 324

    ETHERNET COMMUNICATION MODULE RX_B Buffer Descriptor Pointer Offse t r egister 324 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RX_B Buffer Descriptor Pointer Offset register Address: A060 0A2C Registe r R[...]

  • Страница 325

    . . . . . ETHERNET COMMUNICATION MODULE RX_D Buffer Desc ri ptor Poin ter Offset r egister www .digiembedded.com 325 Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RX_D Buffer Descriptor Pointer Offset registe[...]

  • Страница 326

    ETHERNET COMMUNICATION MODULE RX Free Buffer register 326 Hardware Reference NS9215 Registe r Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RX Free Buffer register Address: A060 0A3C So the RX_RD log ic know[...]

  • Страница 327

    . . . . . ETHERNET COMMUNICATION MODULE Multicast Addr ess Filter r egisters www .digiembedded.com 327 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Multicast Address Filter registers Each of the eig ht entries in the multicast addr[...]

  • Страница 328

    ETHERNET COMMUNICATION MODULE Multicast Addr ess Filter r egisters 328 Hardware Reference NS9215 Multicas t Low Address Filter Registe r #6 Address: A060 0A58 Multicas t Low Address Filter Registe r #7 Address: A060 0A5C Multicas t High Address Filter Registe r #0 Address: A060 0A60 Multicas t High Address Filter Registe r #1 Address: A060 0A64 Mul[...]

  • Страница 329

    . . . . . ETHERNET COMMUNICATION MODULE Multicast Address Mask r egisters www .digiembedded.com 329 Multicast High Address Fi lter Register #6 Address: A060 0A78 Multicast High Address Fi lter Register #7 Address: A060 0A7C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 330

    ETHERNET COMMUNICATION MODULE Multicast Addr ess Mask registers 330 Hardware Reference NS9215 Multicas t Low Address Mask Registe r #4 Address: A060 0A90 Multicas t Low Address Mask Registe r #5 Address: A060 0A94 Multicas t Low Address Mask Registe r #6 Address: A060 0A98 Multicas t Low Address Mask Registe r #7 Address: A060 0A9C Multicas t High [...]

  • Страница 331

    . . . . . ETHERNET COMMUNICATION MODULE Multicast Addr ess Fi lter Enable r egister www .digiembedded.com 331 Multicast High Address Mask Register #5 Address: A060 0AB4 Multicast High Address Mask Register #6 Address: A060 0AB8 Multicast High Address Mask Register #7 Address: A060 0ABC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 332

    ETHERNET COMMUNICATION MODULE TX Buffer De scriptor RAM 332 Hardware Reference NS9215 Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . TX Buffer Descriptor RAM Address: A060 1000 The TX buffer d escriptor RAM h[...]

  • Страница 333

    . . . . . ETHERNET COMMUNICATION MODULE RX FIFO RAM www .digiembedded.com 333 Offset+4 Offset+8 Offset+C See “T ransmit buffer descriptor format” on page 270, for more information about the fields in Offset+C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 334

    ETHERNET COMMUNICATION MODULE Sample hash table code 334 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Sample hash table code This sample C code describes how to calc ulate hash table entries based on 6-byt[...]

  • Страница 335

    . . . . . ETHERNET COMMUNICATION MODULE Sample hash table code www .digiembedded.com 335 (*MERCUR Y_EFE).ht2.b its.da ta = SW AP32(hash_table[1]); (*MERCUR Y_EFE).ht1.b its.da ta = SW AP32(hash_table[0]); } /* * * Function: void eth_make_has h_table (WORD32 *hash_table) * * Description: * * This routine creates a hash tab le based on the CRC values[...]

  • Страница 336

    ETHERNET COMMUNICATION MODULE Sample hash table code 336 Hardware Reference NS9215 /* * * Function: void set_hash_bit (BYTE *table, int bit) * * Description: * * This routine sets the appropriate bit in the hash table. * * Parameters: * * table pointer to hash table * bit position of bit to set * * Return V alues: * * none * */ static void set_hash[...]

  • Страница 337

    . . . . . ETHERNET COMMUNICATION MODULE Sample hash table code www .digiembedded.com 337 * * Return V alues: * * bit position to set in hash table * */ #define POL YNOMIAL 0x4c11db6L static int calculate_hash_bit (BYTE *mca) { WORD32 crc; WORD16 *mcap, bp, bx; int result, index, mca_word, bit_index; BYTE lsb; WORD16 copy_mca[3] memcpy (copy_mca,mca[...]

  • Страница 338

    ETHERNET COMMUNICATION MODULE Sample hash table code 338 Hardware Reference NS9215 bp = rotate (bp, RIGHT , 1); } } // CRC calculation done. The 6-bit result resides in bit // locations 28:23 result = (crc >> 23) & 0x3f; return result; }[...]

  • Страница 339

    . . . . . EXTERNAL DMA DMA transfers www .digiembedded.com 339 External DMA CHAPTER 6 T he external DMA interface provides two external channe ls for external peripheral support. Each DM A channel moves dat a from the source address to the destination address. These ad dresses can specify any periph eral on the AHB bus but, ideally , they specify a[...]

  • Страница 340

    EXTERNAL DMA DMA buffer descriptor 340 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DMA buffer descriptor All DMA channels use a buffer descriptor . Wh en a DMA channel is activated, it reads the DMA buffe[...]

  • Страница 341

    . . . . . EXTERNAL DMA Descriptor li st pr ocessing www .digiembedded.com 341 Note: Optimal performanc e is achieved when the destination address is aligned on a word boundary . St a t u s This field is not used. R ead back 0x0000. Wrap (W) bit The W rap (W) bit, when set, tells the DMA controller th at this is the last buffer descriptor within the[...]

  • Страница 342

    EXTERNAL DMA Peripheral DMA r ead access 342 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Peripheral DMA read access The diagrams in this section describe how the DMA engine performs read accesses of an ex[...]

  • Страница 343

    . . . . . EXTERNAL DMA Peripheral DMA write access www .digiembedded.com 343 Peripheral DMA single read access Peripheral DMA burst read access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Peripheral DMA write access The diagrams i[...]

  • Страница 344

    EXTERNAL DMA Peripheral REQ and DONE signaling 344 Hardware Reference NS9215 Determin ing the width of PDEN Use the memory controller’ s Static Memory W rite Delay register and Static Memory W rite Enab le Delay register to determine the width of the PDEN assertion. Peripheral DMA single write ac cess Peripheral DMA burst write access . . . . . .[...]

  • Страница 345

    . . . . . EXTERNAL DMA St a t i c R A M c h i p s e lect configuration www .digiembedded.com 345 DONE signal  The external peripheral can terminat e the DMA transfer at any time by asserting th e DONE signal . The peripheral must also deassert the REQ signal when it asserts the DONE signal.  The DONE signal can be asserted during a transfer b[...]

  • Страница 346

    EXTERNAL DMA Contr ol and Sta tus registers 346 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Control and Status registers The external DMA configuration registers are located at base address 0x A0 80_ 000 [...]

  • Страница 347

    . . . . . EXTERNAL DMA DMA Contr ol r egister www .digiembedded.com 347 Register Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DMA Control register Address: A080_0004, A080_0014 The DMA Control register conta[...]

  • Страница 348

    EXTERNAL DMA D M A C o n t ro l re g i s t e r 348 Hardware Reference NS9215 Registe r bit assignment Bit(s) Access Mnemonic Reset Description D31 R/W CE 0 Ch anne l enab le Enables and disables DMA operations as required. After a DMA chan nel has entered the IDL E state for any reason, this field mu st be written to a 1 to initiate further DMA tra[...]

  • Страница 349

    . . . . . EXTERNAL DMA DMA Contr ol r egister www .digiembedded.com 349 D22:21 R/W DB 0 Destination burst Defines the AHB maximum burst size allowed when writing to the destination. Note that the destination must have e nough space, as defined by this register se tting, before asserting REQ. 00 1 unit as set by the destination width field (D26:25) [...]

  • Страница 350

    EXTERNAL DMA DMA S tatus and Interr upt Enable r egister 350 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DMA Status and Interr upt Enable register Address: A080_0008, A080_00 18 The DMA Status and Interru[...]

  • Страница 351

    . . . . . EXTERNAL DMA DMA St atus and Interr upt Enable r egister www .digiembedded.com 351 Register bit assignment Bit(s) Access Mnemonic Reset Description D31 R/W1C NCIP 0 Normal completion interrupt pending Set when a buffer descriptor has been closed. A normal DMA channel completion occurs when the BLEN count (D15:00) expires to zero and the L[...]

  • Страница 352

    EXTERNAL DMA DMA Peripheral Chip Select register 352 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DMA Peripheral Chip Select register Address: A080_000C, A080_00 1C The DMA P eripheral Chip Sele ct registe[...]

  • Страница 353

    . . . . . EXTERNAL DMA DMA Peripheral Chip Select r egister www .digiembedded.com 353 Register bit assignment Bit(s) Access Mnemonic Reset Definition D31:02 R/W Not used 0 This field must always be set to 0. D01:00 R/W SEL 0 Chip select Defines which of the four memory interf ace chip select signals (nmpmcstcs out[n]) is connected to the external p[...]

  • Страница 354

    EXTERNAL DMA DMA Peripheral Chip Select register 354 Hardware Reference NS9215[...]

  • Страница 355

    . . . . . AES DATA ENCRYPTION/DECRYPTION MODULE www .digiembedded.com 355 AES Data Encryption/Decryption Module CHAPTER 6 T he AES data encryption/decryption modu le provides IPSec-compatible network security to processor-based systems. Th e AES core module implements Rijndael encoding/decoding in comp liance with the NIST Adv a nc ed Encryption St[...]

  • Страница 356

    AES DATA ENCRYPTION/DECRYPTION MODULE AES DMA buffer descriptor 356 Hardware Reference NS9215 Block diagram Data blocks The AES module works on 128-b it blocks of data. This table shows the perform ance per each 128-bit b lock, depending on the ke y size: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 357

    . . . . . AES DATA ENCRYPTION/DECRYPTION MODULE AES DMA buffer descriptor www .digiembedded.com 357 AES buffer descriptor diagram Field definitions follow . Source addr ess [pointer] The source address pointer identifies the st arting location of the source data. The source address can be aligned to any byte boundary . Note: Optimal performa nc e i[...]

  • Страница 358

    AES DATA ENCRYPTION/DECRYPTION MODULE AES DMA buffer descriptor 358 Hardware Reference NS9215 AES op code Indicates the contents of the data buff er associated with this descriptor: 000 Non-AES memory-to-memory or external DMA mode 001 Key buffer 010 IV buffer 011 Nonce buffer (CCM mode only , 16 bytes fixed length) 100 Additional authenti cation d[...]

  • Страница 359

    . . . . . AES DATA ENCRYPTION/DECRYPTION MODULE Decryption www .digiembedded.com 359 The DMA channel does not try a transfer wh en the F bit is clear . The DMA channel enters an idle state upon fetching a bu ffer desc riptor with the F bit clea red. When the F bit is modified by th e device dr iver , the device driver must also write an ‘I’ to [...]

  • Страница 360

    AES DATA ENCRYPTION/DECRYPTION MODULE CBC, CFB, OFB, and CTR pr ocessing 360 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CBC, CFB, OFB, and CTR processing CBC, CFB, OFB, and CTR modes n eed an init ializa[...]

  • Страница 361

    . . . . . AES DATA ENCRYPTION/DECRYPTION MODULE CCM mode www .digiembedded.com 361  For encryption, software must set up th is buffer descriptor sequence: K ey , Nonce, additional dat a (op tional), data (used to compute the authentication code), data (used to perform the actual encryption).  For decryption, software must set up th is buffer [...]

  • Страница 362

    AES DATA ENCRYPTION/DECRYPTION MODULE CCM mode 362 Hardware Reference NS9215[...]

  • Страница 363

    363 I/O Hub Module CHAPTER 9 T he I/O hub provides access to the low sp eed ports on the processor through one master port on the AHB bus. The low speed ports include four UAR T ports, one SPI port, one I 2 C port, 2 multi-function controlled ports, and one a nalog-to-digital (A/D) port. UAR T channel C can be c onfigured for HDLC operation. The SP[...]

  • Страница 364

    I/O HUB MOD ULE DMA contr oller 364 Hardware Reference NS9215 31 March 2008 Block diagram AHB slave interface The CPU has access to the control and stat us registers in the DMA controller , the peripheral device s, and th e GP IO con figuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 365

    . . . . . I/O HUB MODULE DMA contr oller www .digiembedded.com 365 Buffer descriptors The pe ripheral buffer data is held in buffe rs in external memory , linked together using buffer descriptors. The buffer desc riptors are 16 bytes in length and are located contiguou sly in external memory . This is the format of the buffer descriptor: Source add[...]

  • Страница 366

    I/O HUB MOD ULE DMA contr oller 366 Hardware Reference NS9215 31 March 2008  For transmit channels. CPU sets the F bit after the data is written to a buffer . The DMA controller clears this bit as each buffer is read from external memory . If the DMA controller ever find s th at this bit is not set when the buffer descriptor is read , the NRIP b[...]

  • Страница 367

    . . . . . I/O HUB MODULE T ransmit DMA example www .digiembedded.com 367 HDLC SPI Not applicable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Transmit DMA example After the last buffer in the data packet ha s been placed in sy ste[...]

  • Страница 368

    I/O HUB MOD ULE Contr ol and status register addr ess maps 368 Hardware Reference NS9215 31 March 2008 2 V erifies that the data buffer is valid by making sure the F bit is set to 1. 3 R eads the first data buff er , in 16-byte bursts. 4 Continues to process the buffer descript ors and data buffers until all data has been transmitted from the buffe[...]

  • Страница 369

    . . . . . I/O HUB MODULE Contr ol and status re gister addr ess maps www .digiembedded.com 369 Note: R egisters 9000_0000 – 9000_7FFF and registers 9000_80 00 – 9000_FFFF are reserved. UAR T A register address map UAR T B register address map Register Offset Description (31:00) 0x9001_0000 UART A Interrupt and FIFO Status 0x9001_0004 UART A DMA[...]

  • Страница 370

    I/O HUB MOD ULE Contr ol and status register addr ess maps 370 Hardware Reference NS9215 31 March 2008 UAR T C register address map UAR T D register address map 0x9001_8030 – 0x9001_8FFF Reserved 0x9001_9000 – 0x9001_9FFF UART B CSR Space Register Offset Description (31:00) Register Offset Description (31:00) 0x9002_0000 UART C Interrupt and FI[...]

  • Страница 371

    . . . . . I/O HUB MODULE Contr ol and status re gister addr ess maps www .digiembedded.com 371 SPI register address map AD register address map Reserved R egisters 9004_0000 – 9004_7FFF and 9004_8000 – 9004_FFFF are reserved. I 2 C register address map Reserved R egisters 9005_8000 – 9005_FFFF are reserv ed. 0x9002_8030 – 0x9002_8FFF Reserv[...]

  • Страница 372

    I/O HUB MOD ULE [Module] Interrupt and FIFO S tatus register 372 Hardware Reference NS9215 31 March 2008 RT C r e g i s t e r address map IO Hardware Assist register address map (0) IO Hardware Assist register address map (1) IO register address map (0) IO register address map (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 373

    . . . . . I/O HUB MODULE [Module] Interrupt and FIFO S tatus register www .digiembedded.com 373 Register Register bit assignment 1 3 1 2 1 1 1 0 98765432 10 15 14 31 29 28 27 26 25 24 23 22 21 20 1 9 18 17 16 30 Re s e r v e d RXN CI P RXE CI P RXN RI P RXC AI P RXF OF I P TX N CI P TX F U FI P TX F S RI P RX FI F O em pt y Re s e r v e d M OD IP R[...]

  • Страница 374

    I/O HUB MOD ULE [Module] Interrupt and FIFO S tatus register 374 Hardware Reference NS9215 31 March 2008 D26 R/W* RXFO FIP 0x0 RX FIFO ove rflow interrupt pendin g Set when the RX FIFO finds a n overflow condition. D25 R/W* RXFSR IP 0x0 RX FIFO service request interrupt pen ding (RX) Set when the RX FIFO level rises above the receive FIFO threshold[...]

  • Страница 375

    . . . . . I/O HUB MODULE [Module] DMA RX Contr ol www .digiembedded.com 375 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [ Module ] DMA RX Control Addresses: 9000_0004 / 9000_8 004 / 9001_0004 / 9001 _8004 / 9002_0004 / 9002_8004 /[...]

  • Страница 376

    I/O HUB MOD ULE [Module] DMA RX Buffer Descriptor Pointer 376 Hardware Reference NS9215 31 March 2008 Registe r Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [ Module ] DMA RX Buffer Descriptor Pointer Addre[...]

  • Страница 377

    . . . . . I/O HUB MODULE [Module] RX Interrupt Configuration register www .digiembedded.com 377 Register Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [ Module ] RX Interrupt Configuration register Addresses:[...]

  • Страница 378

    I/O HUB MOD ULE [Module] Dir ect Mode RX Status FIFO 378 Hardware Reference NS9215 31 March 2008 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [ Module ] Direct Mode RX Status FIFO Addresses: 9000_0010 / 9000_801 0 / 9001_0010 / 900[...]

  • Страница 379

    . . . . . I/O HUB MODULE [Module] Dir ect Mode RX Data FIFO www .digiembedded.com 379 Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [ Module ] Direct Mode RX Data FIFO Addresses: 9000_0014 / 9000_8 014 / 9001[...]

  • Страница 380

    I/O HUB MOD ULE [Module] DMA TX Contr ol 380 Hardware Reference NS9215 31 March 2008 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [ Module ] DMA TX Control Addresses: 9000_0018 / 9000_801 8 / 9001_0018 / 9001_8 018 / 9002_0018 / 90[...]

  • Страница 381

    . . . . . I/O HUB MODULE [Module] DMA TX Buffer Descriptor Pointer www .digiembedded.com 381 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [ Module ] DMA TX Buffer Descriptor Pointer Addresses: 9000_001C / 9000_8 01C / 9001_001C / 9[...]

  • Страница 382

    I/O HUB MOD ULE [Module] Dir ect Mode TX Data FIFO 382 Hardware Reference NS9215 31 March 2008 Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [ Module ] Direct Mode TX Data FIFO Addresses: 9000_0028 / 9000_80[...]

  • Страница 383

    . . . . . I/O HUB MODULE [Module] Dir ect Mode TX Data Last FIFO www .digiembedded.com 383 Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [ Module ] Direct Mode TX Data Last FIFO Addresses: 9000_002C / 9000_8 [...]

  • Страница 384

    I/O HUB MOD ULE [Module] Dir ect Mode TX Data Last FIFO 384 Hardware Reference NS9215 31 March 2008[...]

  • Страница 385

    . . . . . SERIAL CONTROL MODULE: UAR T www .digiembedded.com 385 Serial Control Module: UAR T CHAPTER 10 T he processor ASIC supports four independent univ ersal async hronous receiver/transmitter (UART) channels (A through D). Each channel support s several modes, conditions, and formats. Features  DMA transfers to and from system memory  In[...]

  • Страница 386

    SERIAL CONTROL MODULE: UAR T Normal mode operation 386 Hardware Reference NS9215 UAR T module structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Normal mode operation The UAR T achieves normal mode operatio n by pr ogram ming t[...]

  • Страница 387

    . . . . . SERIAL CONTROL MODULE: UAR T Baud rate generator www .digiembedded.com 387 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Baud rate generator The baud rate clock is generated by d ividing the system refere nce clock by a pr[...]

  • Страница 388

    SERIAL CONTROL MODULE: UAR T Har dwar e- based flow control 388 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hardware-based flow control The UAR T module provides expanded functi onality for hardware-based[...]

  • Страница 389

    . . . . . SERIAL CONTROL MODULE: UAR T ARM wakeup on cha racter recog nition www .digiembedded.com 389 character completes, regard less of any flow control me chanism that might stall normal data transmission. Use the Force T ransmit Character Contro l register to program this operation. Force character transmission procedure These steps outline a [...]

  • Страница 390

    SERIAL CONTROL MODULE: UAR T W rapper Control an d Status r egisters 390 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Wrapper Control and Status registers The configuration registers for UAR T modu le A st[...]

  • Страница 391

    . . . . . SERIAL CONTROL MODULE: UAR T W rapper Configur ation r egister www .digiembedded.com 391 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Wrapper Configuration register Address: 9001_1000 / 900 1_9000 / 9002_1000 / 9 002_9000[...]

  • Страница 392

    SERIAL CONTROL MODULE: UAR T W rapper Configuration r egister 392 Hardware Reference NS9215 D17 R/W RXFLUSH 0 Resets the cont ents of the 64-byte RXFIFO. Write a 1, then a 0 to reset the FIFO. D16 R/W TXFLUSH N/A Resets the cont ents of the 64-byte TX FIFO. Write a 1, then a 0 to reset the FIFO. D15:14 R RXBYTES 00 Indicates how many byt es are pen[...]

  • Страница 393

    . . . . . SERIAL CONTROL MODULE: UAR T Interrupt E nable r egister www .digiembedded.com 393 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt Enable register Address: 9001_1004 / 900 1_9004 / 9002_1004 / 9 002_9004 Use the In[...]

  • Страница 394

    SERIAL CONTROL MODULE: UAR T Interrupt Enable r egister 394 Hardware Reference NS9215 D19 R/W OF LOW 0 Enable overflow error Enables interrupt generati on if the 4-character FIFO in the UART overflows. Note: This should not happen in a pro perly configured system. D18 R/W PA RITY 0 Enable par ity error Enables interrupt generation wh en a charac te[...]

  • Страница 395

    . . . . . SERIAL CONTROL MODULE: UAR T Interrupt S tatus r egister www .digiembedded.com 395 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt Status register Address: 9001_1008 / 900 1_9008 / 9002_1008 / 9 002_9008 The Interr[...]

  • Страница 396

    SERIAL CONTROL MODULE: UAR T Interrupt S tatus register 396 Hardware Reference NS9215 Registe r Registe r bit assignment 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 2 3 22 21 20 19 18 17 16 30 MA T C H 0 CGAP BGA P CTS TBC TX_ ID L E PAR I TY FRA ME Not u s e d BRE A K MAT C H 4 RI Res er ved FO RCE O FLOW RXCLS MAT C H 3 MA T C H 2 MA T [...]

  • Страница 397

    . . . . . SERIAL CONTROL MODULE: UAR T Interrupt S tatus r egister www .digiembedded.com 397 D11 R/W1TC MATCH3 0 Character match3 Indicates th at a receive character match has occurred against the Receive Match Register 3. D10 R/W1TC MATCH2 0 Character match2 Indicates th at a receive character match has occurred against the Receive Match Register [...]

  • Страница 398

    SERIAL CONTROL MODULE: UAR T Receive Character GAP Contr ol r egister 398 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Receive Character GAP Control register Address: 9001_100C / 9001_900C / 9002_100 C / 9[...]

  • Страница 399

    . . . . . SERIAL CONTROL MODULE: UAR T Receive Bu ffer GAP Contr ol r egister www .digiembedded.com 399 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Receive Buffer GAP Control register Address: 9001_1010 / 900 1_9010 / 9002_1010 / [...]

  • Страница 400

    SERIAL CONTROL MODULE: UAR T Receive Character-Based Flow Contr ol register 400 Hardware Reference NS9215 The R eceive Character Match Control registers con figu r e th e rec ei ve character match control logic . Each UAR T module has five R eceive Character Match Control registers. Registe r Registe r bit assignment . . . . . . . . . . . . . . . .[...]

  • Страница 401

    . . . . . SERIAL CONTROL MODULE: UAR T Receive Character-Based Flow Contr ol register www .digiembedded.com 401 Caution: Be aware that if multiple matches oc cu r , an XOFF assertion will supersede an XON assertion. Register Register bit assignment 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 20 19 1 8 17 16 30 EN ABL E No t u s e[...]

  • Страница 402

    SERIAL CONTROL MODULE: UAR T For ce T ransmit Character Control r egister 402 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Force Transmit Character Control register Address: 9001_102C / 9001_902C / 9002_10[...]

  • Страница 403

    . . . . . SERIAL CONTROL MODULE: UAR T ARM W akeup Contr ol register www .digiembedded.com 403 Register Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ARM Wakeup Control register Address: 9001_1030 / 900 1_903[...]

  • Страница 404

    SERIAL CONTROL MODULE: UAR T T ransmit Byte Count 404 Hardware Reference NS9215 Registe r Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Transmit Byte Count Address: 9001_1034 / 9001_9034 / 9002_103 4 / 9002_[...]

  • Страница 405

    . . . . . SERIAL CONTROL MODULE: UAR T UART Receive Bu ff er www .digiembedded.com 405 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UART Receive Buffer Address: 9001_1100 / 900 1_9100 / 9002_1100 / 9 002_9100, DLAB = 0, R ead U A R[...]

  • Страница 406

    SERIAL CONTROL MODULE: UAR T UART Baud Rate Divisor LSB 406 Hardware Reference NS9215 Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UART Baud Rate Divisor LSB Address: 9001_1100 / 9001_9100 / 9002_110 0 / 90[...]

  • Страница 407

    . . . . . SERIAL CONTROL MODULE: UAR T UART Interrupt Enable r egister www .digiembedded.com 407 Register Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UART Interrupt Enable register Address: 9001_1104 / 900 [...]

  • Страница 408

    SERIAL CONTROL MODULE: UAR T UART Interrupt Identif ication r egister 408 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UART Interrupt Identification register Address: 9001_1108 / 9001_9108 / 9002_110 8 / 9[...]

  • Страница 409

    . . . . . SERIAL CONTROL MODULE: UAR T UART FIFO Contr ol register www .digiembedded.com 409 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UART FIFO Control register Address: 9001_1108 / 900 1_9108 / 9002_1108 / 9 002_9108, W rite T[...]

  • Страница 410

    SERIAL CONTROL MODULE: UAR T UART Line Contr ol r egister 410 Hardware Reference NS9215 Registe r Registe r bit assignment 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 2 0 19 18 17 16 30 Re s e r v e d Re s e r v e d DL AB SB SP E P S PE N STB W LS Bits Access Mnemonic Reset Description D31:08 N/A Reserved N/A N/A D07 R/W DLAB 0 D[...]

  • Страница 411

    . . . . . SERIAL CONTROL MODULE: UAR T UART Modem Contr ol r egister www .digiembedded.com 41 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UART Modem Control register Address: 9001_1110 / 900 1_9110 / 9002_1110 / 9 002_9110 The U[...]

  • Страница 412

    SERIAL CONTROL MODULE: UAR T UART Modem S tatus register 412 Hardware Reference NS9215 Registe r Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UART Modem Status register Address: 9001_1118 / 9001_9118 / 9002[...]

  • Страница 413

    . . . . . SERIAL CONTROL MODULE: UAR T UART Modem S t atus r egister www .digiembedded.com 413 Register Register bit assignment 1 3 1 2 1 1 1 0 987654 3210 15 14 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30 Res er v ed Res e r v ed DDSR DDCD CTS DSR DCTS DCD RI TERI Bits Access Mnemonic Reset Description D31:08 N/A Reserved N/A N/A D07 R DCD N/A[...]

  • Страница 414

    SERIAL CONTROL MODULE: UAR T UART Modem S tatus register 414 Hardware Reference NS9215[...]

  • Страница 415

    . . . . . SERIAL CONTROL MODULE: HDLC Receive and trans mit operations www .digiembedded.com 415 Serial Control Module: HDLC CHAPTER 1 1 T he HDLC module allows f ull-duplex synchronous communication. Both the receiver and transmitter can se lect either an intern al or external clock. The HDLC module encapsulates data withi n opening an d closing f[...]

  • Страница 416

    SERIAL CONTROL MODULE: HDLC Clocking 416 Hardware Reference NS9215 Receive operation In the receiver , each byte is marke d with status to indicate end-of-frame, short frame, and CRC error . The receiver automatical ly synchronizes on flag bytes, and presets the CRC checker accordingly . If the current receive fram e is not needed (for example, bec[...]

  • Страница 417

    . . . . . SERIAL CONTROL MODULE: HDLC Data encoding www .digiembedded.com 417 between the opening and closing flags, except for the inserted zeroes, to the receiver data buffer . Last byte bit pattern table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 418

    SERIAL CONTROL MODULE: HDLC Digital phase-locked-loop (D PLL) operation: Encoding 418 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Digital phase-locked-loop (DPLL) operation: Encoding In the HDLC modu le, [...]

  • Страница 419

    . . . . . SERIAL CONTROL MODULE: HDLC DPLL operation: Adjustme nt ranges and output clocks www .digiembedded.com 419 DPLL-tracked bit cell boundaries The DPLL counter normally counts by 16 but if a transition occurs earlier or later than expected, the count is modified during the next co un t cycle.  If the transition occurs earlier than ex pect[...]

  • Страница 420

    SERIAL CONTROL MODULE: HDLC DPLL operation: Adjustme nt ranges and output clocks 420 Hardware Reference NS9215 NRZ and NRZI encoding With NRZ and NRZI encoding, all tra nsitions occur on bit-cell bou ndaries and th e data should be sampled in the middle of the bit cell.  If a transition occurs after the expect ed bit-cell boundary , but before t[...]

  • Страница 421

    . . . . . SERIAL CONTROL MODULE: HDLC Normal mode operation www .digiembedded.com 421 only uses the clock transitions to track the bit-cell boundaries, by ignoring all transitions occurring outside a window around the center of the bit-cell. The window is half a bit-cell wide. Because the clock transitions are guaranteed, the DPLL requires that the[...]

  • Страница 422

    SERIAL CONTROL MODULE: HDLC W rapper and HDLC Contr ol and Status r egisters 422 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Wrapper and HDLC Control and Status registers The configuration registers for t[...]

  • Страница 423

    . . . . . SERIAL CONTROL MODULE: HDLC W rapper Configur ation r egister www .digiembedded.com 423 Register Register bit assignment 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30 Reser ve d Rese rve d Rese rve d LL RL CRC RX CLOSE RXBYTES Rese rv ed RXEN TXEN MODE RX FLUSH TX FLUSH Bits Access Mnemonic Reset Descrip[...]

  • Страница 424

    SERIAL CONTROL MODULE: HDLC Interrupt Enable r egister 424 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt Enable register Address: 9002_9004 Use the Interrupt Enable registe r to enable interrupt g[...]

  • Страница 425

    . . . . . SERIAL CONTROL MODULE: HDLC Interrupt S tatus r egister www .digiembedded.com 425 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt Status register Address: 9002_9008 The Interrupt Status register provides status abo[...]

  • Страница 426

    SERIAL CONTROL MODULE: HDLC Interrupt S tatus register 426 Hardware Reference NS9215 Registe r Registe r bit assignment 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 2 3 22 21 20 19 18 17 16 30 Res e r ve d TBC Re s e r v ed Not us e d VCRC RABORT HI NT Re s e r v ed OF L OW I CRC RXCLS R BC TX_ I DL E RX_ I DL E Bits Access Mnemonic Reset [...]

  • Страница 427

    . . . . . SERIAL CONTROL MODULE: HDLC HDLC Data Register 1 www .digiembedded.com 427 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . HDLC Data Register 1 Address: 9002_9100 HDLC Data R egister 1 reads data from th e receive buffer and[...]

  • Страница 428

    SERIAL CONTROL MODULE: HDLC HDLC Data r egister 3 428 Hardware Reference NS9215 Registe r Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . HDLC Data register 3 Address: 9002_9108 HDLC Data R egister 3 writes th[...]

  • Страница 429

    . . . . . SERIAL CONTROL MODULE: HDLC HDLC Contr ol Register 1 www .digiembedded.com 429 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . HDLC Control Register 1 Address: 9002_9110 HDLC Control R egister 1 configures the HDLC transmitt[...]

  • Страница 430

    SERIAL CONTROL MODULE: HDLC HDLC Clock Divider Low 430 Hardware Reference NS9215 Registe r Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . HDLC Clock Divider Low Address: 9002_9118 1 3 1 2 1 1 1 0 9876543210 1[...]

  • Страница 431

    . . . . . SERIAL CONTROL MODULE: HDLC HDLC Clock Divider High www .digiembedded.com 431 Use the HDLC CLock Divider Low register to set bits 07:00 of the clock divider . This is the equation for the HDLC clock rate: Register Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 432

    SERIAL CONTROL MODULE: HDLC HDLC Clock Divider High 432 Hardware Reference NS9215 Registe r bit assignment Bits Access Mnemonic Reset Description D31:08 R Not used 0 Write this field to 0. D07 R/W EN 0 Clock enable Must be set when the internal clock is used. D06:00 R/W DIVH 0 Seven MSBs of the divider that generates the HDLC transmit and receive c[...]

  • Страница 433

    . . . . . SERIAL CONTROL MODULE: SPI www .digiembedded.com 433 Serial Control Module: SPI CHAPTER 12 T he processor ASIC contains a s ingle high speed, four-wire, serial peripheral interface (SPI) module. Features  DMA transfers to and from system memory  Four-wire interface (RXD, TXD, CLK, CS)  Multi-drop supported through GPIO programmin[...]

  • Страница 434

    SERIAL CONTROL MODULE: SPI SPI contr oller 434 Hardware Reference NS9215 SPI module structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SPI controller The SPI controller pr ov ides a full-duplex, synchronous, character-oriented [...]

  • Страница 435

    . . . . . SERIAL CONTROL MODULE: SPI SPI clocking modes www .digiembedded.com 435 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SPI clocking modes There are four SPI cloc king modes. Each mode’ s characteristics are defined by the[...]

  • Страница 436

    SERIAL CONTROL MODULE: SPI SPI clock generation 436 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SPI clock generation The reference clock for the SPI module is the system PLL output. This clock is a nomina[...]

  • Страница 437

    . . . . . SERIAL CONTROL MODULE: SPI System boot-over -SPI operation www .digiembedded.com 437 Av a i l a b l e strapping options EEPROM/FLASH header The boot-over-SPI hardware re quires several p ieces of us er-supplied information to complete the boot operatio n. This information must be located in a 128-byte header starting at address zero in th[...]

  • Страница 438

    SERIAL CONTROL MODULE: SPI System boot-over-S PI operation 438 Hardware Reference NS9215 Tim e to completion The boot-over-SPI operation is performed in two steps.  In the first step, the hardware fetches the 16-byte header . The data rate for this step is about 375 Kbps an d completes in less than 0.5ms.  In the second step, the hardware fe [...]

  • Страница 439

    . . . . . SERIAL CONTROL MODULE: SPI SPI Contr ol and S tatus r egisters www .digiembedded.com 439 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SPI Control and Status registers The configuration registers for the SPI module are loc[...]

  • Страница 440

    SERIAL CONTROL MODULE: SPI Clock Generation r egister 440 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Clock Generation register Address: 9003_1010 D11:08 R/W DISCARD 0 Discard bytes Defines the number of [...]

  • Страница 441

    . . . . . SERIAL CONTROL MODULE: SPI Interrupt E nable r egister www .digiembedded.com 441 Use this register to define the data rate of the interface. This register must be programmed in thr ee steps. Failure to follow these steps can result in unpredictable beha vior of the SPI module. Register programming steps 1 Set the ENABL E field to 0. The D[...]

  • Страница 442

    SERIAL CONTROL MODULE: SPI Interrupt S tatus register 442 Hardware Reference NS9215 Use the Interrupt Enable registe r to enable interrupt generation on specific event s. Enable the interrupt by writing a 1 to the appropriat e bit field(s). Registe r Registe r bit assignment T . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 443

    . . . . . SERIAL CONTROL MODULE: SPI SPI timing characteristics www .digiembedded.com 443 Register Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SPI timing characteristics These are the guaranteed timing para[...]

  • Страница 444

    SERIAL CONTROL MODULE: SPI SPI timing characteristics 444 Hardware Reference NS9215 Notes: 1 The unit clock refers to the SPI master clock. 2 The SPI master inter face clock duty cycle is alwa ys at least 52/48. The numbers shown here are for a 40 Mhz clock rate. 3 The numbers shown here are for a 40 Mhz clock rate. Usually , this parameter is one [...]

  • Страница 445

    . . . . . SERIAL CONTROL MODULE: SPI SPI timing characteristics www .digiembedded.com 445 2 The numbers shown here are for a 7.5 Mhz SPI slave interface clock rate. 3 The numbers shown here are for a 300 Mh z PLL output frequency . This value must be proportionally increased wi th a PLL output frequency decrease. 4 This parameter does not depend on[...]

  • Страница 446

    SERIAL CONTROL MODULE: SPI SPI timing characteristics 446 Hardware Reference NS9215[...]

  • Страница 447

    . . . . . I2C MASTER/SLAVE INTERFACE Physical I2C bus www .digiembedded.com 447 I2C Master/Slave Interface CHAPTER 13 T he I2C master/slave interface provides an interface betw een the ARM CPU and the I2C bus. The I2C master/slave interface basically is a parallel-to-serial an d serial-to-parallel converter . The parallel data received from the ARM[...]

  • Страница 448

    I2C MASTER/SLAVE INTERFACE I2C external addr esses 448 Hardware Reference NS9215 serial clock. Serial clock modula tion can be controlled by both the transmitter and rec eiver , based in their hosts’ se rvice speed . Multi-ma ster bus The I 2 C is a true multi-master bus with co llision detection and arbitration to prevent data corruption when tw[...]

  • Страница 449

    . . . . . I2C MASTER/SLAVE INTERFACE I2C command interface www .digiembedded.com 449 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I 2 C command interface The I 2 C module converts parallel (8-bit) data to serial data and serial dat[...]

  • Страница 450

    I2C MASTER/SLAVE INTERFACE I2C r egisters 450 Hardware Reference NS9215 bus owner , the transaction goes through. If the module loses bus arbitration, an M_ARBIT_LOST interrupt is generated to the ho s t processor and the command must be reissued. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]

  • Страница 451

    . . . . . I2C MASTER/SLAVE INTERFACE S tatus Receive Data r egister www .digiembedded.com 451 Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Status Receive Data register Address: 9005 0000 The Status R eceive [...]

  • Страница 452

    I2C MASTER/SLAVE INTERFACE Master Addr ess register 452 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Master Address register Address: 9005 0004 If using 7-bit addressing, the master devi ce address field u[...]

  • Страница 453

    . . . . . I2C MASTER/SLAVE INTERFACE Slave Addr ess r egister www .digiembedded.com 453 Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Slave Address register Address: 9005 0008 If using 7-bit addres sing, th e[...]

  • Страница 454

    I2C MASTER/SLAVE INTERFACE Configuration r egister 454 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuration register Address: 9005 000C The Configuration register controls th e timing on the I 2 C bu[...]

  • Страница 455

    . . . . . I2C MASTER/SLAVE INTERFACE Interrupt Codes www .digiembedded.com 455 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt Codes Interrupts are signaled in the irq_code field in the ST A TUS_REG , by providing the approp[...]

  • Страница 456

    I2C MASTER/SLAVE INTERFACE Softwar e driver 456 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Software driver I 2 C master software driver The I 2 C master software driver uses three commands only: • M_RE[...]

  • Страница 457

    . . . . . I2C MASTER/SLAVE INTERFACE Flow charts www .digiembedded.com 457 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Flow charts Master module (normal mode, 16- bit) Notes: 1 W riting M_ADDR_REQ is not required if the device add[...]

  • Страница 458

    I2C MASTER/SLAVE INTERFACE Flow charts 458 Hardware Reference NS9215 Slave module (normal mod e, 16- bit) Note: ST A TUS_REG and RX_DA T A_REG are read simultaneously . wait i rq re ad rx /status S_RX _DATA_1ST irq S_TX_DAT A_1ST irq wa it irq re ad rx /status 1 S_RX_ABO RT irq S_RX_DATA irq S_NO_ACK irq S_TX_DATA irq wait ir q read status writ e c[...]

  • Страница 459

    459 Real T ime Clock Module CHAPTER 14 T he R eal Time Clock (RTC) module tracks the time of the day to an accuracy of 10 milliseconds and provides cale ndar fu nctionality that tracks day , month, and year . R TC functionality R TC monitors these time periods:  Y ear from 1900-2999  Month from 1-12  Date from 1-28, 29, 30, or 31, a s a fu[...]

  • Страница 460

    REAL TIME CLOCK MODULE RTC configuration and status r egisters 460 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RTC configuration and status registers All configuration registers must be acc ess ed as 32-b[...]

  • Страница 461

    . . . . . REAL TIME CLOCK MODULE 12/24 Hour r egister www .digiembedded.com 461 Register bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12/24 Hour register Address: 9006 0004 The 12/24 Hour register controls 12 or 24 h[...]

  • Страница 462

    REAL TIME CLOCK MODULE Ti m e re g i s t e r 462 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Time register Address: 9006 0008 The TIme register s ets the time values to the correct values, and reads the t[...]

  • Страница 463

    . . . . . REAL TIME CLOCK MODULE Calendar r egister www .digiembedded.com 463 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Calendar register Address: 9006 000C The Calendar re gister sets the cal end ar va lues to the correct value[...]

  • Страница 464

    REAL TIME CLOCK MODULE T ime Alarm register 464 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Time Alarm register Address: 9006 0010 The T ime Alarm register sets the time alarm. BCD is binary coded decimal[...]

  • Страница 465

    . . . . . REAL TIME CLOCK MODULE Calendar Alarm r egister www .digiembedded.com 465 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Calendar Alarm register Address: 9006 0014 The Calendar Alarm register sets the ca lendar alarm. Th is[...]

  • Страница 466

    REAL TIME CLOCK MODULE Event Flags register 466 Hardware Reference NS9215 Registe r Registe r bit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Event Flags register Address: 9006 001C The Event Flags register indicates th[...]

  • Страница 467

    . . . . . REAL TIME CLOCK MODULE Event Flags r egister www .digiembedded.com 467 Register Register bit assignment 13 12 11 10 9 8 7 6 5 4 3 2 1 0 15 14 31 29 28 27 26 25 24 23 22 21 20 1 9 18 17 16 30 Reserved Reser ved Mnth Evnt Date Evnt Hour Evnt Min Evnt Sec Evnt Hsec Evnt Alarm Bits Access Mnemonic Reset Description D31:07 N/A R eserved N/A N/[...]

  • Страница 468

    REAL TIME CLOCK MODULE Interrupt Enable r egister 468 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt Enable register Address: 9006 0020 The Interrupt Enable regist er set s which events can generat[...]

  • Страница 469

    . . . . . REAL TIME CLOCK MODULE Interrupt Disable r egister www .digiembedded.com 469 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt Disable register Address: 9006 0024 The Interrupt Disable register resets in terrupts tha[...]

  • Страница 470

    REAL TIME CLOCK MODULE Interrupt Enable S tatus r egister 470 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt Enable Status register Address: 9006 0028 The Interrupt Enable Status register dete rmin[...]

  • Страница 471

    . . . . . REAL TIME CLOCK MODULE General S tatus register www .digiembedded.com 471 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General Status register Address: 9006 002C The General Status register determines the status of the R [...]

  • Страница 472

    REAL TIME CLOCK MODULE General S tatus register 472 Hardware Reference NS9215[...]

  • Страница 473

    473 Analog-to-Digital Converter (ADC) Module CHAPTER 15 T he NS9215 ASIC supports a 12-bit succe ssive approximation analog-to-digital converter (ADC). T o maximize flexibility , an input pin is provided to apply an external reference voltage, which defines the full scale input range. An analog multiplexe r is inc luded to enable the sel ec tion of[...]

  • Страница 474

    ANALOG-TO-DIGITAL CONVERTER (ADC) MODULE ADC DMA pr ocedure 474 Hardware Reference NS9215 ADC control block The ADC control block provides access betwe en the CPU and the ADC module. The ADC clock and control signals are generate d in this block. The ADC module output can be either DMA ’d to memory or read directly by the CPU.  If DMA is enabl[...]

  • Страница 475

    . . . . . ANALOG-TO-DIGITAL CONVERTER (ADC) MODULE ADC contr ol and status registers www .digiembedded.com 475 2 Set up the ADC DMA control registers and buffer descriptors (UART channel D). 3 R e set the ADC module by writing a 0 th en a 1 to bit 8 in the Module R eset register at address A090 0180. 4 Flush the ADC DMA FIFO by writing a 1 th en a [...]

  • Страница 476

    ANALOG-TO-DIGITAL CONVERTER (ADC) MODULE ADC Configuration r e gister 476 Hardware Reference NS9215 Registe r Registe r bit assignment 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30 Res e r ve d Res e r ve d IN T C LR ADCEN IN S T A T DM AE N SE L Bit(s) Access Mnemonic Reset Description D31 R/W ADCEN 0 0 The ADC m[...]

  • Страница 477

    . . . . . ANALOG-TO-DIGITAL CONVERTER (ADC) MODULE ADC Clock Confi guration r egister www .digiembedded.com 477 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ADC Clock Configuration register Address: 9003_9004 The ADC Clock Configur[...]

  • Страница 478

    ANALOG-TO-DIGITAL CONVERTER (ADC) MODULE ADC Output Registers 0-7 478 Hardware Reference NS9215 Registe r Registe r bit assignment 1 3 1 2 1 1 1 0 9876543210 15 14 31 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30 Not u s e d DOUT Not u s ed Bit(s) Access Mnemonic Reset Description D31:12 R/W Not used 0 This fiel d must be written to 0. D11:00 R DOUT[...]

  • Страница 479

    . . . . . TIMI NG Electric al charac teristics www .digiembedded.com 479 Ti m i n g CHAPTER 16 T his chapter provides the electrical spec ifications, or timing, integral to the operation of the processor . T iming in cludes information about DC and AC characteristics, output rise and fall timi ng, and crystal oscillator specifications. . . . . . . [...]

  • Страница 480

    TIM I NG Electrical characte ristics 480 Hardware Reference NS9215 Recommended operating conditions R ecommended operating condit ions specify voltage and temperature ranges over which a circuit’ s correct logic func tion is guaranteed. The specified DC el ec trical characteristics are satisfied over these ranges. Below are the recomme nded opera[...]

  • Страница 481

    . . . . . TIMI NG DC electric al characteristic s www .digiembedded.com 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DC electrical characteristics DC characteristics specify the wors t-case DC electrical perfor mance of the I/O[...]

  • Страница 482

    TIM I NG Reset and edge sensitive input timing r equir ements 482 Hardware Reference NS9215 Ouputs All electrical out puts are 3.3V interface. DC electrical outputs are provided b elow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[...]

  • Страница 483

    . . . . . TIMI NG Reset and edge se nsitive input tim ing r equirements www .digiembedded.com 483 If an external device driving the reset or edge sensitive input on a Digi processor cannot meet the 500ns maximu m rise and fall time requirement, the signal must be buffered with a Schmitt trigger device. Here are sample Schmitt trigger device part nu[...]

  • Страница 484

    TIM I NG Memory T iming 484 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory Timing All AC characteristics are measured with 35pF , unless otherwise noted. Memory timing contains parameters and di agram[...]

  • Страница 485

    . . . . . TIMI NG Memory T iming www .digiembedded.com 485 SDRAM burst read (16-bit) Notes: 1 This is the bank and RAS address. 2 This is the CAS address. p r e a c t r e a d l a t d -A d -B d -C d -D d - E d - F d -G d - H M9 M8 M7 M6 M5 M1 1 M4 M2 M1 N ote-1 N o t e -2 clk_ ou t da ta< 3 1:1 6> ad dr d a ta _m as k < 3 : 0 > d y _c s [...]

  • Страница 486

    TIM I NG Memory T iming 486 Hardware Reference NS9215 SDRAM burst read (16 bit), CAS latency = 3 Notes: 1 This is the bank and RAS address. 2 This is the CAS address. p r e a c t r e ad l at l at d -A d -B d- C d- D d - E d- F d -G d -H M9 M8 M7 M6 M5 M1 1 M4 M2 M1 N ote - 1 N o te -2 clk_ o u t da ta< 3 1:1 6> ad dr d ata _m as k < 3: 0&g[...]

  • Страница 487

    . . . . . TIMI NG Memory T iming www .digiembedded.com 487 SDRAM burst write (16 bit) Notes: 1 This is the bank and RAS address. 2 This is the CAS address. p r e a c t w r d - A d -B d -C d - D d - E d -F d - G d -H M9 M8 M7 M6 M5 M5 M4 M1 2 M1 0 No t e- 1 N ot e- 2 cl k_ ou t d ata < 31: 0> ad dr d ata _m as k< 3: 2> da ta_ m as k< [...]

  • Страница 488

    TIM I NG Memory T iming 488 Hardware Reference NS9215 SDRAM burst read (32 bit) Notes: 1 This is the bank and RAS address. 2 This is the CAS address. pr ec h g a c t i v e re ad c a s l at da ta -A dat a- B da ta-C d ata -D M9 M8 M7 M6 M5 M1 1 M4 M2 M1 No t e- 1 N ot e -2 clk_ ou t d ata < 31: 0> ad dr da ta_ m as k < 3:0 >* d y _c s _ [...]

  • Страница 489

    . . . . . TIMI NG Memory T iming www .digiembedded.com 489 SDRAM burst read (32 bit), CAS latency = 3 Notes: 1 This is the bank and RAS address. 2 This is the CAS address. p r e a ct r e a d la t lat dat a-A d at a -B d a ta -C d at a - D M9 M8 M7 M6 M5 M1 1 M4 M2 M1 Not e -1 Not e -2 clk_ out d ata < 31: 0> ad d r da ta_ m as k < 3:0 >[...]

  • Страница 490

    TIM I NG Memory T iming 490 Hardware Reference NS9215 SDRAM burst write (32-bit) Notes: 1 This is the bank and RAS address. 2 This is the CAS address. prec hg a ct i v e w r d-A dat a-B dat a-C dat a -D M9 M8 M7 M6 M5 M4 M1 2 M1 0 Not e-1 No t e- 2 cl k_ o u t dat a<31: 0> addr da t a_mas k <3: 0>* dy _c s _n< 3: 0> ras_ n cas_ n [...]

  • Страница 491

    . . . . . TIMI NG Memory T iming www .digiembedded.com 491 SDRAM load mode M4 M9 M8 M7 M5 SD L dM d td op c od e clk_o ut dy _ c s _n< 3 :0> * ra s_n ca s_ n we _ n ad dr <1 1: 0>[...]

  • Страница 492

    TIM I NG Memory T iming 492 Hardware Reference NS9215 SDRAM refresh mode M9 M8 M7 M6 M6 M6 M6 clk_ o ut dy _ c s 0_ n dy _ c s 1_ n dy _ c s 2_ n dy _ c s 3_ n ra s_n ca s_ n we _n[...]

  • Страница 493

    . . . . . TIMI NG Memory T iming www .digiembedded.com 493 Clock enable timing M1 3 M1 4 M3 cl k_ e n a b l e . td cl k_ o ut cl k_ e n < 3 :0 > S DRA M cycl e[...]

  • Страница 494

    TIM I NG Memory T iming 494 Hardware Reference NS9215 V alues in SRAM timing diagrams The next table describes the values sh own in the SRAM timing diagrams. Notes: 1 The (CPU clock out / 2) signal is for reference only . 2 Only one of the four dy_cs_n signals is used. The diagrams show the active low configuration, which can be reversed (active hi[...]

  • Страница 495

    . . . . . TIMI NG Memory T iming www .digiembedded.com 495 static_rd_0wt.mif S tat ic RAM r ead cycles with 0 wait states  WTRD = 1  WOEN = 0  If the PB field is set to 1, all four by te_lane signals will go low for 32-bit, 16- bit, and 8-bit read cycles.  If the PB field is set to 0, the by te_lane signal will always be high. M2 4 M2 3[...]

  • Страница 496

    TIM I NG Memory T iming 496 Hardware Reference NS9215 St a t i c R A M asynchronous page mode r ead, WTPG = 1  WTPG = 1  WTRD = 2  If the PB field is set to 1, all four byte_lane signals will go low for 32-bit,  16-bit, and 8-bit read cycles.  The asynchronous page mode will read 16 byte s in a page cy cle. A 32-bit bus will do four [...]

  • Страница 497

    . . . . . TIMI NG Memory T iming www .digiembedded.com 497 S tat ic RAM r ead cycle with configurable wait states  WTRD = from 1 to 15  WOEN = from 0 to 15  If the PB field is set to 1, all four byte_lane signals will go low for 32-bit, 16-bit, and 8-bi t read cycles.  If the PB field is set to 0, the byte_lane signal will always be hig[...]

  • Страница 498

    TIM I NG Memory T iming 498 Hardware Reference NS9215 St a t i c R A M sequential write cycles  WTWR = 0  WWEN = 0  During a 32-bit transfer , all four byte_lane signals will go low .  During a 16-bit transfer , two byte_lane signals will go low .  During an 8-bit transfer , only on e byte_lane signal will go low .  Note:  If t[...]

  • Страница 499

    . . . . . TIMI NG Memory T iming www .digiembedded.com 499 S tatic RAM write cycle  WTWR = 0  WWEN = 0  During a 32-bit transfer , all four byte_lane signals will go low .  During a 16-bit transfer , two by te_lane signals will go low .  During an 8-bit transfer , only on e byte_lane signal will go low .  Note:  If the PB field[...]

  • Страница 500

    TIM I NG Memory T iming 500 Hardware Reference NS9215 S tatic write cycle with configurable wait states  WTWR = from 0 to 15  WWEN = from 0 to 15  The WTWR field determines th e length on the write cycle.  During a 32-bit transfer , all four byte_lane signals will go low .  During a 16-bit transfer , two byte_lane signals will go low[...]

  • Страница 501

    . . . . . TIMI NG Memory T iming www .digiembedded.com 501 Slow peripheral acknowledge timing The table below describes the values show n in the slow peripheral ackn owle dge timing diagrams. Parm Description Min Max Unit Notes M15 clock high to data out valid -2 +2 ns M16 data out hold time from clock high -2 +2 ns M17 clock high to address valid [...]

  • Страница 502

    TIM I NG Memory T iming 502 Hardware Reference NS9215 Slow peripheral acknowledge r ead Slow peripheral acknowledge write M3 2 M2 6 M1 7 M1 8 M1 9 M2 0 M3 1 M2 7 M2 8 M2 3 M2 4 M2 9 M3 0 0n s 50 ns 10 0n s 15 0n s 20 0n s cl k_ o u t da t a< 3 1: 0> ad dr < 27 : 0 > st_ cs_ n < 3 : 0 > oe _n by t e _la n e< 3: 0 > ta _ st r [...]

  • Страница 503

    . . . . . TIMI NG Memory T iming www .digiembedded.com 503 Ethernet timing All AC characteristics are measured with 10pF , unless otherwise noted. The table below describes the values sh own in the Ethernet timing diagrams. Notes: 1 Minimum specificatio n is for fastest AHB bus clock of 88.5 MHz. Maxi mum specification is for slowest AHB bus cl ock[...]

  • Страница 504

    TIM I NG Memory T iming 504 Hardware Reference NS9215 I 2 C timing All AC characteristics are measured with 10pF , unless otherwise noted. The table below describes th e value s shown in the I 2 C timing diagram. Standard Mode Fast Mode Parm Description Min Max Min Max Unit C1 iic_sda to iic_scl START hold time 4.0 0.6 µ C2 iic_scl low period 4.7 [...]

  • Страница 505

    . . . . . TIMI NG Memory T iming www .digiembedded.com 505 SPI Timing All AC characteristics are measured with 10pF , unless otherwise noted. The next table describes the values shown in the LCD timing diagrams. Parm Description Min Max Unit Mod es Not es SPI master parameters SPO SPI enable low setup to first SPI CLK out rising 3*T BCLK -10 ns 0,3[...]

  • Страница 506

    TIM I NG Memory T iming 506 Hardware Reference NS9215 Notes: 1 Active level of SPI enable is inverted (that is, 1) if the CSPOL bit in Serial Channel Control Register B is set to a 1. Note that in SPI slave mode, only a valu e of 0 (low enable) is valid; the SPI slave is fixed to an active low chip select. 2 SPI data order is reversed (that is, LSB[...]

  • Страница 507

    . . . . . TIMI NG Memory T iming www .digiembedded.com 507 SPI master mode 0 and 1: 2-byte transfer Note: SPI data can be reversed such that LSB is first. Use the BITORDER bit in Serial Channel B/A/C/D Control Register A. SPI master mode2 and 3: 2-byte transfer Note: SPI data can be reversed such that LSB is first. Use the BITORDER bit in Serial Ch[...]

  • Страница 508

    TIM I NG Memory T iming 508 Hardware Reference NS9215 SPI slave mode 0 and 1: 2-byte transfer Note: SPI data can be reversed such that LSB is first. Use the BITORDER bit in Serial Channel B/A/C/D Control Register A. SPI slave mode 2 and 3: 2-byte transfer Note: SPI data can be reversed such that LSB is first. Use the BITORDER bit in Serial Channel [...]

  • Страница 509

    . . . . . TIMI NG Reset and har dware strap ping timing www .digiembedded.com 509 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reset and hardware stra pping timing All AC characteristics are measured with 10pF , unless otherwise no[...]

  • Страница 510

    TIM I NG JT AG timing 510 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . JTAG ti ming All AC characteristics are measured with 10pF , unless otherwise noted. The next table describes the values shown in the [...]

  • Страница 511

    . . . . . TIMI NG Clock timing www .digiembedded.com 51 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Clock timing All AC characteristics are measured with 10pF , unless otherwise noted. System PLL ref ere n ce cl oc k timing The [...]

  • Страница 512

    TIM I NG Clock timing 512 Hardware Reference NS9215[...]

  • Страница 513

    513 Packaging CHAPTER 17 B elow is the processor package, 265 LF-XBGA. Diagrams that f ollow show the processor dimensions: top, bottom, and side views. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Package[...]

  • Страница 514

    PACKAGING Pr ocessor Dimensions 514 Hardware Reference NS9215 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Processor Dimensions[...]

  • Страница 515

    . . . . . PACKAGING Pr ocessor Dimensions www .digiembedded.com 515[...]

  • Страница 516

    PACKAGING Pr ocessor Dimensions 516 Hardware Reference NS9215[...]

  • Страница 517

    517 Change log CHAPTER 18 T he following changes were made since the last revision of this document. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Revision B Modified ADC data in th e POR table. Added R TC clock and battery back up [...]