Examples – Texas Instruments TMS320C2XX User Manual
Page 24
Examples
xxv
Contents
Examples
4–1
An Interrupt Service Routine Supporting INT1 and HOLD
. . . . . . . . . . . . . . . . . . . . . . . . .
6–1
RPT Instruction Using Short-Immediate Addressing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6–2
ADD Instruction Using Long-Immediate Addressing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6–3
Using Direct Addressing with ADD (Shift of 0 to 15)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6–4
Using Direct Addressing with ADD (Shift of 16)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6–5
Using Direct Addressing with ADDC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6–6
Selecting a New Current Auxiliary Register
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6–7
No Increment or Decrement
6–8
Increment by 1
6–9
Decrement by 1
6–10
Increment by Index Amount
6–11
Decrement by Index Amount
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6–12
Increment by Index Amount With Reverse Carry Propagation
. . . . . . . . . . . . . . . . . . . . . .
6–13
Decrement by Index Amount With Reverse Carry Propagation
. . . . . . . . . . . . . . . . . . . . .
C–1
Generic Command File (c203.cmd)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C–2
Header File With I/O Register Declarations (init.h)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C–3
Header File With Interrupt Vector Declarations (vector.h)
. . . . . . . . . . . . . . . . . . . . . . . . . . .
C–4
Implementing Simple Delay Loops (delay.asm)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C–5
Testing and Using the Timer (timer.asm)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C–6
Testing and Using Interrupt INT1 (intr1.asm)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C–7
Implementing a HOLD Operation (hold.asm)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C–8
Testing and Using Interrupts INT2 and INT3 (intr23.asm)
. . . . . . . . . . . . . . . . . . . . . . . . . .
C–9
Asynchronous Serial Port Transmission (uart.asm)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C–10
Loopback to Verify Transmissions of Asynchronous Serial Port (echo.asm)
C–11
Testing and Using Automatic Baud-Rate Detection on
Asynchronous Serial Port (autobaud.asm)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C–12
Testing and Using Asynchronous Serial Port Delta Interrupts (bitio.asm)
C–13
Synchronous Serial Port Continuous Mode Transmission (ssp.asm)
. . . . . . . . . . . . . . . .
C–14
Using Synchronous Serial Port With Codec Device (ad55.asm)
. . . . . . . . . . . . . . . . . . . .
C–15
Linker Command File
C–16
Hex Conversion Utility Command File
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
E–1
Key Timing for a Single-Processor System Without Buffers
. . . . . . . . . . . . . . . . . . . . . . . . .
E–2
Key Timing for a Single- or Multiple-Processor System With
Buffered Input and Output
E–3
Key Timing for a Single-Processor System Without Buffering (SPL)
. . . . . . . . . . . . . . . . .
E–4
Key Timing for a Single- or Multiprocessor-System With
Buffered Input and Output (SPL)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .