Many
Manuals
search
Categorias
Marcas
Inicio
Texas Instruments
Hardware
TMS320C3x
Manual de usuario
Texas-instruments TMS320C3x Manual de usuario Pagina 353
Descarga
Compartir
Compartiendo
Añadir a mis manuales
Imprimir
Pagina
/
757
Tabla de contenidos
MARCADORES
Valorado
.
/ 5. Basado en
revisión del cliente
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
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
Bus Timing
10-50
Figure 10–38.
IOSTRB
Write and Read
I/O write
IOSTRB
RDY
D
A
R/W
H1
H3
I/O read
Figure 10–39.
IOSTRB
Write and Write
I/O write
I/O write
IOSTRB
RDY
D
A
R/W
H1
H3
1
2
...
348
349
350
351
352
353
354
355
356
357
358
...
756
757
TMS320C3x
1
User’s Guide
1
Read This First
3
Notational Conventions
4
Information About Cautions
5
References
6
References
7
Read This First
7
Array Signal
9
Processing
9
Adaptive Array Principles
9
If You Need Assistance . .
10
Trademarks
11
Contents
12
Contents
14
Contents
14
Figures
20
Examples
27
Examples
28
Introduction
30
1.1 TMS320C3x Devices
31
1.1.2 TMS320C30
32
1.1.4 TMS320C32
33
TMS320C3x Devices
34
1.2 Typical Applications
36
Architectural Overview
37
2.1 Overview
38
Overview
39
Central Processing Unit (CPU)
42
Operation
44
Addressing
44
2.3 CPU Primary Register File
45
Data Formats and
46
Floating-Point Operation
46
CPU Primary Register File
47
2.4 Other Registers
48
2.5 Memory Organization
49
Memory Organization
50
2.5.2 Memory Addressing Modes
53
2.6 Internal Bus Operation
54
2.7 External Memory Interface
55
External Memory Interface
56
2.8 Interrupts
57
2.9 Peripherals
58
2.9.1 Timers
59
2.9.2 Serial Ports
59
Figure 2–10. DMA Controller
61
CPU Registers
64
Table 3–1. CPU Registers
65
3.1.3 Data-Page Pointer (DP)
67
3.1.7 Status (ST) Register
68
CPU Multiport Register File
69
(TMS320C30 and TMS320C31)
72
3.2 Other Registers
81
Chapter 4
83
4.1 Memory
84
Peripheral Bus Memory Map
85
4.1.1.2 TMS320C31 Memory Map
87
Reset/Interrupt/
87
Trap Vector Map
87
Data-Page Pointer (DP)
88
4.1.1.3 TMS320C32 Memory Map
89
’C31, and ’C32
91
Interrupt-Trap Table
96
Pointer (ITTP)
96
Microprocessor Mode
97
Microcomputer Mode
99
Note: Traps 28–31
100
4.3 Instruction Cache
101
Instruction Cache
102
4.3.3 Cache Control Bits
104
Chapter 5
106
5.1 Integer Formats
107
5.2 Unsigned-Integer Formats
108
5.3 Floating-Point Formats
109
Floating-Point Formats
110
Example 5–1. Positive Number
115
Example 5–2. Negative Number
116
Floating-Point Format
117
(the actual expo
119
±1,R0 ; Add the positive sign
128
Floating-Point Multiplication
132
0–α =–α (α ≠ 0)
141
Rounding (RND Instruction)
144
Mantissa
150
5.11.2 Points to Consider
152
Addressing Modes
154
6.1 Addressing Types
155
6.2 Register Addressing
156
6.3 Direct Addressing
157
6.4 Indirect Addressing
158
Indirect Addressing
159
6.5 Immediate Addressing
171
6.6 PC-Relative Addressing
172
PC-Relative Addressing
173
(c) RPTB: repeat block
173
6.7 Circular Addressing
174
Circular Addressing
176
6.8 Bit-Reversed Addressing
179
Bit-Reversed Addressing
180
Language Tools
181
6.10.1 System-Stack Pointer
182
6.10.2 Stacks
183
6.10.3 Queues
184
Program Flow Control
185
7.1 Repeat Modes
186
7.1.2 Repeat-Mode Operation
187
Example 7–2. RPTB Operation
188
7.1.4 RPTS Instruction
189
Repeat Modes
190
7.1.7 Nested Block Repeats
192
7.2 Delayed Branches
193
Delayed Branches
194
7.3 Calls, Traps, and Returns
195
Calls, Traps, and Returns
196
7.4 Interlocked Operations
197
Interlocked Operations
198
I/O Flag Register (IOF)
203
(see Example 7–14)
204
7.5 Reset Operation
205
Reset Operation
206
Peripherals
209
’C30 and ’C31 External-Memory
209
Interface
209
7.6 Interrupts
210
TMS320C31 Microprocessor Mode
211
Microcomputer Boot Mode
212
Interrupts
213
7.6.6 Interrupt Processing
217
Note: CPU and DMA Interrupts
218
7.6.7 CPU Interrupt Latency
219
Table 7–8. Interrupt Latency
220
7.7 DMA Interrupts
222
DMA Interrupts
223
7.7.3 CPU/DMA Interaction
224
... ; GIE = 1
226
LDI 02000h, ST ; GIE = 0
226
ADD *AR0, R1
226
7.8 Traps
231
7.9 Power Management Modes
233
Figure 7–11.IDLE2 Timing
234
7.9.2 LOPOWER
235
Figure 7–13. LOPOWER Timing
236
Figure 7–14. MAXSPEED Timing
236
Pipeline Operation
237
8.1 Pipeline Structure
238
Pipeline Structure
239
8.2 Pipeline Conflicts
240
Example 8–1. Standard Branch
241
Example 8–2. Delayed Branch
242
LDI 7,AR2 ; 7 → AR2
243
8.2.3 Memory Conflicts
244
8.2.3.1 Program Wait
245
ADDF3 *AR0,*AR1,R0
246
MPY ; code in internal memory
247
8.2.3.3 Execute Only
248
→ R1 in parallel with
249
LDF *AR3,R2 ; *AR3 → R2
249
STF R2,*AR1 ; R2 → *AR1
250
ADDF @SUM,R1 ; R1 + @SUM → R1
250
8.2.3.4 Hold Everything
251
STF R0,@DMA1
252
LDF @DMA2,R0
252
LDF @DMA,R0
253
Generation
255
Pipeline Conflict
256
Resolving Register Conflicts
257
8.5 Clocking Memory Accesses
260
Clocking Memory Accesses
261
Example 8–17. Dummy sr2 Read
263
; AR1 points to MSTRB space (
264
TMS320C30 and TMS320C31
267
External-Memory Interface
267
9.1 Overview
268
9.2 Memory Interface Signals
269
Memory Interface Signals
270
9.4 Programmable Wait States
276
Programmable Wait States
277
Figure 9–4. BNKCMP Example
278
Programmable Bank Switching
279
9.6.1 Primary-Bus Cycles
281
changes
284
is sampled, it is 0
285
The next time (X)RDY
286
9.6.3 Hold Cycles
303
TMS320C32 Memory Features
305
TMS320C32 Memory Overview
306
10.2.2 Program Memory Access
307
Figure 10–2. Status Register
308
External 16-Bit Data
309
10.3 Configuration
310
Configuration
311
10.4 Programmable Wait States
318
Figure 10–8. BNKCMP Example
320
32-Bit-Wide Memory Interface
323
16-Bit-Wide Memory Interface
329
8-Bit-Wide Memory Interface
335
10.10 Bus Timing
342
Bus Timing
343
10.10.2 IOSTRB Bus Cycles
345
10.10.3 Inactive Bus States
354
Using the TMS320C31 and
356
TMS320C32 Boot Loaders
356
11.1 TMS320C31 Boot Loader
357
TMS320C31 Boot Loader
358
11.1.4.2 Serial-Port Loading
366
11.2 TMS320C32 Boot Loader
369
TMS320C32 Boot Loader
370
SSSSSS6x
377
12.1 Timers
381
12.1.1 Timer Pins
382
Timer Operation Modes
384
12.1.5 Timer Pulse Generation
386
Figure 12–4. Timer Timing
387
= 0 (pulse mode)
388
12.1.6 Timer Operation Modes
389
12.1.8 Timer Interrupts
392
12.2 Serial Ports
394
Serial Ports
395
It is also set to 0 at reset
406
12.2.7 Data-Transmit Register
407
12.2.8 Data-Receive Register
407
12.2.10 Serial-Port Timing
410
12.2.10.2 Handshake Mode
412
12.3 DMA Controller
427
DMA Controller
428
12.3.2 DMA Basic Operation
429
12.3.3 DMA Registers
430
Interrupt-Enable Register
439
Clocking Memory Access
442
12.3.7 DMA and Interrupts
443
Chapter 13
459
13.1 Instruction Set
460
13.1.2 2-Operand Instructions
461
13.1.3 3-Operand Instructions
462
Instruction Set
464
13.1.8 Illegal Instructions
467
13.2 Instruction Set Summary
468
General Addressing Modes
478
field. Refer to
479
B 0 0 0
485
Condition Codes and Flags
486
Figure 13–6. Status Register
487
(a) Unconditional compares
488
(b) Unsigned compares
488
(c) Signed compares
488
(d) Compare to zero
489
13.6 Individual Instructions
490
Individual Instructions
492
Note the alternate notation R
494
Example Instruction
496
Example Instruction
497
ABSF
500
Absolute Value of Integer
502
Example 1 ABSI R0,R0
503
Example 2 ABSI *AR1,R3
503
ABSI
504
Add Integer With Carry
506
31 2423 16 8 7 015
507
00100 0 T
507
Data Loads and Stores
508
Add Floating-Point Values
509
Example ADDF *AR4++(IR1),R5
510
ADDF3
513
Add Integer
515
Add Integer, 3-Operand
516
ADDI3
518
ADDl3
519
Bitwise-Logical AND
520
31 24 23 16 8 7 015
521
AND3
523
Example ANDN @980Ch,R2
526
Arithmetic Shift
529
Arithmetic Shift
530
Arithmetic Shift, 3-Operand
531
Arithmetic Shift, 3-Operand
532
ASH3
534
01101 00
537
B0 Register or displacement00
537
Example BZ R0
538
B0 Register or displacement01
539
Call Subroutine
543
CALLcond
544
Compare Floating-Point Value
546
Example CMPF *+AR4,R6
547
0010 0110
548
Compare Integer
550
Compare Integer, 3-Operand
551
Register or displacementAR
553
Example FIX R1,R2
558
FIX
559
Example FLOAT *++AR2(2),R5
562
FLOAT
563
Interrupt Acknowledge
565
Example IACK *AR5
566
Idle Until Interrupt
567
Low-Power Idle
568
Low-Power Idle
569
Load Floating-Point Exponent
570
Example LDE R0,R5
571
Load Floating-Point Value
572
Example LDFZ R3,R5
574
000 00 1
575
Example LDFI *+AR2,R7
576
LDF
577
LDF
579
Load Integer
581
Example LDI *–AR1(IR0),R5
582
Load Integer Conditionally
583
Example LDIZ *ARO++,R6
584
Load Integer, Interlocked
585
Example LDII @985Fh,R3
586
LDI
587
LDI
589
Load Floating-Point Mantissa
591
Load Data-Page Pointer
592
Divide Clock by 16
593
Logical Shift
594
Logical Shift
595
Logical Shift, 3-Operand
596
Logical Shift, 3-Operand
597
LSH3
599
MAXSPEED
603
Multiply Floating-Point Value
604
MPYF3
607
MPYF3
611
MPYF3
613
Multiply Integer
617
Example MPYI R1,R5
618
Multiply Integer, 3-Operand
619
MPYI3
621
MPYl3
624
MPYI3
625
MPYI3
627
Negative Integer With Borrow
631
Negate Floating-Point Value
632
Example NEGF *++AR3(2),R1
633
NEGF
634
Negate Integer
636
NEGI
637
No Operation
639
Normalize
640
Example NORM R1,R2
641
Bitwise-Logical Complement
642
Example NOT @982Ch,R4
643
NOT
644
Bitwise-Logical OR
646
Example OR *++AR1(IR1),R2
647
Bitwise-Logical OR, 3-Operand
648
OR3
650
Pop Integer
652
Pop Floating-Point Value
653
PUSH Integer
654
PUSH Floating-Point Value
655
RETIcond
656
RETScond
658
Round Floating-Point Value
660
Round Floating-Point Value
661
Rotate Left
662
Rotate Left Through Carry
663
Example 2 ROLC R3
664
Rotate Right
665
Rotate Right Through Carry
666
Repeat Block
667
Repeat Block
668
Repeat Single Instruction
669
Repeat Single Instruction
670
Store Floating-Point Value
672
STF
675
Store Integer
677
Store Integer, Interlocked
678
STI
679
Subtract Integer With Borrow
681
00 0 10 1
684
Example 1 SUBC @98C5h,R1
685
Subtract Floating-Point Value
686
Example SUBF *AR0––(IR0),R5
687
SUBF3
690
Subtract Integer
692
Subtract Integer, 3-Operand
693
SUBI3
695
Subtract Reverse Integer
699
Software Interrupt
700
TRAPcond
701
Test Bit Fields
703
Example TSTB *–AR4(1),R5
704
Test Bit Fields, 3-Operand
705
Bitwise-Exclusive OR
707
XOR3
710
Instruction Opcodes
712
Instruction Opcodes
714
Instruction Opcodes
714
Appendix A
718
Appendix B
718
Appendix C
724
Glossary
734
Block-size register
735
Central processing unit
735
See also LD0–LD31
735
First-in, first-out buffer
736
Interrupt acknowledge signal
737
Interrupt service routine
737
Least significant bit
737
CPU cycle
738
MP/MC pin
738
Most significant bit
738
Nonmaskable interrupt
738
Program counte
739
See read/write pin
739
Glossary
740
Glossary
740
See also A0–A23
741
See also
741
3-operand instruction 13-58
742
3-operand instruction 13-49
742
TMS320C32 2-16
749
(LDF) 13-114
750
TMS320C30 4-9
751
TMS320C31 4-11
751
TMS320C32 4-12
751
(SUBRI) 13-241
756
Comentarios a estos manuales
Sin comentarios
Publish
Relacionado con productos y manuales para Hardware Texas-instruments TMS320C3x
Hardware Texas-instruments CC2511 Manual de usuario
(24 paginas)
Hardware Texas-instruments Adpater Manual de usuario
(37 paginas)
Hardware Texas-instruments TMS320C6455 Manual de usuario
(50 paginas)
Hardware Texas-instruments TPS2330 Manual de usuario
(22 paginas)
Hardware Texas-instruments TMS320C6000 Manual de usuario
(62 paginas)
Hardware Texas-instruments TMS380C26 Manual de usuario
(92 paginas)
Hardware Texas-instruments TVP5154EVM Manual de usuario
(55 paginas)
Hardware Texas-instruments CDCM7005 Manual de usuario
(34 paginas)
Hardware Texas-instruments TMDXEVM6472 Manual de usuario
(2 paginas)
Hardware Texas-instruments TMS320 DSP Manual de usuario
(88 paginas)
Hardware Texas-instruments TMS320C6454 Manual de usuario
(225 paginas)
Hardware Texas-instruments TMS320DM36X Manual de usuario
(134 paginas)
Hardware Texas-instruments MSP430x4xx Manual de usuario
(512 paginas)
Hardware Texas-instruments TMS320C642x DSP Manual de usuario
(35 paginas)
Hardware Texas-instruments TUSB3210 Manual de usuario
(22 paginas)
Hardware Texas-instruments MSP430x1xx Manual de usuario
(440 paginas)
Hardware Texas-instruments TMS320TCI6486 Manual de usuario
(160 paginas)
Hardware Texas-instruments MSP-FET430 Manual de usuario
(95 paginas)
Hardware Texas-instruments TMS320C6712D Manual de usuario
(102 paginas)
Hardware Texas-instruments UCC2891 Manual de usuario
(21 paginas)
Imprimir documento
Imprimir pagina 353
Comentarios a estos manuales