Software Overview
Start
Initialize DSP
Wait States, AR Pointer, IRQ Table, Data Memory, Serial Port
Initialize SPI
Active Transmitter, Use Frame Sync,
Generate External Clock
SAVE_INTO_MEMORY = 1
SAVE_INTO_MEMORY = 0
Initialize DSP Memory For Sample Store
AR7 Points to The First Store Location
AR0 Points to The Table End
ADCOUNT = Table Size (Number of Samples)
IME CALABRATION = 1
IME CALABRATION = 0
SME CALABRATION = 1
Calibrate Internal Midscale Error
Calibrate System Midscale Error |
| SME CALABRATION = 0 | |
|
|
|
|
|
|
|
|
|
|
|
|
Initialize (Id) The Two ADC Registers
CR0 = CR0_SEND
CR1 = CR1_SEND
Increase
Start Sampling
This Has Been Initialized
by The WR 1/0 Transmit
Wait 450 ns
Read Sample Into DSP
AD_SAMPLE = Port (ADC)
| 1 | |
SEND_OUT_PARALLEL = 1 |
| |
Copy Last Sample to Parallel DAC | SEND_OUT_PARALLEL = 0 | |
SEND_OUT_SERIAL = 1 |
| |
Copy Last Sample to Serial DAC | SEND_OUT_SERIAL = 0 | |
if Send Register is Empty | ||
| ||
| SAVE_INTO_MEMORY = 0 |
SAVE_INTO_MEMORY = 1
Store Sample Into Memory
Save Sample to AR7 – Pointed Location
Table End Reached? | No |
| |
(AR7 = AR0 ?) |
|
Yes |
|
Reset Actual Memory Pointer
AR7= First Memory Store
Location = Data_Loc_A
Wait 5(6) ADC Clock Cycles
Started at Time Stamp 1
tC(RD) = 800 ns (With 8 MHz ADC Clock)
Figure 10. Flow Chart Mono Continuous Mode
Interfacing the TLV1562 Parallel ADC to the TMS320C54x DSP | 37 |