Contents
x
CHAPTER 12
PROGRAMMING MODEL
12.1
OVERVIEW ...................................................................................... 12–1
12.1.1
Data Address Generators ......................................................... 12–2
12.1.1.1
Always Initialize L Registers ............................................. 12–2
12.1.2
Program Sequencer ................................................................... 12–4
12.1.2.1
Interrupts .............................................................................. 12–4
12.1.2.2
Loop Counts ......................................................................... 12–4
12.1.2.3
Status And Mode Bits.......................................................... 12–5
12.1.2.4
Stacks ..................................................................................... 12–5
12.1.3
Computational Units ................................................................. 12–6
12.1.4
Bus Exchange.............................................................................. 12–6
12.1.5
Timer
...................................................................................... 12–6
12.1.6
Serial Ports .................................................................................. 12–7
12.1.7
Memory Interface & SPORT Enables ...................................... 12–7
12.1.8
Host Interface ............................................................................. 12–8
12.1.9
Analog Interface ......................................................................... 12–8
12.2
PROGRAM EXAMPLE ................................................................... 12–8
12.2.1
Example Program: Setup Routine Discussion ..................... 12–10
12.2.2
Example Program: Interrupt Routine Discussion ............... 12–11
CHAPTER 13
HARDWARE EXAMPLES
13.1
OVERVIEW ...................................................................................... 13–1
13.2
BOOT LOADING FROM HOST USING BUS REQUEST .......... 13–2
13.3
SERIAL PORT TO CODEC INTERFACE..................................... 13–5
13.4
SERIAL PORT TO DAC INTERFACE .......................................... 13–8
13.5
SERIAL PORT TO ADC INTERFACE ........................................ 13–10
13.6
SERIAL PORT TO SERIAL PORT INTERFACE ....................... 13–12
13.7
80C51 INTERFACE TO HOST INTERFACE PORT ................. 13–13
CHAPTER 14
SOFTWARE EXAMPLES
14.1
OVERVIEW ...................................................................................... 14–1
14.2
SYSTEM DEVELOPMENT PROCESS .......................................... 14–2
14.3
SINGLE-PRECISION FIR TRANSVERSAL FILTER .................. 14–4
14.4
CASCADED BIQUAD IIR FILTER ............................................... 14–6
14.5
SINE APPROXIMATION ............................................................... 14–7
14.6
SINGLE-PRECISION MATRIX MULTIPLY ................................ 14–9
14.7
RADIX-2 DECIMATION-IN-TIME FFT ..................................... 14–11
14.7.1
Main Module ............................................................................ 14–11
14.7.2
DIT FFT Subroutine ................................................................. 14–13
14.7.3
Bit-Reverse Subroutine ........................................................... 14–18
14.7.4
Block Floating-Point Scaling Subroutine .............................. 14–19